|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +# |
| 3 | +# Configuration file for the Sphinx documentation builder. |
| 4 | +# |
| 5 | +# This file does only contain a selection of the most common options. For a |
| 6 | +# full list see the documentation: |
| 7 | +# http://www.sphinx-doc.org/en/stable/config |
| 8 | + |
| 9 | +# -- Path setup -------------------------------------------------------------- |
| 10 | + |
| 11 | +# If extensions (or modules to document with autodoc) are in another directory, |
| 12 | +# add these directories to sys.path here. If the directory is relative to the |
| 13 | +# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 14 | +# |
| 15 | +import os |
| 16 | +import sys |
| 17 | + |
| 18 | +sys.path.insert(0, os.path.abspath("../../")) |
| 19 | + |
| 20 | + |
| 21 | +# -- Project information ----------------------------------------------------- |
| 22 | + |
| 23 | +project = "pyobs-fli" |
| 24 | +copyright = "2022, Tim-Oliver Husser" |
| 25 | +author = "Tim-Oliver Husser" |
| 26 | + |
| 27 | +# The short X.Y version |
| 28 | +# version = "0.16" |
| 29 | +# The full version, including alpha/beta/rc tags |
| 30 | +# release = "0.16.0" |
| 31 | + |
| 32 | + |
| 33 | +# -- General configuration --------------------------------------------------- |
| 34 | + |
| 35 | +add_module_names = False |
| 36 | + |
| 37 | +# If your documentation needs a minimal Sphinx version, state it here. |
| 38 | +# |
| 39 | +# needs_sphinx = '1.0' |
| 40 | + |
| 41 | +# Add any Sphinx extension module names here, as strings. They can be |
| 42 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 43 | +# ones. |
| 44 | +extensions = [ |
| 45 | + "sphinx.ext.autodoc", |
| 46 | + "sphinx.ext.githubpages", |
| 47 | + "sphinx.ext.napoleon", |
| 48 | + "sphinx.ext.viewcode", |
| 49 | + "sphinx.ext.autosectionlabel", |
| 50 | + "sphinx.ext.intersphinx", |
| 51 | + #'sphinx_autodoc_typehints' |
| 52 | +] |
| 53 | + |
| 54 | +intersphinx_mapping = {"http://docs.python.org/3": None} |
| 55 | + |
| 56 | +# napoleon settings |
| 57 | +napoleon_google_docstring = True |
| 58 | +napoleon_numpy_docstring = False |
| 59 | +napoleon_use_param = False |
| 60 | +napoleon_use_ivar = True |
| 61 | + |
| 62 | +# typehints |
| 63 | +# set_type_checking_flag = True |
| 64 | +# autodoc_typehints = "description" |
| 65 | + |
| 66 | +# show c'tor parameters in class only |
| 67 | +autoclass_content = "both" |
| 68 | + |
| 69 | +# Add any paths that contain templates here, relative to this directory. |
| 70 | +templates_path = ["_templates"] |
| 71 | + |
| 72 | +# The suffix(es) of source filenames. |
| 73 | +# You can specify multiple suffix as a list of string: |
| 74 | +# |
| 75 | +source_suffix = ".rst" |
| 76 | + |
| 77 | +# The master toctree document. |
| 78 | +master_doc = "index" |
| 79 | + |
| 80 | +# The language for content autogenerated by Sphinx. Refer to documentation |
| 81 | +# for a list of supported languages. |
| 82 | +# |
| 83 | +# This is also used if you do content translation via gettext catalogs. |
| 84 | +# Usually you set "language" from the command line for these cases. |
| 85 | +language = "en" |
| 86 | + |
| 87 | +# List of patterns, relative to source directory, that match files and |
| 88 | +# directories to ignore when looking for source files. |
| 89 | +# This pattern also affects html_static_path and html_extra_path . |
| 90 | +exclude_patterns = [] |
| 91 | + |
| 92 | +# The name of the Pygments (syntax highlighting) style to use. |
| 93 | +pygments_style = "sphinx" |
| 94 | + |
| 95 | +# Be a little nitpicky |
| 96 | +nitpicky = True |
| 97 | +nitpick_ignore = [] |
| 98 | + |
| 99 | +# intersphinx |
| 100 | +intersphinx_mapping = { |
| 101 | + "pyobs": ("https://pyobs-core.readthedocs.io/en/latest/", None), |
| 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 | +html_theme = "sphinx_rtd_theme" |
| 109 | +html_theme_options = { |
| 110 | + "collapse_navigation": False, |
| 111 | + "sticky_navigation": True, |
| 112 | + "navigation_depth": 4, |
| 113 | + "display_version": False, |
| 114 | + "logo_only": False, |
| 115 | + "prev_next_buttons_location": "bottom", |
| 116 | + "titles_only": False, |
| 117 | + "style_nav_header_background": "#cccccc", |
| 118 | +} |
| 119 | +html_logo = "_static/pyobs.gif" |
0 commit comments