vsoch/docsy-jekyll

Point edit this page button to different branch?

ugreg opened this issue · 2 comments

ugreg commented

Is this possible?
For example when I click that button it brings me to https://github.com/vsoch/docsy-jekyll/edit/master/_docs/getting-started.md, but I would like to point it to a different branch like https://github.com/vsoch/docsy-jekyll/edit/main/_docs/getting-started.md.

image

vsoch commented

Yes! You'll want to edit the links in this file: https://github.com/vsoch/docsy-jekyll/blob/master/_includes/editable.html

I modified the template to use a branch variable on the _config.yml so branch can be specified (only tested with github pages). I'll submit a pull request if you are interested in merging that change.