Skip to content

Commit

Permalink
🔧 (docs): Pass repo name and URL via env
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 16, 2023
1 parent 7a29b26 commit 7cca02b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ jobs:

- name: Build docs
working-directory: docs
env:
REPO_NAME: ${{ github.repository }}
REPO_URL: ${{ github.server_url }}/${{ github.repository }}
run: mkdocs build

- name: Upload artifact
Expand Down
4 changes: 2 additions & 2 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ site_author: Gabe Cook
site_description: >-
A collection of Helm charts, based on the bjw-s common library chart.
repo_name: gabe565/charts
repo_url: https://github.com/gabe565/charts
repo_name: !ENV [REPO_NAME, "gabe565/charts"]
repo_url: !ENV [REPO_URL, "https://github.com/gabe565/charts"]

theme:
name: material
Expand Down
2 changes: 1 addition & 1 deletion docs/overrides/partials/actions.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if page.url.startswith("charts/") %}
<a
href="{{ config.repo_url }}/blob/main/{{ page.url }}/values.yaml"
href="{{ config.repo_url }}/blob/main/{{ page.url }}values.yaml"
title="View default values"
class="md-content__button md-icon"
target="_blank"
Expand Down

0 comments on commit 7cca02b

Please sign in to comment.