Browse Source

🔨 Add command to run add-permalinks on specific pages for pre-commit

pull/14398/head
Sebastián Ramírez 8 months ago
parent
commit
bd5b325722
  1. 9
      scripts/docs.py

9
scripts/docs.py

@ -520,6 +520,15 @@ def add_permalinks_page(path: Path, update_existing: bool = False):
f.writelines(updated_lines)
@app.command()
def add_permalinks_pages(pages: List[Path], update_existing: bool = False) -> None:
"""
Add or update header permalinks in specific pages of En docs.
"""
for md_file in pages:
add_permalinks_page(md_file, update_existing=update_existing)
@app.command()
def add_permalinks(update_existing: bool = False) -> None:
"""

Loading…
Cancel
Save