🌐 GitHub Pages Setup
The documentation site is built with Jekyll and deployed to GitHub Pages via a dedicated GitHub Actions workflow.
🔧 How It Works
- Documentation lives in
docs/as Markdown files with Jekyll front matter - A push to
masterthat touches docs triggers.github/workflows/jekyll-gh-pages.yml - The workflow builds the Jekyll site and deploys it to GitHub Pages
- The site is available at
https://vincentchuwaichow.github.io/vanguard-frontier-agentic/
🚀 Enabling GitHub Pages
To enable Pages for this repository:
- Go to Settings > Pages
- Under Source, select GitHub Actions
- The
jekyll-gh-pages.ymlworkflow handles the rest
No branch-based deployment is needed. The workflow uses the official actions/deploy-pages action with OIDC token exchange.
Workflow Explained
File: .github/workflows/jekyll-gh-pages.yml
Triggers
on:
push:
branches: [master]
paths:
- "docs/**"
- "_config.yml"
- "Gemfile"
- "Gemfile.lock"
- "index.md"
- "_layouts/**"
- "_includes/**"
- "_frontend/**"
- "static/**"
- "agents/**"
- "skills/**"
- "catalog/install-roles.json"
# ...plus the other inputs of docs/_data/catalog.yml
- "package.json"
workflow_run:
workflows: [Release]
types: [completed]
branches: [master]
workflow_dispatch:
The workflow runs when documentation content changes on master, or on manual dispatch.
Permissions (Least-Privilege)
permissions:
contents: read # Top-level baseline
jobs:
build-and-deploy:
permissions:
pages: write # Push built artifact to Pages
id-token: write # OIDC for Pages deployment API
Concurrency Control
concurrency:
group: "pages"
cancel-in-progress: false
Only one deployment runs at a time. In-progress deployments are NOT cancelled to avoid inconsistent states.
Build Steps
The workflow has two jobs so that third-party build code never runs next to a deploy token:
build (contents: read only)
- Checkout -
actions/checkout(no persisted credentials) - Setup Ruby -
ruby/setup-rubywithruby-version: 3.3and bundler caching - Build site assets -
actions/setup-node, thennpm run docs-site:install(npm ci --prefix _frontend --ignore-scripts) andnpm run docs-site:build, which regeneratesdocs/_data/catalog.ymlfrom the README count contract (scripts/lib/catalog-counts.mjs) and compiles Tailwind CSS, JS bundles and fonts intostatic/ - Build Jekyll -
bundle exec jekyll build --baseurl "/vanguard-frontier-agentic" - Upload artifact -
actions/upload-pages-artifactwithpath: ./_site
deploy (pages: write, id-token: write)
- Deploy -
actions/deploy-pagesonly; no repository code and no npm packages run here
The site’s build dependencies (Tailwind, esbuild, three, Mermaid, fonts) live in _frontend/package.json with their own lockfile. The root package, CI and the release job never install them.
Besides doc changes, the push trigger covers the inputs of docs/_data/catalog.yml (agents, skills, catalog indexes), so a catalog-only change refreshes the published counts. Release commits carry [skip ci], so the workflow also runs via workflow_run after each successful Release run on master, keeping the published version current.
Pull requests run the same asset and Jekyll build (without deploying) in the site-build job of .github/workflows/docs-quality.yml, followed by a smoke check that fails on missing pages/assets, blank catalog values, or a site agent count that differs from the README’s.
Environment
The job binds to the github-pages environment:
environment:
name: github-pages
url: $
Jekyll Configuration
File: _config.yml
Key settings:
| Setting | Value | Purpose |
|---|---|---|
baseurl |
/vanguard-frontier-agentic |
URL path prefix for project Pages |
markdown |
kramdown (GFM input, rouge highlighting) |
Markdown processor |
data_dir |
docs/_data |
Where the site.data.catalog counts and the navigation come from |
plugins |
jekyll-seo-tag |
SEO and social-card metadata |
There is no gem theme. The site uses its own layouts:
| Path | Purpose |
|---|---|
_layouts/default.html |
Docs pages: sidebar, breadcrumbs, table of contents, prev/next |
_layouts/home.html |
Landing page with the Three.js hero |
_includes/ |
Head, top bar, sidebar, footer, search palette, icons |
docs/_data/navigation.yml |
Sidebar and search entries (entries for unbuilt pages are skipped) |
_frontend/ |
Tailwind CSS and JavaScript sources, plus build.mjs |
static/img/ |
Committed images (see static/img/PROVENANCE.md) |
_frontend/package.json |
Isolated build-only dependencies (own lockfile; install with npm run docs-site:install) |
static/css, static/js, static/fonts, docs/_data/catalog.yml |
Build output of npm run docs-site:build (git-ignored) |
The exclude list prevents Jekyll from processing the npm package tree (agents, skills, node_modules, etc.).
Local Preview
Prerequisites
- Ruby 3.3+ installed
- Bundler installed (
gem install bundler) - Node.js 22+ (for
npm run docs-site:build)
Re-run npm run docs-site:build after editing anything in _frontend/, adding Tailwind classes to _layouts//_includes/, or changing the catalog (it regenerates docs/_data/catalog.yml, which is not committed).
Steps
# Install gems and the site's isolated Node build dependencies
bundle install
npm run docs-site:install
# Compile CSS/JS/fonts into static/, then serve with live reload
npm run docs-site:serve
# Site available at http://localhost:4000/
Use --baseurl "" locally to avoid the /vanguard-frontier-agentic prefix.
Using Docker (alternative)
# Build static/ assets on the host first: npm run docs-site:install && npm run docs-site:build
docker run --rm -v "$PWD:/srv/jekyll" -p 4000:4000 \
jekyll/jekyll:4.3 jekyll serve --baseurl ""
📄 Adding New Documentation Pages
- Create a Markdown file in
docs/with front matter:
---
layout: default
title: "Page Title"
permalink: /docs/page-slug/
---
# Page Title
Content here...
- The page is automatically included in the build (no config change needed)
- Add a link to
docs/index.mdfor discoverability - Push to master; the workflow deploys automatically
🔍 Troubleshooting
Build fails with “could not locate Gemfile”
Cause: The Gemfile is excluded in _config.yml or missing from the repo root.
Fix: Verify Gemfile exists at the repository root and is not in the exclude list (it should not be - it is needed for bundle install).
Page shows 404
Cause: Permalink does not match the URL you are visiting, or Pages is not enabled.
Fix: Check permalink: in front matter. Verify Pages is set to “GitHub Actions” source in repo settings.
Styles not loading
Cause: baseurl mismatch between local and deployed.
Fix: Use --baseurl "" for local development. The workflow passes --baseurl "/vanguard-frontier-agentic" for production.
Workflow does not trigger
Cause: Path filters do not match the changed files.
Fix: The workflow triggers on docs/**, _config.yml, Gemfile, index.md, and *.md. Ensure your change touches one of these paths.
Ruby version mismatch
Cause: Local Ruby version differs from workflow (3.3).
Fix: Use ruby-install 3.3 or configure via .ruby-version.
✅ How to Verify This Works
- Check the workflow ran: Actions tab > Deploy Documentation to GitHub Pages
- Verify the site loads:
https://vincentchuwaichow.github.io/vanguard-frontier-agentic/ - Verify new pages appear in navigation
- Confirm
workflow_dispatchworks by manually triggering from the Actions tab
# Verify the workflow file is valid YAML
python3 -c "import yaml; yaml.safe_load(open('.github/workflows/jekyll-gh-pages.yml'))"