Skip to content

Commit

Permalink
Use sphinx-autoapi over sphinx-autodoc
Browse files Browse the repository at this point in the history
  • Loading branch information
elibon99 committed Nov 8, 2024
1 parent 03efb60 commit af86978
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 272 deletions.
7 changes: 5 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@ def get_version():
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx.ext.autodoc",
"sphinx_autodoc_typehints",
"autoapi.extension",
"sphinx.ext.autodoc.typehints",
"sphinx.ext.doctest",
"sphinx.ext.intersphinx",
"sphinx.ext.viewcode",
]

autodoc_typehints = "description"

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

Expand Down Expand Up @@ -191,3 +193,4 @@ def get_version():

# Custom config
autodoc_member_order = "bysource"
autoapi_dirs = ["../fido2"]
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ Welcome to python-fido2's documentation!
:maxdepth: 2
:caption: Contents:

rst/packages
autoapi/index


Indices and tables
==================
Expand Down
61 changes: 0 additions & 61 deletions docs/rst/fido2.attestation.rst

This file was deleted.

69 changes: 0 additions & 69 deletions docs/rst/fido2.ctap2.rst

This file was deleted.

11 changes: 0 additions & 11 deletions docs/rst/fido2.hid.rst

This file was deleted.

120 changes: 0 additions & 120 deletions docs/rst/fido2.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/rst/packages.rst

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pcsc = ["pyscard"]
pytest = "^7.0"
Sphinx = {version = "^8.1", python = ">=3.10"}
sphinx-rtd-theme = {version = "^3.0.1", python = ">=3.10"}
sphinx-autodoc-typehints = {version = "^2.5.0", python = ">=3.10"}
sphinx-autoapi = (version = "^3.3.3", python = ">=3.10"}

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit af86978

Please sign in to comment.