ovasquez / mkdocs-merge

Merge the source of multiple MkDocs sites into a single one
https://ovasquez.github.io/mkdocs-merge/
MIT License
24 stars 6 forks source link

Proper treatment of edit_uri after merge #19

Open mzarucki opened 8 months ago

mzarucki commented 8 months ago

Hi @ovasquez,

Thank you for this nice tool!

We are using mkdocs-merge to add a separate site repository into a central (MASTER_SITE) site as a sub-page.

It appears that the treatment of the edit_uri for the sub-page does not link back (via the edit icon) to the original repository, but links back to the central one and returns an error.

Is there a way this can be treated properly?

Best regards, Mateusz

mzarucki commented 8 months ago

I believe this relates to: https://github.com/mkdocs/mkdocs/issues/2745

ovasquez commented 8 months ago

Hi, sorry for the late reply.

I’m guessing that this would mean having multiple edit_uri values which isn’t supported in MkDocs by default. Have you tried with the plugin mentioned in the issue you referenced?

ovasquez commented 4 months ago

@mzarucki did you try the plugin you referenced? If this is not related to the plugin, could you provide a sample mkdocs.yml and the expected outcome for this requirement?