On running poetry run mkdocs --verbose build, I receive the error:
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 63: character maps to <undefined>
the traceback points to with document_file.open() as f: (macros/__init__.py#45)
Implicitly setting the encoding to utf8 resolves the issue — patch on the way 🙂
diff --git a/macros/__init__.py b/macros/__init__.py index 0c58434..d38504a 100644 --- a/macros/__init__.py +++ b/macros/__init__.py @@ -42,7 +42,7 @@ def define_env(env): # Collect all document descriptions from filesystem and associate with # categories for document_file in documents_dir.glob("**/*.yaml"): - with document_file.open() as f: + with document_file.open(encoding='utf8') as f: for document in yaml.safe_load_all(f): doc_tree[document_file.stem] = document