Example implementation of a documentation site powered by Docusaurus and published to GitHub Pages
See the webapp directory for the Docusaurus code
- go-task
- pre-commit
- Current version of Node/NPM
- Fork/Import this repository
- (SAICers) Change LICENSE to whichever license that needs to be applied here
- If you are providing documentation for something that is being published as open source, the license of this project should match the license of the software
- If you are publishing the documentation of a proprietary/commercial product, use Createive Commons Attribution NonCommercial ShareAlike (CC-NC-SA)
- Edit ./webapp/docusaurus.config.js
title:
- Title of your sitetagline:
- Tagline of your siteurl:
- URL of the base website (SAICers: You shouldn't need to change this)baseUrl:
- Base path that your site lives on. Should be the same as the github repo nameorganizationName:
- GitHub org name (SAICers: You shouldn't need to change this)projectName:
- Name of the GitHub repo- other - make whatever other changes you need to customize your site
- Get the project wired up with a compliant CI/CD pipeline. SAIC uses CodeFresh for this. Please contact the admins.
# Validate project
task validate
# Run tests
task test
# Run security scans (there aren't any yet)
task secure
# Run the site locally, have it watch for changes and automatically rebuild
task start
# Build the Docusaurus static content
task build
# Deliver/Deploy the specified branch to GitHub Pages
GIT_USER="bobbytables" \
GIT_PASS="abc123abc123abc123abc123abc123abc123" \
DEPLOYMENT_BRANCH="gh-pages" \
CURRENT_BRANCH="main" \
GIT_CONFIG_USR="Robert Tables" \
GIT_CONFIG_EMAIL="[email protected]" \
task deliver
See more Docusaurus-centric instructions in ./webapp/README.md or at https://v2.docusaurus.io/