diff options
| author | Simeon Simeonov | 2026-04-28 14:27:05 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2026-04-28 14:27:05 +0200 |
| commit | 751c74e7de1c78a151fdd8b76f220d8411a2108a (patch) | |
| tree | 0b13345aad6949a3325ca8f72b4eece14a0fe973 /sphinx_conf.py | |
| parent | 82ef6adec6e59f9cc9dc9fa1a13a2b43e534bada (diff) | |
Restructure the entire project, enforce linting and add support for type checkers
Diffstat (limited to 'sphinx_conf.py')
| -rw-r--r-- | sphinx_conf.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sphinx_conf.py b/sphinx_conf.py index 3bef39e..0e2d594 100644 --- a/sphinx_conf.py +++ b/sphinx_conf.py | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | """pyotp2289 sphinx configuration""" | ||
| 1 | # Configuration file for the Sphinx documentation builder. | 2 | # Configuration file for the Sphinx documentation builder. |
| 2 | # | 3 | # |
| 3 | # For the full list of built-in configuration values, see the documentation: | 4 | # For the full list of built-in configuration values, see the documentation: |
| @@ -7,20 +8,16 @@ | |||
| 7 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | 8 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 8 | 9 | ||
| 9 | project = 'pyotp2289' | 10 | project = 'pyotp2289' |
| 10 | copyright = '2020-2023, Simeon Simeonov' | 11 | copyright = '2020-2026, Simeon Simeonov' # noqa: A001 |
| 11 | author = 'Simeon Simeonov' | 12 | author = 'Simeon Simeonov' |
| 12 | 13 | ||
| 13 | version = '1.2.1' | 14 | version = '2.0.0' |
| 14 | release = '1.2.1' | 15 | release = '2.0.0' |
| 15 | 16 | ||
| 16 | # -- General configuration --------------------------------------------------- | 17 | # -- General configuration --------------------------------------------------- |
| 17 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration | 18 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 18 | 19 | ||
| 19 | extensions = [ | 20 | extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx.ext.todo'] |
| 20 | 'sphinx.ext.autodoc', | ||
| 21 | 'sphinx.ext.viewcode', | ||
| 22 | 'sphinx.ext.todo', | ||
| 23 | ] | ||
| 24 | 21 | ||
| 25 | templates_path = ['_templates'] | 22 | templates_path = ['_templates'] |
| 26 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] | 23 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| @@ -32,8 +29,12 @@ language = 'en' | |||
| 32 | 29 | ||
| 33 | html_theme = 'nature' | 30 | html_theme = 'nature' |
| 34 | html_static_path = ['_static'] | 31 | html_static_path = ['_static'] |
| 32 | html_sidebars = {'**': ['globaltoc.html', 'searchbox.html']} | ||
| 35 | 33 | ||
| 36 | # -- Options for todo extension ---------------------------------------------- | 34 | # -- Options for todo extension ---------------------------------------------- |
| 37 | # https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration | 35 | # https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration |
| 38 | 36 | ||
| 39 | todo_include_todos = True | 37 | todo_include_todos = True |
| 38 | |||
| 39 | # Generated by running: sphinx-apidoc with: | ||
| 40 | # -P -F -o html -H pyotp2289 -A "Simeon Simeonov" -V "2.0.0" src/otp2289 | ||
