Skip to content

Commit a1d11f3

Browse files
authored
Remove cid from toctree and ignore generated files in docs config (#59)
* remove cid from toctree, not needed * remove cid from toctree and ignore generated rst files we do not use * remove unnecessary delete of rst files in makefile docs targets
1 parent d7e8c2b commit a1d11f3

File tree

4 files changed

+1
-7
lines changed

4 files changed

+1
-7
lines changed

.readthedocs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ build:
44
os: ubuntu-22.04
55
tools:
66
python: "3.10"
7-
commands:
8-
- rm -f docs/cid.rst docs/modules.rst
9-
- python -m sphinx.ext.apidoc -o docs/ cid
107

118
sphinx:
129
configuration: docs/conf.py

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,12 @@ coverage: ## check code coverage quickly with the default Python
7272
$(BROWSER) htmlcov/index.html
7373

7474
docs: ## generate Sphinx HTML documentation, including API docs
75-
rm -f docs/cid.rst
7675
sphinx-apidoc -o docs/ --separate --no-toc cid
7776
$(MAKE) -C docs clean
7877
$(MAKE) -C docs html
7978
$(BROWSER) docs/_build/html/index.html
8079

8180
check-docs-ci: ## check documentation for CI
82-
rm -f docs/cid.rst
8381
sphinx-apidoc -o docs/ --separate --no-toc cid
8482
$(MAKE) -C docs clean
8583
$(MAKE) -C docs html

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979

8080
# List of patterns, relative to source directory, that match files and
8181
# directories to ignore when looking for source files.
82-
exclude_patterns = ['_build']
82+
exclude_patterns = ['_build', 'modules.rst', 'cid.rst', 'cid.cid.rst', 'cid.base58.rst']
8383

8484
# The reST default role (used for this markup: `text`) to use for all
8585
# documents.

docs/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Table of contents
1414
installation
1515
usage
1616
api_reference
17-
cid
1817
contributing
1918
authors
2019
history

0 commit comments

Comments
 (0)