This website is built using Docusaurus, a modern static website generator.
yarn
npm i --legacy-peer-depsyarn start
npm run startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
yarn build
npm run buildThis command generates static content into the build directory and can be served using any static contents hosting service.
Below are the commands to generate a PDF starting from Docusaurus. The plugin is a scraper which navigates the documentation using "next buttons" in the footer of the page.
https://github.com/jean-humann/docs-to-pdf
npm install -g docs-to-pdf
npx docs-to-pdf docusaurus --initialDocURLs="[url_of_page_you_want_scrape_from]" --contentSelector="article" --paginationSelector="a.pagination-nav__link.pagination-nav__link--next"
| Workflow | Trigger | Description |
|---|---|---|
deploy-typesense.yml |
Manual (environment: test/prod) | Deploy Typesense server to Docker runner |
index-docs.yml |
Manual / Tag v* (prod) / Tag rc* (test) |
Run DocSearch scraper to index documentation |
| Secret | Description |
|---|---|
TYPESENSE_API_KEY_TEST/PROD |
Admin API key for Typesense (scraper) |
TYPESENSE_SEARCH_ONLY_API_KEY_TEST/PROD |
Search-only API key (frontend) |
SSH_PRIVATE_KEY |
SSH key for deployment |
GH_PERSONAL_ACCESS_TOKEN |
GitHub token for Docker registry |
AWS_S3_ACCESS_KEY_ID |
AWS S3 access key |
AWS_S3_SECRET_ACCESS_KEY |
AWS S3 secret key |
Note: Typesense hosts are configured as env variables in the workflow files.
- Deploy Typesense: Run
deploy-typesense.ymlmanually, selecting environment - Deploy Documentation: Deploy the Docusaurus site (separate workflow)
- Index Documentation:
- Automatically triggered on
v*tags (prod) orrc*tags (test) - Or run
index-docs.ymlmanually after deployment
- Automatically triggered on