bash create_docs.sh
Don't forget to include any new modules in the sidebars for the docusaurus config
pip install sphinx sphinx-markdown-builder;
sphinx-apidoc -o Sphinx-docs . sphinx-apidoc --full -A 'Saiem Gilani';
cd Sphinx-docs;
echo "
import os
import sys
sys.path.insert(0,os.path.abspath('../'))
def skip(app, what, name, obj,would_skip, options):
if name in ( '__init__',):
return False
return would_skip
def setup(app):
app.connect('autodoc-skip-member', skip)
" >> conf.py;
make markdown;
At this point, you should have some combined markdown files in the Sphinx-docs/_build/
folder
Some will be the functions you documented and those are the ones we are most interested in.
This website is built using Docusaurus 2, a modern static website generator.
yarn install
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
yarn build
This command generates static content into the build
directory and can be served using any static contents hosting service.
GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages
branch.