-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add automated docs & notebooks freshness + normalization checks #3228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
7f92330
Add docs & notebooks staleness check tool
C-Achard 5c60b01
Add staleness workflow for docs and notebooks
C-Achard 9080556
Use docs_nb_checks as output directory
C-Achard eea323e
Make meta_to_jsonable JSON-safe for dates
C-Achard 3484812
Add nbformat and notebook normalization checks
C-Achard 3728e89
Add local pre-commit hook for docs/notebooks
C-Achard af816c5
Support targeted scans and use repo config path
C-Achard 032d5d3
Update docs/notebooks README paths & cmds
C-Achard 47028b5
Fix arg ordering
C-Achard e07a38c
Update docs_and_notebooks_check.py
C-Achard 52cdc4a
Apply suggestions from code review
C-Achard be93a65
Move docs_notebooks tool to tools/
C-Achard f944212
Merge branch 'main' into cy/automated-docs&nb-report
C-Achard dfb26f3
Skip metadata commits when computing content date
C-Achard 5227915
Add docs/notebook contract tests; rebuild models
C-Achard 82f963e
Update docs_and_notebooks tool README
C-Achard dc10a6f
Update docs/notebooks workflow: deps & timeout
C-Achard b52ccb3
Add pydantic>2 dependency
C-Achard a7a8f80
Detect missing vs invalid DLC metadata
C-Achard 29f6d24
Add tests for notebook DLC metadata warnings
C-Achard 37a0887
Install dev extras in CI and update dev deps
C-Achard 2e7847f
Add --no-step-summary flag and update summary
C-Achard feeef82
CI: upgrade checkout and adjust pip install
C-Achard 866d705
Bump CI actions, fix deps and tests formatting
C-Achard 0e76818
Only stamp metadata on write; rename git_stale
C-Achard 336b6ac
Defer stamping last_metadata_updated until write
C-Achard ca91469
Simplify notebook writes
C-Achard c57ff21
Specify HEAD and use --fixed-strings in git log
C-Achard 9a58f68
Refactor git date parsing and log helpers
C-Achard 3c70970
Merge branch 'main' into cy/automated-docs&nb-report
C-Achard 5f0a328
Refactor dlc docs/notebooks pre-commit hook
C-Achard 1da0a70
docs: clarify metadata/normalization guidance
C-Achard f1806a3
Report scan/parsing issues non-fatal; add strict mode
C-Achard 7838d07
Pydantic v2 migration and frontmatter error fixes
C-Achard 5d22716
tests: update for renamed constant and 3-tuple
C-Achard 648c178
Merge branch 'main' into cy/automated-docs&nb-report
C-Achard 8c0dc21
chore(metadata): update docs/notebooks metadata
C-Achard c2e519d
Populate live-GUI docs
C-Achard f41946f
Merge pull request #3232 from DeepLabCut/cy/docs-nbs-check-apply
C-Achard a180893
Merge branch 'main' into cy/automated-docs&nb-report
C-Achard 7675a2d
Update pyproject.toml
C-Achard 9d31fc0
Update uv.lock
C-Achard e9d509d
Merge remote-tracking branch 'upstream/main' into cy/automated-docs&n…
deruyter92 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| name: Docs & notebooks freshness and formatting checks | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| staleness: | ||
| name: Docs and notebooks scan (read-only) | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
|
|
||
| steps: | ||
| - name: Checkout repository (full history for git dates) | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Install staleness tool dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| python -m pip install "pydantic>=2,<3" pyyaml "nbformat>=5" | ||
|
|
||
| - name: Run staleness report (read-only) | ||
| run: | | ||
| python tools/docs_and_notebooks_check.py \ | ||
| --config tools/docs_and_notebooks_report_config.yml \ | ||
| --out-dir tmp/docs_nb_checks \ | ||
| report | ||
|
|
||
|
|
||
| # Optional: run check mode (will fail only once you populate allowlists in config) | ||
| - name: Run staleness policy check (optional gate) | ||
| continue-on-error: true | ||
| run: | | ||
| python tools/docs_and_notebooks_check.py \ | ||
| --config tools/docs_and_notebooks_report_config.yml \ | ||
| --out-dir tmp/docs_nb_checks \ | ||
| --no-step-summary \ | ||
| check | ||
|
|
||
| - name: Upload staleness artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: staleness-report | ||
| path: | | ||
| tmp/docs_nb_checks/*.json | ||
| tmp/docs_nb_checks/*.md | ||
| if-no-files-found: error | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| --- | ||
| deeplabcut: | ||
| last_content_updated: '2022-08-30' | ||
| last_metadata_updated: '2026-03-06' | ||
| ignore: false | ||
| --- | ||
| Please see https://deeplabcut.github.io/DeepLabCut for documentation on how to use this software. | ||
|
|
||
| This directory contains the source code for the docs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
docs/dlc-live/dlc-live-gui/user_guide/cameras_backends/aravis_backend.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
docs/dlc-live/dlc-live-gui/user_guide/cameras_backends/gentl_backend.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
docs/dlc-live/dlc-live-gui/user_guide/cameras_backends/opencv_backend.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
docs/dlc-live/dlc-live-gui/user_guide/misc/modelzoo_downloads.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.