Repository navigation
Website: move the wiki and docs/ to a VitePress site on GitHub Pages - #475
Open
htunnicliff wants to merge 3 commits into
Open
htunnicliff wants to merge 3 commits into
htunnicliff wants to merge 3 commits into
Conversation
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
marked this pull request as ready for review
December 1, 2026 20:01
This branch has not been deployed
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.
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.wiki/*.md→docs/guide/(moved withgit mv, so history is kept). The wiki's Home becomes the landing page atdocs/index.md. The existingdocs/*.mdstay 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 usedocs/img/screenshots/..github/workflows/pages.ymlbuilds 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.tools/catalog.py site(wikistill 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.shcovers this, and I checked it in a real build.wiki.ymlnow 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.ci.ymlandtest-select.pytreat the website files as docs only, so they don't run the off-car tests.<placeholder>texts that Vue couldn't compile are now in backticks.hook-points.md's relative link tocore/hookpoints/README.mdis now a full GitHub URL, changed inmkhookdoc.pytoo;--checkpasses.Before merging
An admin needs to turn on Pages: Settings → Pages → Source: GitHub Actions. On merge,
wiki.ymlreplaces the wiki pages with pointers straight away, so the site needs to be ready to deploy by then.Tested on
tools/test-all.shpasses (or the teststools/test-select.pynames for this change):tools/catalog-test.shandtools/version-test.shpass, andtools/mkhookdoc.py --checkpasses.core/hookpoints/test.sh(selected becausemkhookdoc.pychanged) andcore/app/qr-test.sh(the app string change) pass too.npm run docs:buildpasses 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
tools/map-car.py), andtools/cars.py testshows no FAIL on the cars I have files fortools/check-scripts.sh <mod>passescatalog/,maps/authors.json): made withtools/catalog.py add, only my own author entry changed/systemkeeps a stock check, a backup and an exact restore/datacontents)CHANGELOG.mdand the website (docs/) updated