https://pughlab.mbg.cornell.edu/scriptmanager-docs
This website includes all the website-building files for the documentation of ScriptManager. These were originally hosted within the same repository until they were split from the original CEGRcode/scriptmanager
repository as a standalone repository. These files were migrated from the 892f2fb commit.
Docusaurus is powered by NodeJS. You can set it up with the following conda command:
conda create -n docusaurus -c conda-forge nodejs
After creating the environment above (do this once per machine), you can activate the environment anytime using
conda activate docusaurus
This website is built using Docusaurus 2, a modern static website generator. Use the following commands from within the repo directory (cd /your/path/to/scriptmanager-docs
).
$ npm install
$ npm run start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ npm run build
This command generates static content into the build
directory and can be served using any static contents hosting service.
$ npm run serve
This command serves the static content from the build
directory and can be used to check that the site renders properly before deployment.
$ USE_SSH=true
$ GIT_USER=<Your GitHub username> GIT_PASS=<Your GitHub personal access token> npm run deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages
branch.