diff options
author | Stephen Dolan <stephen.dolan@cl.cam.ac.uk> | 2023-05-28 16:41:46 +0100 |
---|---|---|
committer | Stephen Dolan <stephen.dolan@cl.cam.ac.uk> | 2023-05-28 16:41:46 +0100 |
commit | eb610c03232c76839c05520bdca442bfabf6e853 (patch) | |
tree | 049a866a0ff8813288026bdfe609f239b90c1d9f | |
parent | cff5336ec71b6fee396a95bb0e4bea365e0cd1e8 (diff) |
Fix website build by adding Loader parameter to yaml.load
-rwxr-xr-x | docs/build_website.py | 2 |
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) |