-
Notifications
You must be signed in to change notification settings - Fork 6
[client-python] chore(docs): fix readthedocs (#69) #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,15 @@ | ||
| --- | ||
| # .readthedocs.yml | ||
| # Read the Docs configuration file | ||
| # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
|
||
| # Required | ||
| version: 2 | ||
|
|
||
| build: | ||
| os: ubuntu-22.04 | ||
| tools: | ||
| python: "3.12" | ||
|
|
||
| # Build documentation in the docs/ directory with Sphinx | ||
| sphinx: | ||
| configuration: docs/conf.py | ||
|
|
||
| # Build documentation with MkDocs | ||
| #mkdocs: | ||
| # configuration: mkdocs.yml | ||
|
|
||
| # Optionally build your docs in additional formats such as PDF and ePub | ||
| formats: all | ||
|
|
||
| # Optionally set the version of Python and requirements required to build your docs | ||
| python: | ||
| install: | ||
| - requirements: requirements.txt | ||
| - requirements: docs/requirements.txt | ||
| - path: . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,65 +1,54 @@ | ||
| # Configuration file for the Sphinx documentation builder. | ||
| # | ||
| # This file only contains a selection of the most common options. For a full | ||
| # list see the documentation: | ||
| # https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
|
||
| # -- 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("..")) | ||
|
|
||
|
|
||
| # -- Project information ----------------------------------------------------- | ||
|
|
||
| project = "OpenAEV client for Python" | ||
| copyright = "2024, Filigran" | ||
| author = "OpenAEV Project" | ||
|
|
||
| # The full version, including alpha/beta/rc tags | ||
| release = "1.10.1" | ||
|
|
||
| master_doc = "index" | ||
|
|
||
| autoapi_modules = {"pyoaev": {"prune": True}} | ||
|
|
||
| pygments_style = "sphinx" | ||
|
|
||
| # -- General configuration --------------------------------------------------- | ||
|
|
||
| # Add any Sphinx extension module names here, as strings. They can be | ||
| # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom | ||
| # ones. | ||
| extensions = [ | ||
| "sphinx.ext.autodoc", | ||
| "sphinx.ext.inheritance_diagram", | ||
| "autoapi.sphinx", | ||
| "autoapi.extension", | ||
| "sphinx_autodoc_typehints", | ||
| ] | ||
|
|
||
| # Add any paths that contain templates here, relative to this directory. | ||
| templates_path = ["_templates"] | ||
| autoapi_dirs = ["../pyoaev"] | ||
| autoapi_options = [ | ||
| "members", | ||
| "undoc-members", | ||
| "private-members", | ||
| "show-inheritance", | ||
| ] | ||
|
|
||
| # List of patterns, relative to source directory, that match files and | ||
| # directories to ignore when looking for source files. | ||
| # This pattern also affects html_static_path and html_extra_path. | ||
| exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] | ||
| autodoc_inherit_docstrings = False | ||
|
|
||
| # Inherited docstrings from stdlib base classes are noisy — suppress them | ||
| _INHERITED_DOCSTRING_MARKERS = [ | ||
| "Create a collection of name/value pairs.", # enum.Enum | ||
| "str(object='') -> str", # str | ||
| ] | ||
|
|
||
| # -- Options for HTML output ------------------------------------------------- | ||
|
|
||
| # The theme to use for HTML and HTML Help pages. See the documentation for | ||
| # a list of builtin themes. | ||
| # | ||
| html_theme = "sphinx_rtd_theme" | ||
| def _suppress_inherited_docstring(app, what, name, obj, options, lines): | ||
| """Remove inherited stdlib docstrings from generated API docs.""" | ||
| if what == "class" and lines: | ||
| joined = "\n".join(lines) | ||
| if any(marker in joined for marker in _INHERITED_DOCSTRING_MARKERS): | ||
| lines.clear() | ||
|
|
||
|
|
||
| def setup(app): | ||
| app.connect("autodoc-process-docstring", _suppress_inherited_docstring) | ||
|
|
||
| # Add any paths that contain custom static files (such as style sheets) here, | ||
| # relative to this directory. They are copied after the builtin static files, | ||
| # so a file named "default.css" will overwrite the builtin "default.css". | ||
|
|
||
| templates_path = ["_templates"] | ||
| exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] | ||
|
|
||
| html_theme = "sphinx_rtd_theme" | ||
| html_static_path = ["_static"] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,17 @@ | ||
| OpenAEV client for Python | ||
| ========================= | ||
|
|
||
| The pyoaev library is designed to help OpenAEV users and developers to interact | ||
| with the OpenAEV platform API. | ||
|
|
||
| The Python library requires Python >= 3. | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 2 | ||
| :caption: Contents: | ||
|
|
||
| client_usage/getting_started.rst | ||
| pyoaev/pyoaev | ||
|
|
||
|
|
||
| Indices and tables | ||
| ================== | ||
|
|
||
| * :ref:`genindex` | ||
| * :ref:`modindex` | ||
| * :ref:`search` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| autoapi==2.0.1 | ||
| sphinx==8.2.3 | ||
| sphinx==9.1.0 | ||
| sphinx-autoapi==3.4.0 | ||
| astroid==3.3.8 | ||
| sphinx-autodoc-typehints==3.2.0 | ||
| sphinx_rtd_theme==3.0.2 | ||
| sphinx_rtd_theme==3.1.0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.