You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to request a new item in content: a repository relative uri.
Use case:
A button "edit on GitHub"
Similar items:
content.uri and content.siteuri
But they will not print the source file and will not print the full path from the repository root.
Workaround:
Use content.file and a property in jbake.properties:
The hardcoded path to ONE specific branch.
Then extract it from content.file using freemarker.
Bit this will need a manual update each time you do a branch.
Using jgit and javasvn, this information could be acquired automatically.
Thanks,
Ben
PS:
I'm open to other suggestions how to effectively create a "edit me on GitHub" button.
The text was updated successfully, but these errors were encountered:
Hi all,
I'd like to request a new item in content: a repository relative uri.
Use case:
A button "edit on GitHub"
Similar items:
content.uri and content.siteuri
But they will not print the source file and will not print the full path from the repository root.
Workaround:
Use content.file and a property in jbake.properties:
The hardcoded path to ONE specific branch.
Then extract it from content.file using freemarker.
Bit this will need a manual update each time you do a branch.
Using jgit and javasvn, this information could be acquired automatically.
Thanks,
Ben
PS:
I'm open to other suggestions how to effectively create a "edit me on GitHub" button.
The text was updated successfully, but these errors were encountered: