diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 7ae7536a..07313436 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -61,9 +61,9 @@ jobs: pnpm docs:build DIST="site/.vitepress/dist" - mkdir -p "$DIST/alpha" "$DIST/stable" "$DIST/download" "$DIST/stable/download" + mkdir -p "$DIST/alpha" "$DIST/stable" "$DIST/download" "$DIST/releases" "$DIST/stable/download" - gh api -H "Accept: application/vnd.github+json" repos/${{ github.repository }}/releases --paginate > "$DIST/releases.json" + gh api -H "Accept: application/vnd.github.html+json" repos/${{ github.repository }}/releases --paginate > "$DIST/releases.json" STABLE_TAG="$(gh release list --repo ${{ github.repository }} --limit 100 --json tagName,isDraft,isPrerelease --jq '[.[] | select(.isDraft == false and .isPrerelease == false)][0].tagName // ""')" if [ -n "$STABLE_TAG" ]; then @@ -80,6 +80,7 @@ jobs: fi bun scripts/build-release-download-page.ts --latest-json "$DIST/stable/latest.json" --releases-json "$DIST/releases.json" --output-file "$DIST/download/index.html" + bun scripts/build-release-history-page.ts --releases-json "$DIST/releases.json" --output-file "$DIST/releases/index.html" cp "$DIST/download/index.html" "$DIST/stable/download/index.html" cp "$DIST/alpha/latest.json" "$DIST/latest.json" cp "$DIST/alpha/latest.json" "$DIST/latest-canary.json" diff --git a/site/.vitepress/config.ts b/site/.vitepress/config.ts index aa0165e1..c599eb70 100644 --- a/site/.vitepress/config.ts +++ b/site/.vitepress/config.ts @@ -7,7 +7,7 @@ export default defineConfig({ description: "Tolaria is a local-first Markdown knowledge base with native relationships, Git history, and AI workflows.", base, - ignoreDeadLinks: [/^\/download\/?(?:index)?$/], + ignoreDeadLinks: [/^\/download\/?(?:index)?$/, /^\/releases\/?(?:index)?$/], cleanUrls: true, head: [ ["link", { rel: "icon", type: "image/png", href: `${base}landing/favicon.png` }], diff --git a/site/releases/index.md b/site/releases/index.md deleted file mode 100644 index eac5b845..00000000 --- a/site/releases/index.md +++ /dev/null @@ -1,17 +0,0 @@ -# Releases - -Tolaria releases are published on GitHub. - -- [Latest release](https://github.com/refactoringhq/tolaria/releases/latest) -- [All releases](https://github.com/refactoringhq/tolaria/releases) -- Download page - -## Release Channels - -Stable builds are intended for normal use. Pre-release builds may contain newer features and rougher edges. - -Tolaria also has an Alpha channel for builds generated from pushes to `main`. See [Release Channels](/reference/release-channels) before switching from Stable. - -## Before Updating - -Commit or push important vault changes before updating the app. Your notes are local files, but having a clean Git state makes recovery easier. diff --git a/site/start/install.md b/site/start/install.md index 62284c0d..01c5af1f 100644 --- a/site/start/install.md +++ b/site/start/install.md @@ -8,7 +8,7 @@ Use the latest stable release unless you are intentionally testing pre-release b - Download the latest stable build - [Browse all GitHub releases](https://github.com/refactoringhq/tolaria/releases) -- [Read the release notes](/releases/) +- Read the release notes ## Homebrew