This repository houses the content and source code for the documentation portal.
The primary method of contributing is by making a pull request. You can either edit the source code directly in GitHub (which would automatically fork the repository into your own account), or by cloning a local copy and forking the repository manually.
Documentation is written in Markdown. While Markdown supports HTML, we encourage the minimal use of HTML so as to ensure that all documentation is of similar style.
If there are insufficient articles or incorrect information, please file a new issue against this repository. It will help us ensure that content is kept up to date.
When changes are committed or pull requests merged, the documentation portal will be updated automatically. If this is not the case, please open an issue for us to investigate.
If you want to take a look at how your changes look, you can run a local install of the documentation portal.
- Install pip:
sudo apt-get update && sudo apt-get install python3-pip
- Install mkdocs:
pip3 install mkdocs
(you may need sudo for this, Windows users may need to runpython -m pip install mkdocs
instead) - Install the
material
theme:pip3 install mkdocs-material
- From repo root, create a symbolic link pointing to
src/docs
:ln -s ./src/docs
- Install dependencies:
yarn
ornpm
- Build templates:
node src/compile.js
- Start development mode:
mkdocs serve
(run this from the root of the checked out repository,python -m mkdocs serve
for Windows) - Browse to
http://localhost:8000
The page will automatically refresh every time any files are changed.
At this time we do not have plans to localise the NodeBB documentation.