- Python 3
- Sphinx
- Breathe
- Doxygen
- Node and markdownlint-cli (optional)
python -m venv .pyvenv
. .pyvenv/bin/activate
python -m pip install --upgrade pip
python -m pip install rstcheck
python -m pip install sphinx
python -m pip install sphinx_rtd_theme
python -m pip install breathe
Optionally, install markdownlint-cli
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install markdownlint-cli
./node_modules/.bin/markdownlint --version
rstcheck -r doc
./node_modules/.bin/markdownlint --config .markdownlint.json README.md
pushd doc && make clean && make html && popd
Push content of doc/build/html
to gh-pages
branch:
git clone -b gh-pages https://github.com/nanodbc/nanodbc.git website
cp -a doc/build/html/* website/
cp -a doc/build/html/.buildinfo website/
cp -a doc/build/html/.nojekyl website/
cd website
git add -A
git commit -m "docs: Update build"
git push origin gh-pages