diff --git a/content/conf.py b/content/conf.py index d2946c1..96ddc87 100644 --- a/content/conf.py +++ b/content/conf.py @@ -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 @@ -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'] @@ -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"}), + ]