|
| 1 | +# Configuration file for the Sphinx documentation builder. |
| 2 | +# |
| 3 | +# -- Project information ----------------------------------------------------- |
| 4 | + |
| 5 | +project = 'SPHEREx Archive Documentation' |
| 6 | +copyright = '2025 SPHEREx Archive -- IPAC/IRSA' |
| 7 | +author = 'SPHEREx Archive -- IPAC/IRSA' |
| 8 | + |
| 9 | + |
| 10 | +# -- General configuration --------------------------------------------------- |
| 11 | + |
| 12 | +# Add any Sphinx extension module names here, as strings. They can be |
| 13 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 14 | +# ones. |
| 15 | +extensions = [ |
| 16 | + 'myst_nb', |
| 17 | + 'sphinx_copybutton', |
| 18 | +] |
| 19 | + |
| 20 | +myst_enable_extensions = [ |
| 21 | + 'dollarmath', |
| 22 | +] |
| 23 | + |
| 24 | +# Add any paths that contain templates here, relative to this directory. |
| 25 | +templates_path = ['_templates'] |
| 26 | + |
| 27 | +# List of patterns, relative to source directory, that match files and |
| 28 | +# directories to ignore when looking for source files. |
| 29 | +# This pattern also affects html_static_path and html_extra_path. |
| 30 | +exclude_patterns = ['_build', 'notes', '.tox', '.tmp', '.pytest_cache', ] |
| 31 | + |
| 32 | +# Top level README file's sole purpose is for the repo. |
| 33 | +exclude_patterns += ['README.md',] |
| 34 | + |
| 35 | +# MyST-NB configuration |
| 36 | +nb_execution_timeout = 1200 |
| 37 | + |
| 38 | +# -- Options for HTML output ------------------------------------------------- |
| 39 | + |
| 40 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 41 | +# a list of builtin themes. |
| 42 | +# |
| 43 | +html_theme = 'sphinx_book_theme' |
| 44 | +html_title = 'SPHEREx Archive Documentation' |
| 45 | +html_logo = '_static/irsa_logo.png' |
| 46 | +#html_favicon = '_static/favicon.ico' |
| 47 | +html_theme_options = { |
| 48 | + "github_url": "https://github.com/Caltech-IPAC/SPHEREx-archive-documentation", |
| 49 | + "repository_url": "https://github.com/Caltech-IPAC/SPHEREx-archive-documentation", |
| 50 | + "repository_branch": "main", |
| 51 | + "use_repository_button": True, |
| 52 | + "use_issues_button": True, |
| 53 | + "use_edit_page_button": True, |
| 54 | + "launch_buttons": {"binderhub_url": "https://mybinder.org",}, |
| 55 | + "logo": { |
| 56 | + "link": "https://irsa.ipac.caltech.edu/", |
| 57 | + "alt_text": "NASA/IPAC Infrared Science Archive - Home", |
| 58 | + }, |
| 59 | + "home_page_in_toc": True, |
| 60 | +} |
| 61 | + |
| 62 | + |
| 63 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 64 | +# relative to this directory. They are copied after the builtin static files, |
| 65 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 66 | +html_static_path = ['_static'] |
| 67 | + |
| 68 | +# myst configurations |
| 69 | +myst_heading_anchors = 4 |
0 commit comments