Switch to filename-based wiki-links (Quartz resolves by filename)
- Convert all wiki-links from title-based to filename-based - Update doc-links to validate against filenames - Add doc-filenames task for duplicate filename detection - Consolidate doc hooks into single local block in pre-commit config Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
d359583d0a
commit
9630655cc9
28 changed files with 166 additions and 149 deletions
|
|
@ -89,7 +89,7 @@ repos:
|
|||
args: ['-config-file', '.github/actionlint.yaml']
|
||||
files: ^\.forgejo/workflows/
|
||||
|
||||
# Documentation - check for duplicate titles (required for Quartz wiki-link resolution)
|
||||
# Documentation validation
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: doc-titles
|
||||
|
|
@ -98,10 +98,12 @@ repos:
|
|||
language: system
|
||||
files: ^docs/.*\.md$
|
||||
pass_filenames: false
|
||||
|
||||
# Documentation - validate wiki-links point to existing titles
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: doc-filenames
|
||||
name: doc-filenames
|
||||
entry: mise run doc-filenames
|
||||
language: system
|
||||
files: ^docs/.*\.md$
|
||||
pass_filenames: false
|
||||
- id: doc-links
|
||||
name: doc-links
|
||||
entry: mise run doc-links
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue