Skip to content

Commit

Permalink
docs: use autoprogram
Browse files Browse the repository at this point in the history
Signed-off-by: Unai Martinez-Corral <umartinezcorral@antmicro.com>
  • Loading branch information
umarcor committed Aug 29, 2022
1 parent 26b4e9b commit 97696d9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@
# Updated documentation of the configuration options is available at
# https://www.sphinx-doc.org/en/master/usage/configuration.html

import sys, os
from sys import path as sys_path
from pathlib import Path

from tabulate import tabulate

ROOT = Path(__file__).resolve().parent

#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, str(ROOT))
sys_path.insert(0, str(ROOT))

from changes import generate_changes_inc

Expand Down Expand Up @@ -69,6 +68,7 @@
extensions = [
'sphinx.ext.extlinks',
'sphinx.ext.intersphinx',
"sphinxcontrib.autoprogram",
'sphinx_verilog_domain',
'sphinxcontrib.bibtex',
'myst_parser'
Expand Down
6 changes: 6 additions & 0 deletions docs/f4pga/Reference.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Reference
#########

.. autoprogram:: f4pga.cli:CLI().MainParser
:prog: f4pga
:groups:
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Table of Contents
f4pga/Usage
f4pga/modules/index
f4pga/DevNotes
f4pga/Reference
f4pga/Deprecated


Expand Down
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
-r ../f4pga/requirements.txt
myst-parser
pyyaml
sphinx>=4.5.0
sphinxcontrib-autoprogram
sphinxcontrib-bibtex
https://github.com/f4pga/sphinx_f4pga_theme/archive/f4pga.zip#sphinx-f4pga-theme
https://github.com/SymbiFlow/sphinx-verilog-domain/archive/master.zip#sphinx-verilog-domain
Expand Down

0 comments on commit 97696d9

Please sign in to comment.