[PATCH v2 4/4] .pre-commit-config.yaml: add gen-doc-links
Antonin Godard <[email protected]> Thu, 16 Jul 2026 14:18:34 +0200
| Newsgroups | org.yoctoproject.lists.docs |
|---|---|
| Message-ID | <[email protected]> |
It is easy to forget updating this file when adding or removing variables/tasks. Add a pre-commit hook that does the job for us before committing our change. Signed-off-by: Antonin Godard <[email protected]> --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f2b73a481..041f5b30d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,3 +6,10 @@ repos: entry: ./documentation/tools/check-glossaries language: python pass_filenames: false + - id: gen-doc-links + name: Generate documentation links + entry: ./documentation/tools/gen-doc-links + language: python + verbose: true + pass_filenames: false + additional_dependencies: [sphinx] -- 2.54.0