docs
Configuration for documentation with Sphinx and ReadTheDocs.
Functions:
|
Copy custom styling for documentation to the desired repository. |
|
Ensure |
|
|
Make the custom stylesheet for the alabaster Sphinx theme. |
|
|
Add |
|
Create the “License” page in the documentation. |
|
Create the “Source” page in the documentation, and add the associated image. |
|
Add configuration for |
Make the custom stylesheet for the ReadTheDocs Sphinx theme. |
|
|
Add configuration for |
|
Update blocks in the documentation |
-
copy_docs_styling(repo_path, templates)[source] Copy custom styling for documentation to the desired repository.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
ensure_doc_requirements(repo_path, templates)[source] Ensure
<docs_dir>/requirements.txtcontains the required entries.- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_404_page(repo_path, templates)[source] - Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_alabaster_theming()[source] Make the custom stylesheet for the alabaster Sphinx theme.
- Return type
- Returns
The custom stylesheet.
-
make_conf(repo_path, templates)[source] Add
conf.pyconfiguration file forSphinx.https://www.sphinx-doc.org/en/master/index.html
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_docs_license_rst(repo_path, templates)[source] Create the “License” page in the documentation.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_docs_source_rst(repo_path, templates)[source] Create the “Source” page in the documentation, and add the associated image.
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_docutils_conf(repo_path, templates)[source] Add configuration for
Docutils.- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type
-
make_readthedocs_theming()[source] Make the custom stylesheet for the ReadTheDocs Sphinx theme.
- Return type
- Returns
The custom stylesheet.
-
make_rtfd(repo_path, templates)[source] Add configuration for
ReadTheDocs.See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
- Parameters
repo_path (
Path) – Path to the repository root.templates (
Environment)
- Return type