Docs Deployment
Docs Deployment
Section titled “Docs Deployment”Rhyolite documentation is built with Astro and deployed automatically to GitHub Pages using GitHub Actions. This ensures your docs are always up-to-date and accessible for users and contributors.
How It Works
Section titled “How It Works”- Build: On every push to
main, the docs are built using Astro’s static site generator. - Deploy: The built site is deployed to the
gh-pagesbranch via GitHub Actions. - Live Preview: Preview your docs locally with
pnpm devin thedocsfolder.
Local Development
Section titled “Local Development”cd docspnpm installpnpm devContinuous Deployment
Section titled “Continuous Deployment”The workflow file .github/workflows/docs.yml automates the build and deploy process. It uses peaceiris/actions-gh-pages for reliable deployment.
Key steps:
- Install dependencies
- Build the docs
- Deploy to GitHub Pages
Custom Domains
Section titled “Custom Domains”To use a custom domain, add a CNAME file to docs/public/ with your domain name.
Troubleshooting
Section titled “Troubleshooting”- If your docs do not update, check the Actions tab for workflow errors.
- Ensure the
siteandbaseinastro.config.mjsmatch your GitHub Pages URL.
For more, see CI/CD Best Practices.