Skip to content

Website: move the wiki and docs/ to a VitePress site on GitHub Pages - #475

Open
htunnicliff wants to merge 3 commits into
Open-HMG:mainfrom
htunnicliff:claude/vitepress-wiki-migration-358458
Open

htunnicliff wants to merge 3 commits into
Open-HMG:mainfrom
htunnicliff:claude/vitepress-wiki-migration-358458

Conversation

@htunnicliff

@htunnicliff htunnicliff commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Note

👨 Note for maintainers: If you are interested, this pull request sets up a documentation site built using Vitepress as a replacement for the existing GitHub wiki setup.

I spun up a preview of the built documentation here if you want to take a peek: https://hmg-api-preview.pages.dev/HMG-API/

Thanks for making an awesome project!

What this changes

The owners' guides move from the GitHub wiki to a website, https://open-hmg.github.io/HMG-API/, built by VitePress from docs/. The developer and maintainer pages sit beside them, and the site has local search and "Edit this page" links.

  • Pages: wiki/*.md → docs/guide/ (moved with git mv, so history is kept). The wiki's Home becomes the landing page at docs/index.md. The existing docs/*.md stay where they are, since other files refer to them by path, and appear in the sidebar under Developers and Maintainers. The duplicate screenshots are gone; the pages use docs/img/screenshots/.
  • Build and deploy: the new .github/workflows/pages.yml builds on every pull request that touches the site and deploys to GitHub Pages from main. ignoreDeadLinks: false, so a link to a missing page or anchor fails the build.
  • Community mods: the page is made at build time by tools/catalog.py site (wiki still works as the old name). The entries are in ::: v-pre, so a {{ }} in a mod author's text isn't run as Vue code. catalog-test.sh covers this, and I checked it in a real build.
  • Old wiki links keep working: wiki.yml now replaces each old wiki page with a one-line pointer to its new page (tools/wiki-stubs.py). Links from the app on cars already in use, from old release notes and from posts still lead somewhere.
  • References updated: README, CONTRIBUTING (a new "Editing the website" section with local setup), FUNDING.yml, the issue forms, the PR template, the app's Settings → About, CLAUDE.md and the CHANGELOG. ci.yml and test-select.py treat the website files as docs only, so they don't run the off-car tests.
  • Fixes to existing pages: three bare <placeholder> texts that Vue couldn't compile are now in backticks. hook-points.md's relative link to core/hookpoints/README.md is now a full GitHub URL, changed in mkhookdoc.py too; --check passes.

Before merging

An admin needs to turn on Pages: Settings → Pages → Source: GitHub Actions. On merge, wiki.yml replaces the wiki pages with pointers straight away, so the site needs to be ready to deploy by then.

Tested on

  • tools/test-all.sh passes (or the tests tools/test-select.py names for this change): tools/catalog-test.sh and tools/version-test.sh pass, and tools/mkhookdoc.py --check passes. core/hookpoints/test.sh (selected because mkhookdoc.py changed) and core/app/qr-test.sh (the app string change) pass too.
  • Cars (model, region, software version), or "off-car only": off-car only

npm run docs:build passes from a fresh clone. I checked in a local preview that images load, the /HMG-API/ base path works, and there's no sideways scrolling at phone width.

Tested on cars

Off-car only. The only change that reaches the head unit is two text strings in the app's About screen.

Checklist

  • New or changed hook points: mapped for every car (tools/map-car.py), and tools/cars.py test shows no FAIL on the cars I have files for
  • Mod scripts: tools/check-scripts.sh <mod> passes
  • Catalogue entry (catalog/, maps/authors.json): made with tools/catalog.py add, only my own author entry changed
  • Anything written to /system keeps a stock check, a backup and an exact restore
  • No manufacturer apps or libraries, no per-car data (VIN, serials, keys, /data contents)
  • Vehicle commands go through the car's own services, no CAN frames of our own
  • User-facing change: CHANGELOG.md and the website (docs/) updated

The owners' guides move from wiki/ (the GitHub wiki) to docs/guide/, and docs/
becomes a VitePress site with the developer and maintainer pages beside them,
published to https://open-hmg.github.io/HMG-API/ by .github/workflows/pages.yml.
Pull requests that touch it build it; a dead link or a page Vue can't compile
fails the build.

- The Community mods page is made at build time (tools/catalog.py site, "wiki"
  kept as the old name), its entries in ::: v-pre so an author's {{ }} isn't run.
- The GitHub wiki stays, each old page a pointer to its new page
  (tools/wiki-stubs.py, wiki.yml), for links from the app and old release notes.
- Links updated: README, CONTRIBUTING, FUNDING, issue forms, PR template, the
  app's About, CLAUDE.md. CONTRIBUTING gets an "Editing the website" section.
- Three bare <placeholders> put in backticks, hook-points' link to
  core/hookpoints/README.md made absolute (in mkhookdoc.py too).
docs/mods/ holds only the generated Community mods page, which isn't in git, so
on a fresh checkout (the Website workflow) the folder was missing and the build
failed before VitePress ran.
@htunnicliff
htunnicliff marked this pull request as ready for review December 1, 2026 20:01
@htunnicliff
htunnicliff requested review from a team as code owners December 1, 2026 20:01

This branch has not been deployed

No deployments
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