Use macros for Docs tables de-duplication (#14990)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
e5a5be5d20
commit
5880e18fa7
20 changed files with 54 additions and 184 deletions
|
|
@ -123,7 +123,7 @@ def update_markdown_files(md_filepath: Path):
|
|||
content = content.replace("‘", "'").replace("’", "'")
|
||||
|
||||
# Add frontmatter if missing
|
||||
if not content.strip().startswith("---\n"):
|
||||
if not content.strip().startswith("---\n") and "macros" not in md_filepath.parts: # skip macros directory
|
||||
header = "---\ncomments: true\ndescription: TODO ADD DESCRIPTION\nkeywords: TODO ADD KEYWORDS\n---\n\n"
|
||||
content = header + content
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue