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

Add support for BitBucket #1859

Open
Tracked by #1841
AntoineGlacet opened this issue Feb 12, 2024 · 1 comment
Open
Tracked by #1841

Add support for BitBucket #1859

AntoineGlacet opened this issue Feb 12, 2024 · 1 comment
Labels
enhancement New feature or request needs-triage

Comments

@AntoineGlacet
Copy link

I have to work from Bitbucket and sadly, the Repository links feature does not work out of the box.
Ideally, hugo.toml would have a section like below:

[params]
# choose between github, gitlab, bitbucket, aws codecommit,
repo_host = github 
repo_base_url = "https://github.com/google/docsy"
repo_branch = "main"

@smainz
Copy link

smainz commented Apr 24, 2024

can you provide the relevant urls?

{{ $viewURL := printf "%s/src/branch/%s" .repo.url .repo_path -}}
{{ $editURL := printf "%s/_edit/%s" .repo.url .repo_path -}}
{{ $issuesURL := printf "%s/issues/new?title=%s" .repo.url (safeURL $.Title ) -}}
{{ $newPageStub := resources.Get "stubs/new-page-template.md" -}}
{{ $newPageQS := querify "value" $newPageStub.Content "filename" "change-me.md" | safeURL -}}
{{ $newPageURL := printf "%s/_new/%s?%s" .repo.url (path.Dir .repo_path) $newPageQS }}
 {{ $project_issueURL := printf "%s/issues/new" .repo.project_url -}}

What does it need between the double quotes to make the correct urls?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage
Projects
None yet
Development

No branches or pull requests

2 participants