Skip to main content

Documentation Site

The documentation site lives in site/. It is a Docusaurus site with English and French content, the 7review mascot, and a GitHub Pages workflow.

Local commands

Install dependencies once:

cd site
npm install

Run the development server:

npm run start -- --port 3000 --host 0.0.0.0

Build the production site:

npm run build

Serve the generated build locally:

npm run serve -- --host 0.0.0.0

GitHub Pages setup

The workflow at .github/workflows/pages.yml builds site/ and deploys the generated site/build artifact with actions/deploy-pages.

GitHub requires one repository setting before the first deployment:

  1. Open the repository on GitHub.
  2. Go to Settings.
  3. Open Pages.
  4. Under Build and deployment, set Source to GitHub Actions.
  5. Save the setting, then rerun the Deploy documentation workflow.

The workflow does not enable Pages automatically because the default GITHUB_TOKEN can deploy to Pages, but it cannot always create or enable the Pages site for the repository. When Pages is not enabled, GitHub returns Resource not accessible by integration.

Published path

The Docusaurus base URL is configured for:

/7review/

For a repository named 7review, the published site should be available under:

https://<owner>.github.io/7review/

When the workflow fails

SymptomCauseFix
Resource not accessible by integrationPages has not been enabled from repository settingsSet Pages source to GitHub Actions, then rerun
Missing script: startCommand was run outside site/Run cd site first
Build succeeds but styles or routes are wrongbaseUrl does not match the repository pathCheck baseUrl in site/docusaurus.config.js