|
| 1 | +from pkg_resources import DistributionNotFound, get_distribution |
| 2 | + |
| 3 | +try: |
| 4 | + __version__ = get_distribution("mflike").version |
| 5 | +except DistributionNotFound: |
| 6 | + __version__ = "unknown version" |
| 7 | + |
| 8 | +import os |
| 9 | +import sys |
| 10 | + |
| 11 | +sys.path.append(os.path.abspath("../..")) |
| 12 | +# autodoc_mock_imports = ["numpy", "cobaya"] |
| 13 | + |
| 14 | +# General stuff |
| 15 | +extensions = [ |
| 16 | + "sphinx.ext.autodoc", |
| 17 | + "sphinx.ext.intersphinx", |
| 18 | + "sphinx.ext.napoleon", |
| 19 | + "sphinx.ext.mathjax", |
| 20 | + "sphinx.ext.viewcode", |
| 21 | + "sphinx_copybutton", |
| 22 | + "myst_nb", |
| 23 | +] |
| 24 | + |
| 25 | +myst_enable_extensions = ["dollarmath", "colon_fence"] |
| 26 | +source_suffix = ".rst" |
| 27 | +master_doc = "index" |
| 28 | + |
| 29 | +project = "mflike" |
| 30 | +copyright = "2019 - 2024, Simons Observatory Collaboration Analysis Library Task Force" |
| 31 | +author = "Simons Observatory Collaboration Power Spectrum Group" |
| 32 | +language = "en" |
| 33 | +version = __version__ |
| 34 | +release = __version__ |
| 35 | + |
| 36 | +exclude_patterns = ["_build"] |
| 37 | + |
| 38 | + |
| 39 | +# HTML theme |
| 40 | +html_theme = "sphinx_book_theme" |
| 41 | +# Add paths to extra static html files from notebook conversion |
| 42 | +html_copy_source = True |
| 43 | +html_show_sourcelink = True |
| 44 | +html_sourcelink_suffix = "" |
| 45 | +html_title = "Multifrequency Likelihood for SO Large Aperture Telescope" |
| 46 | +html_favicon = "_static/logo.png" |
| 47 | +html_static_path = ["_static"] |
| 48 | +html_css_files = ["css/custom.css"] |
| 49 | +html_theme_options = { |
| 50 | + "logo": { |
| 51 | + "alt_text": "LAT_MFLike - Home", |
| 52 | + "text": html_title, |
| 53 | + "image_light": "_static/logo.png", |
| 54 | + }, |
| 55 | + "path_to_docs": "docs", |
| 56 | + "repository_url": "https://github.com/simonsobs/LAT_MFLike", |
| 57 | + "repository_branch": "master", |
| 58 | + "launch_buttons": { |
| 59 | + "binderhub_url": "https://mybinder.org", |
| 60 | + "notebook_interface": "classic", |
| 61 | + }, |
| 62 | + "use_edit_page_button": True, |
| 63 | + "use_issues_button": True, |
| 64 | + "use_repository_button": True, |
| 65 | + "use_download_button": True, |
| 66 | +} |
| 67 | +nb_execution_mode = "off" |
| 68 | +nb_execution_timeout = -1 |
0 commit comments