Skip to content

Commit

Permalink
Generate rst files during build time
Browse files Browse the repository at this point in the history
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
  • Loading branch information
bact committed Jan 19, 2025
1 parent b69fd27 commit 4062443
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 76 deletions.
1 change: 1 addition & 0 deletions .github/workflows/apidoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- name: Build documentation
run: |
sphinx-apidoc -o docs/ ntia_conformance_checker/
cd docs
make html
Expand Down
26 changes: 10 additions & 16 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@
# Path setup
sys.path.insert(0, os.path.abspath(".."))

# -- Project information -----------------------------------------------------
# Add any paths that contain templates here, relative to this directory.
templates_path: list[str] = ["_templates"]

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

# Project information
project = "NTIA Conformance Checker" # pylint: disable=C0103
project_copyright = "2022-%Y SPDX contributors" # pylint: disable=C0103
author = "SPDX contributors" # pylint: disable=C0103

# -- General configuration ---------------------------------------------------
# The theme to use for HTML and HTML Help pages.
html_theme = "sphinx_rtd_theme" # pylint: disable=C0103

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
Expand All @@ -32,21 +40,7 @@
"sphinx.ext.viewcode",
]

# Add any paths that contain templates here, relative to this directory.
templates_path: list[str] = ["_templates"]

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns: list[str] = []

# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages.
# See the documentation for a list of builtin themes.
html_theme = "sphinx_rtd_theme" # pylint: disable=C0103

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.. NTIA Conformance Checker documentation master file.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
The `modules` item will be generated from this command line:
sphinx-apidoc -o docs/ ntia_conformance_checker/
NTIA Conformance Checker's documentation
====================================================
Expand Down
7 changes: 0 additions & 7 deletions docs/modules.rst

This file was deleted.

53 changes: 0 additions & 53 deletions docs/ntia_conformance_checker.rst

This file was deleted.

0 comments on commit 4062443

Please sign in to comment.