Skip to content

Latest commit

 

History

History
executable file
·
71 lines (53 loc) · 1.67 KB

docs_instructions.md

File metadata and controls

executable file
·
71 lines (53 loc) · 1.67 KB

Documentation update

bash create_docs.sh

Don't forget to include any new modules in the sidebars for the docusaurus config

Documentation Creation

pip install sphinx sphinx-markdown-builder;
sphinx-apidoc -o Sphinx-docs . sphinx-apidoc --full -A 'Saiem Gilani';
cd Sphinx-docs;

Conf.py

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.

Docusaurus(v2) Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

yarn install

Local Development

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.

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

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.