|
| 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 | + |
| 18 | +# -- Project information ----------------------------------------------------- |
| 19 | + |
| 20 | +project = 'Example Namespace' |
| 21 | +# copyright = overidden by CSS specified below |
| 22 | +author = 'NASA Planetary Data System' |
| 23 | + |
| 24 | + |
| 25 | +# -- General configuration --------------------------------------------------- |
| 26 | + |
| 27 | +# Add any Sphinx extension module names here, as strings. They can be |
| 28 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 29 | +# ones. |
| 30 | +extensions = [ |
| 31 | + 'sphinx.ext.autodoc', |
| 32 | + 'sphinx.ext.doctest', |
| 33 | + 'sphinx.ext.todo', |
| 34 | + 'sphinx.ext.viewcode', |
| 35 | + 'sphinx.ext.githubpages', |
| 36 | + 'sphinx.ext.autosummary', |
| 37 | + 'sphinx.ext.autosectionlabel', |
| 38 | + 'sphinx_rtd_theme', |
| 39 | + 'sphinxemoji.sphinxemoji', |
| 40 | + 'myst_parser' |
| 41 | +] |
| 42 | + |
| 43 | +# Add any paths that contain templates here, relative to this directory. |
| 44 | +templates_path = ['_templates'] |
| 45 | + |
| 46 | +# List of patterns, relative to source directory, that match files and |
| 47 | +# directories to ignore when looking for source files. |
| 48 | +# This pattern also affects html_static_path and html_extra_path. |
| 49 | +exclude_patterns = [] |
| 50 | + |
| 51 | + |
| 52 | +# -- Options for HTML output ------------------------------------------------- |
| 53 | + |
| 54 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 55 | +# a list of builtin themes. |
| 56 | +# |
| 57 | +html_theme = 'sphinx_rtd_theme' |
| 58 | + |
| 59 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 60 | +# relative to this directory. They are copied after the builtin static files, |
| 61 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 62 | +html_static_path = ['_static'] |
| 63 | + |
| 64 | +# -- Read the docs config ------- |
| 65 | + |
| 66 | +html_logo = '_static/images/PDS_Planets.png' |
| 67 | + |
| 68 | +html_context = { |
| 69 | + 'display_github': True, |
| 70 | + "github_user": "pds-data-dictionaries", |
| 71 | + "github_repo": "ldd-template", |
| 72 | + "github_version": "main/docs/source/" |
| 73 | +} |
| 74 | + |
| 75 | +html_css_files = [ |
| 76 | + 'theme_overrides.css', |
| 77 | +] |
| 78 | + |
| 79 | +html_theme_options = { |
| 80 | + 'canonical_url': '', |
| 81 | + 'logo_only': False, |
| 82 | + 'display_version': True, |
| 83 | + 'prev_next_buttons_location': 'bottom', |
| 84 | + 'style_external_links': False, |
| 85 | + # Toc options |
| 86 | + 'collapse_navigation': True, |
| 87 | + 'sticky_navigation': True, |
| 88 | + 'navigation_depth': 4, |
| 89 | + 'includehidden': True, |
| 90 | + 'titles_only': False |
| 91 | +} |
| 92 | + |
| 93 | +myst_enable_extensions = [ |
| 94 | + "deflist", |
| 95 | + "fieldlist" |
| 96 | +] |
| 97 | + |
| 98 | +latex_elements = { |
| 99 | + 'maxlistdepth': '10' |
| 100 | +} |
0 commit comments