|
| 1 | +import os |
| 2 | +import sys |
| 3 | + |
| 4 | +sys.path.insert(0, os.path.abspath("../src/epidemik/")) |
| 5 | +import epidemik |
| 6 | + |
| 7 | +# Configuration file for the Sphinx documentation builder. |
| 8 | +# |
| 9 | +# For the full list of built-in configuration values, see the documentation: |
| 10 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 11 | + |
| 12 | +# -- Project information ----------------------------------------------------- |
| 13 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
| 14 | + |
| 15 | +project = "epidemik" |
| 16 | +copyright = "2024, Bruno Gonçalves" |
| 17 | +author = "Bruno Gonçalves" |
| 18 | +release = epidemik.__version__ |
| 19 | + |
| 20 | +# -- General configuration --------------------------------------------------- |
| 21 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration |
| 22 | + |
| 23 | +extensions = [ |
| 24 | + "sphinx_rtd_theme", |
| 25 | + "sphinx.ext.duration", |
| 26 | + "sphinx.ext.doctest", |
| 27 | + "sphinx.ext.autodoc", |
| 28 | + "sphinx.ext.autosummary", |
| 29 | +] |
| 30 | + |
| 31 | +templates_path = ["_templates"] |
| 32 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
| 33 | + |
| 34 | + |
| 35 | +# -- Options for HTML output ------------------------------------------------- |
| 36 | +# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
| 37 | + |
| 38 | +html_theme = "sphinx_rtd_theme" |
| 39 | +html_static_path = ["_static"] |
| 40 | +html_theme_options = { |
| 41 | + "analytics_id": "G-HKWS10TRJ1", |
| 42 | + "analytics_anonymize_ip": False, |
| 43 | + "logo_only": False, |
| 44 | + "display_version": True, |
| 45 | + "prev_next_buttons_location": "bottom", |
| 46 | + "style_external_links": True, |
| 47 | + "vcs_pageview_mode": "", |
| 48 | + "style_nav_header_background": "white", |
| 49 | + # Toc options |
| 50 | + "collapse_navigation": True, |
| 51 | + "sticky_navigation": True, |
| 52 | + "navigation_depth": 4, |
| 53 | + "includehidden": True, |
| 54 | + "titles_only": False, |
| 55 | +} |
0 commit comments