|
| 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 | +# created from notes_template: https://github.com/enryH/notes_template |
| 8 | +# -- Project information ----------------------------------------------------- |
| 9 | + |
| 10 | +project = "Git Tutorial" |
| 11 | +copyright = "2025, DTU Biosustain, Informatics Platform, DSP" |
| 12 | +author = "Henry Webel" |
| 13 | + |
| 14 | + |
| 15 | +# -- General configuration --------------------------------------------------- |
| 16 | + |
| 17 | + |
| 18 | +extensions = [ |
| 19 | + "myst_nb", |
| 20 | + # "sphinx_design", # https://sphinx-design.readthedocs.io/en/sbt-theme/ |
| 21 | + # "sphinx_copybutton", # https://sphinx-copybutton.readthedocs.io/ |
| 22 | + "sphinx_new_tab_link", |
| 23 | +] |
| 24 | + |
| 25 | +templates_path = ["_templates"] |
| 26 | +# As we can use percent notebooks and markdowns files, we need to exclude some files |
| 27 | +# additinally to the default ones (add to the list if needed) |
| 28 | +exclude_patterns = [ |
| 29 | + "_build", |
| 30 | + "Thumbs.db", |
| 31 | + ".DS_Store", |
| 32 | + "**/pandoc_ipynb/inputs/*", |
| 33 | + ".nox/*", |
| 34 | + '.venv/*', |
| 35 | + # "README.md", |
| 36 | + "**/.ipynb_checkpoints/*", |
| 37 | + "jupyter_execute", |
| 38 | + "conf.py", |
| 39 | + "check_recipes.py" |
| 40 | +] |
| 41 | + |
| 42 | + |
| 43 | +# -- Notebook related settings ----------------------------------------------- |
| 44 | + |
| 45 | +# add notebooks |
| 46 | +# https://myst-nb.readthedocs.io/en/latest/computation/execute.html |
| 47 | +nb_execution_mode = "auto" |
| 48 | + |
| 49 | +myst_enable_extensions = ["dollarmath", "amsmath"] |
| 50 | + |
| 51 | +# Plolty support through require javascript library |
| 52 | +# https://myst-nb.readthedocs.io/en/latest/render/interactive.html#plotly |
| 53 | +# html_js_files = [ |
| 54 | +# "https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js" |
| 55 | +# ] |
| 56 | + |
| 57 | +# https://myst-nb.readthedocs.io/en/latest/configuration.html |
| 58 | +# Execution |
| 59 | +nb_execution_raise_on_error = True |
| 60 | +# Rendering |
| 61 | +nb_merge_streams = True |
| 62 | + |
| 63 | +# https://myst-nb.readthedocs.io/en/latest/authoring/custom-formats.html#write-custom-formats |
| 64 | +nb_custom_formats = { |
| 65 | + # ".py": ["jupytext.reads", {"fmt": "py:percent"}] |
| 66 | +} |
| 67 | + |
| 68 | + |
| 69 | +# -- Options for HTML output ------------------------------------------------- |
| 70 | + |
| 71 | +# 2. Select a tempalate |
| 72 | +# ! you might need additional dependencies in requirements.txt |
| 73 | +# browse available themes: https://sphinx-themes.org/ |
| 74 | + |
| 75 | + |
| 76 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 77 | +# a list of builtin themes. |
| 78 | +# See: |
| 79 | +# https://github.com/executablebooks/MyST-NB/blob/master/docs/conf.py |
| 80 | +# html_title = "" |
| 81 | +html_theme = "sphinx_book_theme" |
| 82 | +# html_theme = "sphinx_book_theme" # alternative |
| 83 | +# html_logo = "_static/logo-wide.svg" |
| 84 | +# html_favicon = "_static/logo-square.svg" |
| 85 | +html_theme_options = { |
| 86 | + "github_url": "https://github.com/biosustain/git-tutorial", |
| 87 | + "repository_url": "https://github.com/biosustain/git-tutorial", |
| 88 | + # "repository_branch": "main", |
| 89 | + # "home_page_in_toc": True, |
| 90 | + # "path_to_docs": "docs", |
| 91 | + "show_navbar_depth": 1, |
| 92 | + # "use_edit_page_button": True, |
| 93 | + "use_repository_button": True, |
| 94 | + "use_download_button": True, |
| 95 | + "launch_buttons": { |
| 96 | + "colab_url": "https://colab.research.google.com" |
| 97 | + # "binderhub_url": "https://mybinder.org", |
| 98 | + # "notebook_interface": "jupyterlab", |
| 99 | + }, |
| 100 | + "navigation_with_keys": False, |
| 101 | +} |
| 102 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 103 | +# relative to this directory. They are copied after the builtin static files, |
| 104 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 105 | +# html_static_path = ['_static'] |
0 commit comments