Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Check Sphinx Documentation build minimally
working-directory: ./docs
run: sphinx-build -E -W source build
run: python3 -m sphinx -E -W source build

- name: Check for documentation style errors
working-directory: ./docs
Expand Down
10 changes: 10 additions & 0 deletions docs/source/api/license_expression.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
license\_expression package
===========================

Module contents
---------------

.. automodule:: license_expression
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
license_expression
==================

.. toctree::
:maxdepth: 4

license_expression
30 changes: 18 additions & 12 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# add these directories to sys.path here.

import pathlib
import sys

srcdir = pathlib.Path(__file__).resolve().parents[2].joinpath('src')
sys.path.insert(0, srcdir.as_posix())

# -- Project information -----------------------------------------------------

Expand All @@ -28,19 +28,25 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinxcontrib.apidoc",
]

# This points to aboutcode.readthedocs.io
# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot
# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83
# FIXME: including AND, NOT and OR will result in endless recursion
autodoc_default_options = {
'exclude-members': 'AND, NOT, OR',
}

# Setting for sphinxcontrib.apidoc to automatically create API documentation.
apidoc_module_dir = srcdir.joinpath('license_expression').as_posix()

# Reference to other Sphinx documentations
intersphinx_mapping = {
"aboutcode": ("https://aboutcode.readthedocs.io/en/latest/", None),
"scancode-workbench": ("https://scancode-workbench.readthedocs.io/en/develop/", None),
"python": ("https://docs.python.org/3", None),
"boolean.py": ("https://booleanpy.readthedocs.io/en/latest/", None),
}


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

Expand Down
314 changes: 0 additions & 314 deletions docs/source/contribute/contrib_doc.rst

This file was deleted.

Loading