Skip to content

Commit

Permalink
update conf
Browse files Browse the repository at this point in the history
  • Loading branch information
wikfeldt committed Aug 27, 2024
1 parent 4410c64 commit 8954865
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions content/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@

# -- Project information -----------------------------------------------------

project = "LESSON NAME"
copyright = "2021, The contributors"
project = "Quantum Autumn School 2023"
copyright = "2023, The contributors"
author = "The contributors"
github_user = "ENCCS"
github_repo_name = "" # auto-detected from dirname if blank
github_repo_name = "qas2023" # auto-detected from dirname if blank
github_version = "main"
conf_py_path = "/content/" # with leading and trailing slash

Expand All @@ -39,12 +39,20 @@
"sphinx.ext.todo",
]


# Settings for myst_nb:
myst_enable_extensions = ["dollarmath",
"amsmath",
"html_image",
# "myst_dmath_double_inline"
]
source_suffix = {".rst": "restructuredtext", ".ipynb": "myst-nb", ".myst": "myst-nb"}

# https://myst-nb.readthedocs.io/en/latest/use/execute.html#triggering-notebook-execution
# jupyter_execute_notebooks = "off"
jupyter_execute_notebooks = "off"
# jupyter_execute_notebooks = "auto" # *only* execute if at least one output is missing.
# jupyter_execute_notebooks = "force"
jupyter_execute_notebooks = "cache"
#jupyter_execute_notebooks = "cache"

# Add any paths that contain templates here, relative to this directory.
# templates_path = ['_templates']
Expand Down Expand Up @@ -126,3 +134,10 @@ class TypealongDirective(_BaseCRDirective):
def setup(app):
for obj in DIRECTIVES:
app.add_directive(obj.cssname(), obj)


import os
if os.environ.get('GITHUB_REF', '') == 'refs/heads/main':
html_js_files = [
('https://plausible.io/js/script.js', {"data-domain": "enccs.github.io/qas2024", "defer": "defer"}),
]

0 comments on commit 8954865

Please sign in to comment.