timothycrosley / portray

Your Project with Great Documentation.
MIT License
860 stars 72 forks source link

edit link incorrect for overriding index.md #90

Open garfieldnate opened 2 years ago

garfieldnate commented 2 years ago

My docs/ directory contains an index.md which is used for the homepage instead of the project readme (I separate developer and user documentation this way). So I get this output when running portray in_browser:

Rendering complete website from Markdown using MkDocsBoth index.md and readme.md found. Skipping readme.md from /var/folders/2n/8zdpr6fn3djbww0vts_jl_n40000gp/T/tmpq3yfpg_c/input

This part works fine. However, for some reason the edit link on the homepage then does not include the string /docs, instead linking to <my_repo>/[edit_uri] without the trailing /docs. The link is incorrect and results in a 404.