conf.py
Go to the documentation of this file.
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 import os
7 import sys
8 
9 # -- Project information --------------------------------------------------------------------------
10 # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
11 
12 project = 'GNSSTk'
13 copyright = '2022, ARL:UT'
14 
15 import gnsstk
16 version = '14.0'
17 release = '14.0.0'
18 
19 # -- General configuration ------------------------------------------------------------------------
20 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
21 
22 # Starting the list of sphinx extensions here. Add the extension below with each
23 # respective configuration section.
24 extensions = []
25 
26 # Add any paths that contain templates here, relative to this directory.
27 templates_path = ['_templates']
28 
29 # Remove the package/module prefix to each documented item
30 add_module_names = False
31 
32 # -- ImgMath Options ------------------------------------------------------------------------------
33 # https://www.sphinx-doc.org/en/master/usage/extensions/math.html#module-sphinx.ext.imgmath
34 # The builtin ImgMath extension renders latex math blocks as images to be imbedded in html
35 extensions.append("sphinx.ext.imgmath")
36 
37 # Using svg, instead of png, so that the math can scale with the page
38 imgmath_image_format="svg"
39 
40 # Embed the images into the html. Seemed to be easier.
41 imgmath_embed=True
42 
43 # Make the math stand out more
44 imgmath_font_size=14
45 
46 # -- Napoleon Options -----------------------------------------------------------------------------
47 # https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html#configuration
48 # The builtin napoleon extension allows for parsing numpy and google style docstrings into
49 # reStructured text. TKS should follow google style docstrings, but numpy style is not explicitly
50 # excluded here.
51 extensions.append("sphinx.ext.napoleon")
52 
53 # -- Autodoc Options ------------------------------------------------------------------------------
54 # https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#configuration
55 # The builtin AutoDoc extension offers reST directives for automatically extracting docstrings
56 # from various python objects.
57 extensions.append("sphinx.ext.autodoc")
58 
59 # Only insert the class docstring for class documentation.
60 # This is opposed to also including the __init__ documentation.
61 # Requires documenting the __init__ as a separate method which we do in the autosummary template
62 # for classes
63 autoclass_content = "class"
64 
65 # Separates class "signature" from the class documentation.
66 # i.e. it creates a separate method doc for the special __new__ method
67 autodoc_class_signature = "separated"
68 
69 # Instead of evaluating signature defaults, render the original source code.
70 # For instance, given a global constant `THE_ANSWER=42`, if the variable is used as a
71 # default for parameter (e.g. `def func(a=THE_ANSWER)`) then the documentation will
72 # show the default as the variable name, not the actual value
73 autodoc_preserve_defaults = True
74 
75 # -- Autosummary Options --------------------------------------------------------------------------
76 # https://www.sphinx-doc.org/en/master/usage/extensions/autosummary.html
77 # Autosummary is a built-in extension that creates summary lists
78 extensions.append("sphinx.ext.autosummary")
79 
80 # -- Copy Button Options --------------------------------------------------------------------------
81 # https://sphinx-copybutton.readthedocs.io/en/latest/use.html
82 # The copy button extension provides easy to use button for copying example code from the
83 # documentation.
84 extensions.append("sphinx_copybutton")
85 
86 # The copy button can strip out input prompts
87 # This regex identifies input prompts of python REPL style, typical bash style, and IPython style
88 copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
89 copybutton_prompt_is_regexp = True
90 
91 # -- Options for HTML output ----------------------------------------------------------------------
92 # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
93 # For the PyData theme see
94 # https://pydata-sphinx-theme.readthedocs.io/en/stable/
95 
96 # Using the pydata theme.
97 html_theme = 'pydata_sphinx_theme'
98 
99 # Add any paths that contain custom static files (such as style sheets) here,
100 # relative to this directory. They are copied after the builtin static files,
101 # so a file named "default.css" will overwrite the builtin "default.css".
102 html_static_path = ['_static']


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38