This repository contains Oasis Docs deployed at https://docs.oasis.dev/.
They are built using Docusaurus 2, a modern static website generator.
Install Node packages with:
yarn
Checkout all Git submodules with:
git submodule update --init
To start the local development server, use:
yarn start
This command will start a local development server and open your browser at http://localhost:3000/.
Most changes will be reflected live without having to restart the server.
To generate the static site, use:
yarn build
This will generate the static content in the build directory. Its contents
can be served using any static content hosting service.
Docs will be automatically re-generated and re-deployed once a pull request is
merged into the main branch.
Docusaurus already checks all internal links if they are broken.
To check all the links, including the external ones, using a local Oasis Docs deployment, do the following:
-
Set
config.urlparameter indocusaurus.config.jsto'http://localhost:3000/'. -
Generate the static site using:
yarn build -
Serve the static site in the
builddirectory locally using:yarn serve -
Run broken link checker in a new terminal with:
yarn blc
NOTE: Some external URLs appear to be receiving wrong 200-ish HTTP code despite
opening correctly in the browser. Exclude those links manually from the broken
link checker in package.json.