This documentation website is built using Docusaurus 3.0, a modern static website generator.
As Docusaurus 3.0 lacks support for search functionality, we utilize Docusaurus 2.4 plugins. When installing, include the --legacy-peer-deps
keyword to handle legacy peer dependencies.
npm install --legacy-peer-deps
To initiate a local development server and open a browser window, execute the following command. Most changes are reflected live without requiring a server restart.
npm run start
Since we employ local searching features, you need to build first and then serve it to see the result, as it builds its index during runtime.
npm run search
It will do both and show you a result. You have to run it again, if you want to see more changes.
To include the notebooks a template from the open-source project, check out the superduper
project into the same parent directory.
Then run:
jupyter nbconvert ../superduper/templates/$name/build.ipynb --clear-output
jupyter nbconvert ../superduper/templates/$name/build.ipynb --to markdown
mv ../superduper/templates/$name/build.md docs/templates/$name.md
Generate static content into the build
directory using the following command. The output can be served using any static content hosting service.
npm run build
USE_SSH=true npm run deploy
GIT_USER=<Your GitHub username> npm run deploy
If you use GitHub Pages for hosting, this command conveniently builds the website and pushes it to the gh-pages
branch.