| 1 | # Configuration file for the Sphinx documentation builder. |
| 2 | # |
| 3 | # This file only contains a selection of the most common options. For a full |
| 4 | # list see the documentation: |
| 5 | # https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 6 | |
| 7 | # -- Path setup -------------------------------------------------------------- |
| 8 | |
| 9 | # If extensions (or modules to document with autodoc) are in another directory, |
| 10 | # add these directories to sys.path here. If the directory is relative to the |
| 11 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
| 12 | # |
| 13 | import os |
| 14 | import sys |
| 15 | sys.path.insert(0, os.path.abspath('../src/')) |
| 16 | |
| 17 | |
| 18 | # -- Project information ----------------------------------------------------- |
| 19 | |
| 20 | project = 'inflate64' |
| 21 | copyright = '2021, Hiroshi Miura' |
| 22 | author = 'Hiroshi Miura' |
| 23 | |
| 24 | |
| 25 | # -- General configuration --------------------------------------------------- |
| 26 | |
| 27 | source_suffix = '.rst' |
| 28 | master_doc = 'index' |
| 29 | |
| 30 | # Add any Sphinx extension module names here, as strings. They can be |
| 31 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 32 | # ones. |
| 33 | extensions = [ |
| 34 | 'sphinx.ext.autodoc', |
| 35 | 'sphinx.ext.doctest', |
| 36 | 'sphinx.ext.coverage', |
| 37 | 'sphinx.ext.viewcode', |
| 38 | 'sphinx.ext.graphviz', |
| 39 | "sphinx_rtd_theme", |
| 40 | ] |
| 41 | |
| 42 | # Add any paths that contain templates here, relative to this directory. |
| 43 | templates_path = ['_templates'] |
| 44 | |
| 45 | # List of patterns, relative to source directory, that match files and |
| 46 | # directories to ignore when looking for source files. |
| 47 | # This pattern also affects html_static_path and html_extra_path. |
| 48 | exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 49 | |
| 50 | |
| 51 | # -- Options for HTML output ------------------------------------------------- |
| 52 | |
| 53 | # The theme to use for HTML and HTML Help pages. See the documentation for |
| 54 | # a list of builtin themes. |
| 55 | # |
| 56 | html_theme = 'sphinx_rtd_theme' |
| 57 | |
| 58 | # Add any paths that contain custom static files (such as style sheets) here, |
| 59 | # relative to this directory. They are copied after the builtin static files, |
| 60 | # so a file named "default.css" will overwrite the builtin "default.css". |
| 61 | html_static_path = ['_static'] |
| 62 | html_theme_options = { |
| 63 | 'description': 'inflate64 -- a compression library', |
| 64 | 'github_banner': True, |
| 65 | 'github_user': 'miurahr', |
| 66 | 'github_repo': 'inflate64', |
| 67 | 'page_width': 'auto', |
| 68 | 'badge_branch': 'main', |
| 69 | 'donate_url': 'https://liberapay.com/miurahr', |
| 70 | } |
| 71 | html_title = 'Inflate64 compression library' |
| 72 | html_short_title = 'Inflate64 docs' |
| 73 | html_sidebars = { |
| 74 | '**': [ |
| 75 | 'about.html', |
| 76 | 'navigation.html', |
| 77 | 'relations.html', |
| 78 | 'searchbox.html', |
| 79 | 'donate.html', |
| 80 | ] |
| 81 | } |