mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-27 12:24:19 +02:00
Fix pre-commit and CI issues
- Add site_name to zensical.toml (required by MkDocs) - Fix RET504 in docs_gen.py (unnecessary assignment before return) - Remove docs/run_markdown_code_runner.py (lint issues, not needed for CI)
This commit is contained in:
parent
c439c5315b
commit
ee78670aa2
3 changed files with 2 additions and 98 deletions
|
|
@ -84,9 +84,7 @@ def transform_readme_links(content: str) -> str:
|
|||
content = content.replace(f"]({old_link})", f"]({new_link})")
|
||||
|
||||
# Also handle the ToC link pattern [[ToC](#...)]
|
||||
content = re.sub(r"\[\[ToC\]\([^)]+\)\]", "", content)
|
||||
|
||||
return content
|
||||
return re.sub(r"\[\[ToC\]\([^)]+\)\]", "", content)
|
||||
|
||||
|
||||
def get_feature_list() -> str:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue