From 269a750a85abaa11505bf69a4d277ea498fb8377 Mon Sep 17 00:00:00 2001 From: Man Ting Chan Date: Wed, 7 Feb 2024 09:17:13 +0000 Subject: [PATCH] reverted 84a7736 don't use jinja to template; instead use f-strings at build time --- template/{% if sphinx %}docs{% endif %}/conf.py.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/{% if sphinx %}docs{% endif %}/conf.py.jinja b/template/{% if sphinx %}docs{% endif %}/conf.py.jinja index 0d98ee49..aa38235b 100644 --- a/template/{% if sphinx %}docs{% endif %}/conf.py.jinja +++ b/template/{% if sphinx %}docs{% endif %}/conf.py.jinja @@ -128,7 +128,7 @@ copybutton_prompt_is_regexp = True html_theme = "pydata_sphinx_theme" github_repo = "{{ repo_name }}" github_user = "{{ github_org }}" -switcher_json = "https://{{ github_org }}.github.io/{{ repo_name }}/switcher.json" +switcher_json = f"https://{github_user}.github.io/{github_repo}/switcher.json" switcher_exists = requests.get(switcher_json).ok if not switcher_exists: print(