Documentation Guide
#
Using Local ToolsThis project's documentation is using docusaurus to generate docs from markdown files and loaded in a react app.
To extend the doc simply create a markdown file and reference the ID in the side bar. Please see the related documentation at the docusaurus 2 project website.
#
Installation#
Local DevelopmentThis command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
#
BuildThis command generates static content into the build
directory and can be served using any static contents hosting service.
#
Using Docker#
Build the container#
Local DevelopmentThe docs will be visible at http://localhost:8000/netsage-pipeline/
#
Tagging New releaseOnce the documentation is stable and you don't forsee any new change, please do the following:
Where 1.1.0 is the next release version. Commit the new directories created under
note
Alternatively, if you have docker setup, you may run this command and avoid installing all of the required javascript dependencies.
(note if image is not built yet, please run: docker-compose build build_docs
)
- website/versioned_docs
- website/versioned_sidebars
- versions.json
Update the docusaurus.config.js
should point to the latest value.
#
Removing a versionTo remove version 1.2.6 for example.
we need to:
- update versions.json to remove the reference
- remove the versioned_docs/version-1.2.6
- remove versioned_sidebars/version-1.2.6-sidebars.json