GitHub Pages can serve the DevOSDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/dev-os/llms.txt
Use this file to discover all available pages before exploring further.
dist/ folder directly because the build output is entirely static — no server or runtime process is required. You can publish manually using the gh-pages npm package, or automate the process so every push to main deploys the latest version without any manual intervention.
Prerequisites
- A GitHub repository containing the DevOS source code
- Node.js 18 or later installed locally
- The repository has GitHub Pages enabled (Settings → Pages)
Option 1 — Manual deploy with gh-pages
The gh-pages package builds the site and force-pushes the dist/ folder to a dedicated gh-pages branch in a single command.
Install it as a dev dependency:
deploy script to package.json that chains the build and publish steps:
package.json
gh-pages branch, root folder. GitHub will provide the live URL (typically https://<username>.github.io/<repo>/) within a few minutes.
Option 2 — Automated deploy with GitHub Actions
A GitHub Actions workflow can build and publish the site automatically every time you push tomain. Create the following workflow file in your repository:
.github/workflows/deploy.yml
GITHUB_TOKEN secret is provided automatically by GitHub Actions — no manual secret configuration is needed. The peaceiris/actions-gh-pages action pushes dist/ to the gh-pages branch on every successful run.
Custom domain
To serve DevOS from your own domain, add aCNAME file to the public/ folder in the project root:
public/ into dist/ at build time, so the CNAME file will be present in every deployment automatically. Then add a CNAME DNS record at your domain registrar pointing to <username>.github.io.
Setting the base path for a project page
By default, GitHub Pages serves user and organisation sites at the root (/). Project pages — repositories that are not <username>.github.io — are served under a subpath such as /dev-os/. Without setting base in Vite, all asset references will resolve from / and the site will load a blank page.
The
.nojekyll file in the repo root is already included in the DevOS source. It prevents GitHub Pages from running the Jekyll processor on the build output, which would otherwise silently drop Vite’s underscore-prefixed asset chunks and cause the site to fail to load.