Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit cf4534c

Browse files
authored
[doc] Switch to autoapi for doc generation (#88)
* Switch to autoapi for doc generation * Update README link
1 parent 8a01c28 commit cf4534c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+774
-46
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ test.py
1111
*.iml
1212
examples/*.json
1313
examples/*.pdf
14-
docs/_build
14+
docs/_build
15+
Pipfile*

.readthedocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ python:
2121
version: 3.8
2222
install:
2323
- requirements: requirements.txt
24+
- requirements: docs/requirements.txt

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To learn about how to use the OpenCTI Python client and read some examples and c
2626

2727
### API reference
2828

29-
To learn about the methods available for executing queries and retrieving their answers, refer to [the client API Reference](https://opencti-client-for-python.readthedocs.io/en/latest/modules/modules.html).
29+
To learn about the methods available for executing queries and retrieving their answers, refer to [the client API Reference](https://opencti-client-for-python.readthedocs.io/en/latest/pycti/pycti.html).
3030

3131
## About
3232

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727

2828
master_doc = "index"
2929

30+
autoapi_modules = {"pycti": {"prune": True}}
31+
3032
# -- General configuration ---------------------------------------------------
3133

3234
# Add any Sphinx extension module names here, as strings. They can be
3335
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3436
# ones.
35-
extensions = [
36-
"sphinx.ext.autodoc",
37-
]
37+
extensions = ["sphinx.ext.autodoc", "sphinx.ext.inheritance_diagram", "autoapi.sphinx"]
3838

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

docs/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ The Python library requires Python >= 3.
1010
:maxdepth: 2
1111
:caption: Contents:
1212

13-
modules/modules.rst
1413
client_usage/getting_started.rst
14+
pycti/pycti
15+
1516

1617
Indices and tables
1718
==================

docs/modules/api.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/modules/connector.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/modules/entities.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/modules/modules.rst

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/modules/utils.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)