Skip to content

docs: add a documentation site published to GitHub Pages - #113

Merged
BoxBoxJason merged 1 commit into
mainfrom
claude/lucid-fermi-jpeb2t
Oct 30, 2026
Merged

BoxBoxJason merged 1 commit into
mainfrom
claude/lucid-fermi-jpeb2t

Conversation

@BoxBoxJason

@BoxBoxJason BoxBoxJason commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds a Hugo documentation site under docs/. It is published to https://boxboxjason.github.io/achievements/ and built from this repository, so the docs change in the same PRs as the code. It uses the same shared theme and workflow as gitlab-sync.

  • Pages: Installation, Getting started, How it works (local data, read-only mode, devcontainers, network access), Achievements, Commands and Settings.
  • Generated pages: scripts/generate-docs.ts (no new dependencies, run with ts-node) generates three pages:
    • Commands and Settings, from the package.json contributions.
    • The achievement catalogue, from the stacking templates. Each row shows the tiers, the requirement and the required values; per-language variants are collapsed into one row.
  • Drift check: npm run docs:check runs in the build workflow and fails when a generated page is stale. I mutation-tested it with a changed command title, an added setting and a changed tier count.
  • Fixes in the reference: the README was missing achievements.statusBarMenu (Quick Menu) and listed the wrong log levels. The generated pages fix both.
  • Walkthrough: the getting started walkthrough shown in VS Code (docs/walkthroughs) is also rendered on the site from the same files, through a small walkthrough shortcode.
  • Packaging: package.json files now lists only docs/achievements.gif and docs/walkthroughs, so the site sources stay out of the VSIX. Checked with npm pack --dry-run.
  • Theme: the shared boxboxjason/hugo-theme, pinned to the same commit in docs/go.mod and the workflow. The site is deployed from an Actions artifact; there is no gh-pages branch.
  • README: slimmed down to a summary, privacy, installation and a docs link. The beta warning and the panel animation stay for the Open VSX listing.
  • CONTRIBUTING: new Documentation section.

Test plan

  • npm run check-types and npm run lint pass.
  • npm run docs:check passes, and fails on each mutation above.
  • The site builds with --panicOnWarning and was viewed under the /achievements/ sub path in light and dark mode, with no 404s.
  • All 275 internal links and anchors were checked with a script.
  • npm test was not run locally: it downloads VS Code, and the extension sources are unchanged.
  • The docs workflow passes on this PR.
  • After merge, the deploy job publishes to https://boxboxjason.github.io/achievements/ (Pages source must be set to GitHub Actions).

Unrelated to this PR: vsce currently refuses to package because @types/vscode 1.138.0 is newer than engines.vscode ^1.134.0, so the release workflow would fail until one of them is changed.

Move the README reference content into a Hugo site under docs/, served at
https://boxboxjason.github.io/achievements/ and built from the same repository
so it changes together with the code.

- The commands, settings and achievements pages are generated from
  package.json and the achievement stacking templates
  (npm run docs:generate). CI runs npm run docs:check, which fails when a
  generated page is stale.
- The getting started walkthrough shown in VS Code is rendered on the site
  from the same files.
- The commands page now lists achievements.statusBarMenu, and the settings
  page the actual log levels, both missing or wrong in the README.
- Package only the walkthrough files and the panel animation from docs/, so
  the site sources stay out of the VSIX.
- Look and feel and the build/check/deploy workflow come from the shared
  boxboxjason/hugo-theme module and reusable workflow, pinned to the same
  commit in docs/go.mod and the workflow. The site is deployed from an
  Actions artifact, there is no gh-pages branch.
- Slim the README down to a summary, installation and a link to the docs.
@BoxBoxJason
BoxBoxJason merged commit a6f5993 into main Oct 30, 2026
6 checks passed
@BoxBoxJason
BoxBoxJason deleted the claude/lucid-fermi-jpeb2t branch October 30, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant