Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Point edit this page button to different branch? #40

Open
ugreg opened this issue Mar 4, 2021 · 2 comments
Open

Point edit this page button to different branch? #40

ugreg opened this issue Mar 4, 2021 · 2 comments

Comments

@ugreg
Copy link
Contributor

ugreg commented Mar 4, 2021

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
Copy link
Owner

vsoch commented Mar 4, 2021

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

@bhitney
Copy link
Contributor

bhitney commented Mar 22, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants