docsy-jekyll
docsy-jekyll copied to clipboard
Point edit this page button to different branch?
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
.
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.