|
||
---|---|---|
.github/workflows | ||
.vscode | ||
docs | ||
src | ||
static | ||
.cspell.json | ||
.gitignore | ||
.huskyrc | ||
.lintstagedrc | ||
.prettierignore | ||
Jenkinsfile | ||
README.md | ||
babel.config.js | ||
docusaurus.config.js | ||
package.json | ||
sidebars.js | ||
tsconfig.json | ||
yarn.lock |
README.md
Waku Documentation Portal
The Waku Documentation Portal can be accessed at waku.guide and was built using Docusaurus 2, a modern static website generator.
Prerequisites
Installation
Clone this repository:
git clone https://github.com/waku-org/waku.guide
Install the dependencies:
npm install
# or
yarn install
Running Locally
npm start
# or
yarn start
Check for spelling errors before deploying:
npm run check:spell
# or
yarn check:spell
Create a production build locally to check for errors:
npm run build
npm run serve
# or
yarn build
yarn serve
Configuration
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:
- Logos
- Codex
- Waku
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.
Customization
You can find the instructions on adding more documentation sections, localization, and versioning on the Docusaurus website.
Note that theme customization is limited; for further instructions on customizing your theme, head over to Logos Docusaurus Theme.
Troubleshooting
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:
npm run clear
# or
yarn clear