on master help sign in
Update comment in script
8ca15acYaseen
anchors.py+2−1
@@ -34,7 +34,8 @@ def validate_entry(setting: str, file: str):
34
34
35
35
36def find_all_mds() -> List[str]:
36def find_all_mds() -> List[str]:
37+ # **/_index.md for all index files
37− return [str(p) for p in Path('./').rglob('*.md')]
38+ return [str(p) for p in Path('./').rglob('*.md')] # only applicable on `_index.md` files (i.e. sections)
38
39
39def setting_from_frontmatter(lines: List[str]) -> str:
40def setting_from_frontmatter(lines: List[str]) -> str:
40 # 'insert_anchor_links = "none"' -> 'none'
41 # 'insert_anchor_links = "none"' -> 'none'