Skip to main content

Publish to GitHub Pages

Project is configured for GitHub Pages deployment from the gh-pages branch.

Base config (docusaurus.config.js):

  • url: https://drasticstatic.github.io
  • baseUrl: /gratitude-token-project_docs/
  • organizationName: drasticstatic
  • projectName: gratitude-token-project_docs
  • deploymentBranch: gh-pages

Deploy from our machine:

  1. Build & push in one step
  • npm run deploy

This runs a fresh build and pushes to the gh-pages branch.

  1. Verify the site is live

Troubleshooting:

  • If deploy prompts for GitHub auth, sign in and re-run the command
  • If links 404 under a different baseUrl, ensure the deployed site path matches baseUrl
  • we can always view the last successful local build at build/index.html

Public-computer friendly: