Note: Google style / Numpy style for docstrings should be used for this example. Check it here
- pip install sphinx
- pip install myst-parser # To parse markdown files
- pip install sphinx-rtd-theme # or any theme
- mkdir docs
- cd docs
- sphinx-quickstart
import os
import sys
sys.path.insert(0, os.path.abspath('..')) # Change to point to the parent folder of your app
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'sphinx.ext.napoleon',
'myst_parser',
]
html_theme = 'sphinx_rtd_theme'
sphinx-apidoc -o docs/source parent_folder_name/
Welcome to XXXXX's documentation!
=========================================
This Framework contains automated test cases written in robotframework.
.. toctree::
:maxdepth: 2
:caption: Contents:
modules
cd docs/source
./make.bat html
sphinx-apidoc -o docs/source parent_folder_name/ # make sure it doesn't erase custom stuff we have in source
./make.bat clean; ./make.bat html
/build/html/index.html
mkdir serve
copy the update.bat and app.py to the folder
./update.bat