The Waku Documentation Portal can be accessed at https://docs.waku.org/ and was built using Docusaurus 2, a modern static website generator.
Clone this repository:
git clone https://github.com/waku-org/docs.waku.org
Install the dependencies:
yarn
# or
yarn install
yarn start # Run 'node fetch-content.js' in the root directory to fetch remote files
Check for spelling errors before deploying:
yarn check:spell
Create a production build locally to check for errors:
yarn build # Runs 'node fetch-content.js' and then 'docusaurus build'
# The 'fetch-content.js' script fetches documents from the nwaku and research repositories.
# test the build
yarn serve
Edit the docusaurus.config.js
file located in the repository's root directory, and update the businessUnit
field within the presets section. Here is a list of valid values for this field:
Example:
presets: [
[
'@acid-info/logos-docusaurus-preset',
{
businessUnit: 'Waku',
},
],
],
This should suffice since Logos plugins will handle other configurations linked to the designated business unit. However, if you encounter any inaccuracies in the data provided by Logos Plugins, please visit the Logos Docusaurus Plugins page and submit an issue.
You can find the instructions on adding more documentation sections, localisation, and versioning on the Docusaurus website.
Note that theme customisation is limited; for further instructions on customizing your theme, head over to Logos Docusaurus Theme.
Docusaurus depends heavily on caching to enhance site performance. If you make changes that do not appear in the portal, try clearing the cache by running:
yarn clear
master
and pushes to deploy-master
branch, which is hosted at https://docs.waku.org/.develop
and pushes to deploy-develop
branch, which is hosted at https://dev-docs.waku.org/.The hosting is done using Caddy server with Git plugin for handling GitHub webhooks.
Information about deployed build can be also found in /build.json
available on the website.