Skip to content

Commit

Permalink
Fix Edit button (platformsh#3408)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnouckColson authored Sep 4, 2023
1 parent 06dc305 commit 1d7d272
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions sites/friday/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ author: Deploy Friday
title: User documentation
issuerepo: "https://github.com/platformsh/platformsh-docs/"
repo: "https://github.com/platformsh/platformsh-docs/"
folder: "sites/friday"
editPageButton: true

theme:
Expand Down
1 change: 1 addition & 0 deletions sites/platform/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ author: Platform.sh
title: User documentation
issuerepo: "https://github.com/platformsh/platformsh-docs/"
repo: "https://github.com/platformsh/platformsh-docs/"
folder: "sites/platform"
editPageButton: true

# Vendorization
Expand Down
2 changes: 1 addition & 1 deletion themes/psh-docs/layouts/partials/editpagebutton.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Edit page button link -->
<div class="mb-6">
{{ $editLocation := printf "%sedit/main/docs/src/%s" site.Params.repo .File.Path}}
{{ $editLocation := printf "%sedit/main/%s/src/%s" site.Params.repo site.Params.folder .File.Path}}
<a href="{{ $editLocation }}" rel="noopener" class="print:hidden text-sm {{ partial "pink-button-styles" }}">
Edit page <img class="inline" aria-hidden="true" alt="" src="/images/icons/chevrons.svg" />
</a>
Expand Down

0 comments on commit 1d7d272

Please sign in to comment.