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:
- Installs Node.js.
- Runs
npm ciinwebsite/. - Runs
npm run build. - Uploads
website/buildas a GitHub Pages artifact. - Deploys the artifact with
actions/deploy-pages.
In the GitHub repository settings, Pages should be configured to deploy from GitHub Actions.