|
1 | | -from __future__ import annotations |
| 1 | +#!/usr/bin/env python3 |
| 2 | +# -*- coding: utf-8 -*- |
| 3 | +# |
| 4 | +# Save And Restore API documentation build configuration file, created by |
| 5 | +# sphinx-quickstart on Thu Jun 28 12:35:56 2018. |
| 6 | +# |
| 7 | +# This file is execfile()d with the current directory set to its |
| 8 | +# containing dir. |
| 9 | +# |
| 10 | +# Note that not all possible configuration values are present in this |
| 11 | +# autogenerated file. |
| 12 | +# |
| 13 | +# All configuration values have a default; values that are commented out |
| 14 | +# serve to show the default. |
2 | 15 |
|
3 | | -import importlib.metadata |
4 | | -from typing import Any |
| 16 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 17 | +# add these directories to sys.path here. If the directory is relative to the |
| 18 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 19 | +# |
| 20 | +# import os |
| 21 | +# import sys |
| 22 | +# sys.path.insert(0, os.path.abspath('.')) |
5 | 23 |
|
6 | | -project = "save-and-restore-api" |
7 | | -copyright = "2025, My Name" |
8 | | -author = "My Name" |
9 | | -version = release = importlib.metadata.version("save_and_restore_api") |
10 | 24 |
|
| 25 | +# -- General configuration ------------------------------------------------ |
| 26 | + |
| 27 | +# If your documentation needs a minimal Sphinx version, state it here. |
| 28 | +# |
| 29 | +# needs_sphinx = '1.0' |
| 30 | + |
| 31 | +# Add any Sphinx extension module names here, as strings. They can be |
| 32 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 33 | +# ones. |
11 | 34 | extensions = [ |
12 | | - "myst_parser", |
13 | | - "sphinx.ext.autodoc", |
14 | | - "sphinx.ext.intersphinx", |
15 | | - "sphinx.ext.mathjax", |
16 | | - "sphinx.ext.napoleon", |
17 | | - "sphinx_autodoc_typehints", |
18 | | - "sphinx_copybutton", |
| 35 | + 'sphinx.ext.autodoc', |
| 36 | + 'sphinx.ext.autosummary', |
| 37 | + 'sphinx.ext.githubpages', |
| 38 | + 'sphinx.ext.intersphinx', |
| 39 | + 'sphinx.ext.mathjax', |
| 40 | + 'sphinx.ext.viewcode', |
| 41 | + 'IPython.sphinxext.ipython_directive', |
| 42 | + 'IPython.sphinxext.ipython_console_highlighting', |
| 43 | + # 'matplotlib.sphinxext.plot_directive', |
| 44 | + 'numpydoc', |
19 | 45 | ] |
20 | 46 |
|
21 | | -source_suffix = [".rst", ".md"] |
22 | | -exclude_patterns = [ |
23 | | - "_build", |
24 | | - "**.ipynb_checkpoints", |
25 | | - "Thumbs.db", |
26 | | - ".DS_Store", |
27 | | - ".env", |
28 | | - ".venv", |
29 | | -] |
| 47 | +# Configuration options for plot_directive. See: |
| 48 | +# https://github.com/matplotlib/matplotlib/blob/f3ed922d935751e08494e5fb5311d3050a3b637b/lib/matplotlib/sphinxext/plot_directive.py#L81 |
| 49 | +plot_html_show_source_link = False |
| 50 | +plot_html_show_formats = False |
| 51 | + |
| 52 | +# Generate the API documentation when building |
| 53 | +autosummary_generate = True |
| 54 | +numpydoc_show_class_members = False |
| 55 | + |
| 56 | +# Add any paths that contain templates here, relative to this directory. |
| 57 | +templates_path = ['_templates'] |
| 58 | + |
| 59 | +# The suffix(es) of source filenames. |
| 60 | +# You can specify multiple suffix as a list of string: |
| 61 | +# |
| 62 | +# source_suffix = ['.rst', '.md'] |
| 63 | +# source_suffix = '.rst' |
| 64 | +source_suffix = {'.rst': 'restructuredtext'} |
| 65 | + |
| 66 | +# The master toctree document. |
| 67 | +master_doc = 'index' |
| 68 | + |
| 69 | +# General information about the project. |
| 70 | +project = 'Save And Restore API' |
| 71 | +copyright = '2025' |
| 72 | +author = 'Contributors' |
| 73 | + |
| 74 | +# The version info for the project you're documenting, acts as replacement for |
| 75 | +# |version| and |release|, also used in various other places throughout the |
| 76 | +# built documents. |
| 77 | +# |
| 78 | +import save_and_restore_api |
| 79 | + |
| 80 | +# The short X.Y version. |
| 81 | +version = save_and_restore_api.__version__ |
| 82 | +# The full version, including alpha/beta/rc tags. |
| 83 | +release = save_and_restore_api.__version__ |
| 84 | + |
| 85 | +# The language for content autogenerated by Sphinx. Refer to documentation |
| 86 | +# for a list of supported languages. |
| 87 | +# |
| 88 | +# This is also used if you do content translation via gettext catalogs. |
| 89 | +# Usually you set "language" from the command line for these cases. |
| 90 | +language = "en" |
30 | 91 |
|
31 | | -html_theme = "furo" |
32 | | - |
33 | | -html_theme_options: dict[str, Any] = { |
34 | | - "footer_icons": [ |
35 | | - { |
36 | | - "name": "GitHub", |
37 | | - "url": "https://github.com/dmgav/save-and-restore-api", |
38 | | - "html": """ |
39 | | - <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16"> |
40 | | - <path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path> |
41 | | - </svg> |
42 | | - """, |
43 | | - "class": "", |
44 | | - }, |
45 | | - ], |
46 | | - "source_repository": "https://github.com/dmgav/save-and-restore-api", |
47 | | - "source_branch": "main", |
48 | | - "source_directory": "docs/", |
| 92 | +# List of patterns, relative to source directory, that match files and |
| 93 | +# directories to ignore when looking for source files. |
| 94 | +# This patterns also effect to html_static_path and html_extra_path |
| 95 | +exclude_patterns = [] |
| 96 | + |
| 97 | +# The name of the Pygments (syntax highlighting) style to use. |
| 98 | +pygments_style = 'sphinx' |
| 99 | + |
| 100 | +# If true, `todo` and `todoList` produce output, else they produce nothing. |
| 101 | +todo_include_todos = False |
| 102 | + |
| 103 | + |
| 104 | +# -- Options for HTML output ---------------------------------------------- |
| 105 | + |
| 106 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 107 | +# a list of builtin themes. |
| 108 | +# |
| 109 | +html_theme = 'sphinx_rtd_theme' |
| 110 | +import sphinx_rtd_theme |
| 111 | + |
| 112 | +# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 113 | + |
| 114 | +# Theme options are theme-specific and customize the look and feel of a theme |
| 115 | +# further. For a list of options available for each theme, see the |
| 116 | +# documentation. |
| 117 | +# |
| 118 | +# html_theme_options = {} |
| 119 | + |
| 120 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 121 | +# relative to this directory. They are copied after the builtin static files, |
| 122 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 123 | +# html_static_path = ['_static'] |
| 124 | + |
| 125 | +# Custom sidebar templates, must be a dictionary that maps document names |
| 126 | +# to template names. |
| 127 | +# |
| 128 | +# This is required for the alabaster theme |
| 129 | +# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars |
| 130 | +html_sidebars = { |
| 131 | + '**': [ |
| 132 | + 'relations.html', # needs 'show_related': True theme option to display |
| 133 | + 'searchbox.html', |
| 134 | + ] |
49 | 135 | } |
50 | 136 |
|
51 | | -myst_enable_extensions = [ |
52 | | - "colon_fence", |
53 | | -] |
54 | 137 |
|
55 | | -intersphinx_mapping = { |
56 | | - "python": ("https://docs.python.org/3", None), |
| 138 | +# -- Options for HTMLHelp output ------------------------------------------ |
| 139 | + |
| 140 | +# Output file base name for HTML help builder. |
| 141 | +htmlhelp_basename = 'save-and-restore-api' |
| 142 | + |
| 143 | + |
| 144 | +# -- Options for LaTeX output --------------------------------------------- |
| 145 | + |
| 146 | +latex_elements = { |
| 147 | + # The paper size ('letterpaper' or 'a4paper'). |
| 148 | + # |
| 149 | + # 'papersize': 'letterpaper', |
| 150 | + |
| 151 | + # The font size ('10pt', '11pt' or '12pt'). |
| 152 | + # |
| 153 | + # 'pointsize': '10pt', |
| 154 | + |
| 155 | + # Additional stuff for the LaTeX preamble. |
| 156 | + # |
| 157 | + # 'preamble': '', |
| 158 | + |
| 159 | + # Latex figure (float) alignment |
| 160 | + # |
| 161 | + # 'figure_align': 'htbp', |
57 | 162 | } |
58 | 163 |
|
59 | | -nitpick_ignore = [ |
60 | | - ("py:class", "_io.StringIO"), |
61 | | - ("py:class", "_io.BytesIO"), |
| 164 | +# Grouping the document tree into LaTeX files. List of tuples |
| 165 | +# (source start file, target name, title, |
| 166 | +# author, documentclass [howto, manual, or own class]). |
| 167 | +latex_documents = [ |
| 168 | + (master_doc, 'save-and-restore-api.tex', 'Save And Restore API Documentation', |
| 169 | + 'Contributors', 'manual'), |
62 | 170 | ] |
63 | 171 |
|
64 | | -always_document_param_types = True |
| 172 | + |
| 173 | +# -- Options for manual page output --------------------------------------- |
| 174 | + |
| 175 | +# One entry per manual page. List of tuples |
| 176 | +# (source start file, name, description, authors, manual section). |
| 177 | +man_pages = [ |
| 178 | + (master_doc, 'save-and-restore-api', 'Save And Restore API Documentation', |
| 179 | + [author], 1) |
| 180 | +] |
| 181 | + |
| 182 | + |
| 183 | +# -- Options for Texinfo output ------------------------------------------- |
| 184 | + |
| 185 | +# Grouping the document tree into Texinfo files. List of tuples |
| 186 | +# (source start file, target name, title, author, |
| 187 | +# dir menu entry, description, category) |
| 188 | +texinfo_documents = [ |
| 189 | + (master_doc, 'save-and-restore-api', 'Save And Restore API Documentation', |
| 190 | + author, 'save-and-restore-api', 'Python API for Save And Restore Service', |
| 191 | + 'Miscellaneous'), |
| 192 | +] |
| 193 | + |
| 194 | + |
| 195 | + |
| 196 | + |
| 197 | +# Example configuration for intersphinx: refer to the Python standard library. |
| 198 | +intersphinx_mapping = { |
| 199 | + 'python': ('https://docs.python.org/3/', None), |
| 200 | + # 'numpy': ('https://numpy.org/doc/stable/', None), |
| 201 | + # 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None), |
| 202 | + # 'pandas': ('https://pandas.pydata.org/pandas-docs/stable', None), |
| 203 | + # 'matplotlib': ('https://matplotlib.org/stable', None), |
| 204 | +} |
0 commit comments