Skip to main content

Publishing This Site

The docs site lives under website/ and is configured for GitHub Pages at:

https://deepphe.github.io/dphe-gui/

The important Docusaurus settings are:

url: 'https://deepphe.github.io',
baseUrl: '/dphe-gui/',
organizationName: 'DeepPhe',
projectName: 'dphe-gui',

Run Locallyโ€‹

cd website
npm install
npm run start

Build Locallyโ€‹

cd website
npm run build

The production output is written to:

website/build/

GitHub Pages Workflowโ€‹

The repository includes:

.github/workflows/deploy-docs.yml

On pushes to main that change the docs site, the workflow:

  1. Installs Node.js.
  2. Runs npm ci in website/.
  3. Runs npm run build.
  4. Uploads website/build as a GitHub Pages artifact.
  5. Deploys the artifact with actions/deploy-pages.

In the GitHub repository settings, Pages should be configured to deploy from GitHub Actions.