|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# For the full list of built-in configuration values, see the documentation: |
| 4 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 5 | + |
| 6 | +import importlib.metadata |
| 7 | + |
| 8 | +# -- Project information ----------------------------------------------------- |
| 9 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 10 | +project = 'asyncgui-ext-synctools' |
| 11 | +copyright = '2024, Mitō Nattōsai' |
| 12 | +author = 'Mitō Nattōsai' |
| 13 | +release = importlib.metadata.version(project) |
| 14 | + |
| 15 | +rst_epilog = """ |
| 16 | +.. |ja| replace:: 🇯🇵 |
| 17 | +""" |
| 18 | + |
| 19 | +# -- General configuration --------------------------------------------------- |
| 20 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 21 | +extensions = [ |
| 22 | + 'sphinx.ext.autodoc', |
| 23 | + 'sphinx.ext.intersphinx', |
| 24 | + # 'sphinx.ext.viewcode', |
| 25 | + 'sphinx.ext.githubpages', |
| 26 | + # 'sphinx_tabs.tabs', |
| 27 | + |
| 28 | +] |
| 29 | +templates_path = ['_templates'] |
| 30 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 31 | +language = 'en' |
| 32 | +add_module_names = False |
| 33 | +gettext_auto_build = False |
| 34 | +gettext_location = False |
| 35 | + |
| 36 | + |
| 37 | +# -- Options for HTML output ------------------------------------------------- |
| 38 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 39 | +html_theme = "furo" |
| 40 | +html_static_path = ['_static'] |
| 41 | + |
| 42 | +# -- Options for todo extension ---------------------------------------------- |
| 43 | +# https://www.sphinx-doc.org/en/master/usage/extensions/todo.html#configuration |
| 44 | +todo_include_todos = True |
| 45 | + |
| 46 | + |
| 47 | +# -- Options for intersphinx extension --------------------------------------- |
| 48 | +# https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html#configuration |
| 49 | +intersphinx_mapping = { |
| 50 | + 'python': ('https://docs.python.org/3', None), |
| 51 | + 'asyncgui': ('https://asyncgui.github.io/asyncgui/', None), |
| 52 | +} |
| 53 | + |
| 54 | + |
| 55 | +# -- Options for autodoc extension --------------------------------------- |
| 56 | +# https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#configuration |
| 57 | +# autodoc_mock_imports = ['pygame', ] |
| 58 | +autodoc_default_options = { |
| 59 | +# 'members': True, |
| 60 | +# 'undoc-members': True, |
| 61 | + 'no-show-inheritance': True, |
| 62 | +} |
| 63 | + |
| 64 | + |
| 65 | +# -- Options for tabs extension --------------------------------------- |
| 66 | +# https://sphinx-tabs.readthedocs.io/en/latest/ |
| 67 | +sphinx_tabs_disable_tab_closing = True |
| 68 | + |
0 commit comments