Skip to content

Commit

Permalink
docs: Display release version number on new docs website (#3096)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairyhum authored Sep 6, 2024
1 parent 40ece11 commit c325d70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ jobs:
run: pnpm install
working-directory: ./docs_new
- name: Build with VitePress
run: pnpm docs:build
run: |
echo "{\"version\":\"${RELEASE_TAG}\"}" > ./.vitepress/version.json
pnpm docs:build
working-directory: ./docs_new
- name: download helm index
uses: actions/download-artifact@v4
Expand Down
2 changes: 2 additions & 0 deletions docs_new/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineConfig } from "vitepress";
import version from "./version.json"

// https://vitepress.dev/reference/site-config
export default defineConfig({
Expand All @@ -17,6 +18,7 @@ export default defineConfig({
footer: {
copyright: "© Copyright 2017-2024, Kanister",
},
nav: [{text: version.version, link: ""}],

sidebar: [
{ text: "Overview", link: "/overview" },
Expand Down
1 change: 1 addition & 0 deletions docs_new/.vitepress/version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":"dev"}

0 comments on commit c325d70

Please sign in to comment.