Skip to content

Commit 376b851

Browse files
committed
[client-python] chore(docs): fix readthedocs
1 parent 58abf4c commit 376b851

6 files changed

Lines changed: 15 additions & 65 deletions

File tree

.readthedocs.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,15 @@
11
---
2-
# .readthedocs.yml
3-
# Read the Docs configuration file
4-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
5-
6-
# Required
72
version: 2
83

94
build:
105
os: ubuntu-22.04
116
tools:
127
python: "3.12"
138

14-
# Build documentation in the docs/ directory with Sphinx
159
sphinx:
1610
configuration: docs/conf.py
1711

18-
# Build documentation with MkDocs
19-
#mkdocs:
20-
# configuration: mkdocs.yml
21-
22-
# Optionally build your docs in additional formats such as PDF and ePub
23-
formats: all
24-
25-
# Optionally set the version of Python and requirements required to build your docs
2612
python:
2713
install:
28-
- requirements: requirements.txt
2914
- requirements: docs/requirements.txt
15+
- path: .

README.md

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

5959
### API reference
6060

61-
To learn about the methods available for executing queries and retrieving their answers, refer to [the client API Reference](https://openaev-client-for-python.readthedocs.io/en/latest/pyoaev/pyoaev.html).
61+
To learn about the methods available for executing queries and retrieving their answers, refer to [the client API Reference](https://openaev-client-for-python.readthedocs.io/en/latest/autoapi/index.html).
6262

6363
## Tests
6464

docs/_static/.gitkeep

Whitespace-only changes.

docs/conf.py

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,33 @@
1-
# Configuration file for the Sphinx documentation builder.
2-
#
3-
# This file only contains a selection of the most common options. For a full
4-
# list see the documentation:
5-
# https://www.sphinx-doc.org/en/master/usage/configuration.html
6-
7-
# -- Path setup --------------------------------------------------------------
8-
9-
# If extensions (or modules to document with autodoc) are in another directory,
10-
# add these directories to sys.path here. If the directory is relative to the
11-
# documentation root, use os.path.abspath to make it absolute, like shown here.
12-
#
131
import os
142
import sys
153

164
sys.path.insert(0, os.path.abspath(".."))
175

18-
19-
# -- Project information -----------------------------------------------------
20-
216
project = "OpenAEV client for Python"
227
copyright = "2024, Filigran"
238
author = "OpenAEV Project"
24-
25-
# The full version, including alpha/beta/rc tags
269
release = "1.10.1"
2710

2811
master_doc = "index"
29-
30-
autoapi_modules = {"pyoaev": {"prune": True}}
31-
3212
pygments_style = "sphinx"
3313

34-
# -- General configuration ---------------------------------------------------
35-
36-
# Add any Sphinx extension module names here, as strings. They can be
37-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
38-
# ones.
3914
extensions = [
4015
"sphinx.ext.autodoc",
4116
"sphinx.ext.inheritance_diagram",
42-
"autoapi.sphinx",
17+
"autoapi.extension",
4318
"sphinx_autodoc_typehints",
4419
]
4520

46-
# Add any paths that contain templates here, relative to this directory.
47-
templates_path = ["_templates"]
21+
autoapi_dirs = ["../pyoaev"] # adjust this path to where your source package is
22+
autoapi_options = [
23+
"members",
24+
"undoc-members",
25+
"show-inheritance",
26+
"show-module-summary",
27+
]
4828

49-
# List of patterns, relative to source directory, that match files and
50-
# directories to ignore when looking for source files.
51-
# This pattern also affects html_static_path and html_extra_path.
29+
templates_path = ["_templates"]
5230
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
5331

54-
55-
# -- Options for HTML output -------------------------------------------------
56-
57-
# The theme to use for HTML and HTML Help pages. See the documentation for
58-
# a list of builtin themes.
59-
#
6032
html_theme = "sphinx_rtd_theme"
61-
62-
# Add any paths that contain custom static files (such as style sheets) here,
63-
# relative to this directory. They are copied after the builtin static files,
64-
# so a file named "default.css" will overwrite the builtin "default.css".
6533
html_static_path = ["_static"]

docs/index.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
OpenAEV client for Python
22
=========================
3-
43
The pyoaev library is designed to help OpenAEV users and developers to interact
54
with the OpenAEV platform API.
6-
75
The Python library requires Python >= 3.
86

97
.. toctree::
108
:maxdepth: 2
119
:caption: Contents:
1210

1311
client_usage/getting_started.rst
14-
pyoaev/pyoaev
15-
1612

1713
Indices and tables
1814
==================
19-
2015
* :ref:`genindex`
2116
* :ref:`modindex`
2217
* :ref:`search`

docs/requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
autoapi==2.0.1
2-
sphinx==8.2.3
1+
sphinx==9.1.0
2+
sphinx-autoapi==3.4.0
3+
astroid==3.3.8
34
sphinx-autodoc-typehints==3.2.0
4-
sphinx_rtd_theme==3.0.2
5+
sphinx_rtd_theme==3.1.0

0 commit comments

Comments
 (0)