summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Dolan <stephen.dolan@cl.cam.ac.uk>2023-05-28 16:41:46 +0100
committerStephen Dolan <stephen.dolan@cl.cam.ac.uk>2023-05-28 16:41:46 +0100
commiteb610c03232c76839c05520bdca442bfabf6e853 (patch)
tree049a866a0ff8813288026bdfe609f239b90c1d9f
parentcff5336ec71b6fee396a95bb0e4bea365e0cd1e8 (diff)
Fix website build by adding Loader parameter to yaml.load
-rwxr-xr-xdocs/build_website.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/build_website.py b/docs/build_website.py
index 7e04cc7b..85d78942 100755
--- a/docs/build_website.py
+++ b/docs/build_website.py
@@ -16,7 +16,7 @@ env = Environment(
def load_yml_file(fn):
with open(fn) as f:
- return yaml.load(f)
+ return yaml.load(f, Loader=yaml.Loader)
env.filters['search_id'] = lambda input: input.replace(r'`', '')
env.filters['section_id'] = lambda input: re.sub(r"[^a-zA-Z0-9_]", '', input)