Skip to content

Commit

Permalink
Fix: index not found message
Browse files Browse the repository at this point in the history
  • Loading branch information
vahidzee committed Aug 22, 2021
1 parent e1e0c85 commit cba349f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/src/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Builder:
repo_full_name: str
assets_dir: str = 'assets'
markdown_extensions: th.Optional[th.Iterable[str]] = (
'md_in_html', 'codehilite', 'fenced_code', 'tables', 'attr_list')
'md_in_html', 'codehilite', 'fenced_code', 'tables', 'attr_list', 'footnotes', 'def_list')
checked_indices: set = field(default_factory=set)

@patch_decorator
Expand Down Expand Up @@ -146,7 +146,7 @@ def build_index(self, index: dict = None, index_file: str = None, assets_src_dir
if index is None:
index_file = f'{index_file}{"" if index_file.endswith(".yml") or index_file.endswith(".yaml") else ".yml"}'
assert os.path.isfile(index_file), \
f"{index_type.capitalize()} file {f'{index_file}.yml'} could not be found!"
f"{index_type.capitalize()} file {index_file} could not be found!"
index = read_yaml(index_file)
if index_file in self.checked_indices:
return index
Expand Down

0 comments on commit cba349f

Please sign in to comment.