|
| 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('.')) |
| 16 | + |
| 17 | +# from recommonmark.transform import AutoStructify |
| 18 | + |
| 19 | +# -- Project information ----------------------------------------------------- |
| 20 | + |
| 21 | +project = 'Seg3D' |
| 22 | +copyright = '2021, The Scientific Computing and Imaging Institute at the University of Utah' |
| 23 | +author = 'To be Added' |
| 24 | + |
| 25 | +# The full version, including alpha/beta/rc tags |
| 26 | +release = '0.01' |
| 27 | + |
| 28 | + |
| 29 | +# -- General configuration --------------------------------------------------- |
| 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. |
| 34 | + |
| 35 | +#extensions = [ |
| 36 | +# 'sphinx.ext.autodoc', |
| 37 | +# 'sphinx.ext.napoleon', |
| 38 | +# 'recommonmark', |
| 39 | +# 'sphinxcontrib.bibtex', |
| 40 | +# 'sphinx_markdown_tables' |
| 41 | +#] |
| 42 | + |
| 43 | +extensions = [ |
| 44 | + 'sphinx.ext.autodoc', |
| 45 | + 'sphinx.ext.napoleon', |
| 46 | + 'myst_parser', |
| 47 | + 'sphinx_markdown_tables', |
| 48 | + 'sphinxcontrib.bibtex', |
| 49 | + 'notfound.extension' |
| 50 | +] |
| 51 | + |
| 52 | +myst_enable_extensions = [ |
| 53 | + "colon_fence", # Allow code fence using ::: (see https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html#syntax-colon-fence) |
| 54 | + "linkify", # Allow automatic creation of links from URLs (it is sufficient to write https://google.com instead of <https://google.com>) |
| 55 | + "substitution" |
| 56 | +] |
| 57 | + |
| 58 | +# Auto-generate header anchors up to level 6, so that it can be referenced like [](file.md#header-anchor). |
| 59 | +# (see https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html#auto-generated-header-anchors) |
| 60 | +myst_heading_anchors = 6 |
| 61 | + |
| 62 | +# auto number figures |
| 63 | +numfig = True |
| 64 | + |
| 65 | +# Path for bibtex files |
| 66 | +bibtex_bibfiles = ['references.bib'] |
| 67 | + |
| 68 | +# Add any paths that contain templates here, relative to this directory. |
| 69 | +templates_path = ['_templates'] |
| 70 | + |
| 71 | +# List of patterns, relative to source directory, that match files and |
| 72 | +# directories to ignore when looking for source files. |
| 73 | +# This pattern also affects html_static_path and html_extra_path. |
| 74 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 75 | + |
| 76 | +source_suffix = { |
| 77 | + '.rst': 'restructuredtext', |
| 78 | + '.md': 'markdown', |
| 79 | +} |
| 80 | + |
| 81 | +notfound_context = { |
| 82 | + 'title': 'Page Not Found', |
| 83 | + 'body': ''' |
| 84 | +<h1>Page Not Found</h1> |
| 85 | +<p>Sorry, we couldn't find that page.</p> |
| 86 | +<p>Try using the search box or go to the homepage.</p> |
| 87 | +''', |
| 88 | +} |
| 89 | + |
| 90 | + |
| 91 | +# The name of the Pygments (syntax highlighting) style to use. |
| 92 | +pygments_style = 'sphinx' |
| 93 | + |
| 94 | +# the master toctree doc |
| 95 | +master_doc = 'index' |
| 96 | + |
| 97 | +# The language for content autogenerated by Sphinx. Refer to documentation |
| 98 | +# for a list of supported languages. |
| 99 | +# |
| 100 | +# This is also used if you do content translation via gettext catalogs. |
| 101 | +# Usually you set "language" from the command line for these cases. |
| 102 | +language = 'python' |
| 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 = 'furo' |
| 110 | + |
| 111 | +#html_theme = 'groundwork' |
| 112 | + |
| 113 | +# html_style = '/css/main.css' |
| 114 | + |
| 115 | +#on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
| 116 | + |
| 117 | +#if not on_rtd: # only import and set the theme if we're building docs locally |
| 118 | +# import sphinx_rtd_theme |
| 119 | +# html_theme = 'sphinx_book_theme' |
| 120 | +# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
| 121 | + |
| 122 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 123 | +# relative to this directory. They are copied after the builtin static files, |
| 124 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 125 | + |
| 126 | + |
| 127 | +html_static_path = ['_static'] |
| 128 | + |
| 129 | +html_css_files = ['css/main.css'] |
| 130 | + |
| 131 | +html_title = project |
| 132 | + |
| 133 | +html_logo = '_static/seg3d.png' |
| 134 | + |
| 135 | +html_theme_options = { |
| 136 | + "sidebar_hide_name": True, |
| 137 | + "light_css_variables": { |
| 138 | + "color-brand-primary": "#ad1f1f", |
| 139 | + "color-brand-content": "#ad1f1f", |
| 140 | + }, |
| 141 | + "dark_css_variables": { |
| 142 | + "color-brand-primary": "#ec9393", |
| 143 | + "color-brand-content": "#ec9393", |
| 144 | + }, |
| 145 | +} |
| 146 | + |
| 147 | +autosectionlabel_prefix_document = True |
0 commit comments