Repository navigation
Move the docs to React, Vite and Tailwind 4 - #3
Merged
Merged
Conversation
The site now uses the console's stack: React 19, TypeScript, Vite 8, React Router 8 and Tailwind CSS 4. The Markdown files move unchanged into content/, and content/_sidebar.md still lists the pages. A Vite plugin renders the Markdown at build time with marked and highlights code with Shiki, so the client carries no Markdown parser. It rewrites links between pages to clean paths and keeps docsify's heading ids. The build prerenders every page to dist/<path>/index.html for the files-only nginx runtime, and / redirects old docsify hash links to the new paths. .valar.yml switches to the node-static constructor.
The agent instructions now cover the React and Vite setup, the commands, where the pages and the sidebar live, and how to add a page. A check workflow, copied from the console, runs lint, typecheck, tests and build on pull requests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This moves docs.valar.dev from docsify to the console's stack: React 19, TypeScript, Vite 8, React Router 8 and Tailwind CSS 4. The Markdown files are still the source of truth. They moved into
content/as pure renames, so their history follows, and their text is unchanged.What changed
src/markdown/) renders each page withmarkedand highlights code with Shiki, so the client bundle carries no Markdown parser or highlighter. The plugin also:api/builds.mdbecomes/api/builds);> [!TIP]). The content had no docsify?>/!>callouts, so no content edits were needed.content/_sidebar.md, which remains the only place to register a page. The layout follows the console's: a dark sidebar with grouped links, a menu button at phone width, and previous/next links below each page.npm run buildruns the client build, a server build andscripts/prerender.js. The prerender writesdist/<path>/index.htmlfor each page: 25 files, including/./getting-started/cli-setup), and/shows the homepage as before./#/api/builds?id=list-builds) redirect from/to/api/builds#list-builds..valar.ymlswitches fromstatictonode-static, whose defaults (npm install,npm run build, servedist/) work as they are. Optionally,INSTALL_CMD="npm ci --no-audit --no-fund"can be set later in the environment store (valar env set --build ...).index.html,vue.cssandimg/. The brand tokens, the self-hosted Inter and JetBrains Mono fonts, the favicon and the logo now come from the console.Verification
npm ci && npm run lint && npm run typecheck && npm test && npm run buildpass. There are 39 tests:content/resolves.index.htmlper page plus/.dist/with a files-only server (python3 -m http.server -d dist) and checked it in Chromium:dist/is 2.6 MB, 1.4 MB of which is the Inter TTFs. The main script is 268 kB (84 kB gzipped). Each page's content chunk is 0.4 to 13 kB.CLAUDE.md and a CI workflow follow in a stacked PR.