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

Feature request: repo relative uri #725

Open
bmarwell opened this issue Sep 16, 2021 · 0 comments
Open

Feature request: repo relative uri #725

bmarwell opened this issue Sep 16, 2021 · 0 comments

Comments

@bmarwell
Copy link

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.

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

1 participant