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

fix search URL for skaffold.dev + github edit link #1417

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/docs/cloudbuild-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ steps:
- 'bash'
- '-xc'
- |
deploy/docs/build.sh https://skaffold-latest.firebaseapp.com && cd docs && firebase deploy --only hosting:release --project $PROJECT_ID
deploy/docs/build.sh https://skaffold.dev && cd docs && firebase deploy --only hosting:release --project $PROJECT_ID

images: [
'gcr.io/$PROJECT_ID/docs-controller:latest'
Expand Down
11 changes: 11 additions & 0 deletions docs/layouts/partials/page-meta-links.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ if .Path }}
{{ $gh_repo := ($.Param "github_repo") }}
{{ if $gh_repo }}
<div class="td-page-meta ml-2 pb-1 pt-2 mb-0">
{{ $editURL := printf "%s/edit/master/docs/content/%s/%s" $gh_repo ($.Site.Language.Lang) .Path }}
{{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (htmlEscape $.Title )}}
<a href="{{ $editURL }}" target="_blank"><i class="fa fa-edit fa-fw"></i> {{ T "post_edit_this" }}</a>
<a href="{{ $issuesURL }}" target="_blank"><i class="fab fa-github fa-fw"></i> {{ T "post_create_issue" }}</a>
</div>
{{ end }}
{{ end }}