docsy-jekyll icon indicating copy to clipboard operation
docsy-jekyll copied to clipboard

Point edit this page button to different branch?

Open ugreg opened this issue 3 years ago • 2 comments

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

ugreg avatar Mar 04 '21 10:03 ugreg

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

vsoch avatar Mar 04 '21 16:03 vsoch

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.

bhitney avatar Mar 22 '21 14:03 bhitney