From c9f87eccd006b876c23608e91f3eb35232a645ec Mon Sep 17 00:00:00 2001 From: Fred Date: Thu, 27 Jun 2024 20:03:31 +0100 Subject: [PATCH] fix documentation for release --- .github/workflows/release-doc.yml | 15 ++++++++------- docs/content/configuration/jsonschema/index.md | 2 +- docs/themes/hugo-theme-relearn | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-doc.yml b/.github/workflows/release-doc.yml index a7e0cf94..03ac700d 100644 --- a/.github/workflows/release-doc.yml +++ b/.github/workflows/release-doc.yml @@ -4,22 +4,23 @@ on: push: tags: - 'v*' + branches: [ master ] jobs: deploy: runs-on: ubuntu-latest steps: - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: ~1.22 - - uses: actions/checkout@v4 with: submodules: true # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ~1.22 + - name: Check configuration snippets in documentation run: go run ./config/checkdoc -r docs/content shell: bash @@ -30,7 +31,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Setup Hugo - uses: peaceiris/actions-hugo@v2 + uses: peaceiris/actions-hugo@v3 with: hugo-version: 'latest' extended: true @@ -51,7 +52,7 @@ jobs: cmd_params: '--exclude="(linux.die.net|stackoverflow.com)" --buffer-size=8192 --max-connections-per-host=5 --rate-limit=5 --timeout=20 --header="User-Agent:curl/7.54.0" --skip-tls-verification' - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 + uses: peaceiris/actions-gh-pages@v4 # if: github.ref == 'refs/heads/main' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/content/configuration/jsonschema/index.md b/docs/content/configuration/jsonschema/index.md index 1b03a3f9..20395fe6 100644 --- a/docs/content/configuration/jsonschema/index.md +++ b/docs/content/configuration/jsonschema/index.md @@ -70,6 +70,6 @@ YAML & TOML validation with JSON schema is not supported out of the box. Additio **Example** -{{< figure src="jsonschema-vsc.gif" >}} +{{< figure src="/configuration/jsonschema/jsonschema-vsc.gif" >}} **Extension**: `redhat.vscode-yaml` \ No newline at end of file diff --git a/docs/themes/hugo-theme-relearn b/docs/themes/hugo-theme-relearn index 2232bb3a..4391760c 160000 --- a/docs/themes/hugo-theme-relearn +++ b/docs/themes/hugo-theme-relearn @@ -1 +1 @@ -Subproject commit 2232bb3ad314e0fcf8fdd76cc83238d4a470329c +Subproject commit 4391760c8bc1f27be60e472ecb326a2d3644c042