Skip to content

Docs audit [April 2026]: update multi-animal guide - #3335

Merged
C-Achard merged 39 commits into
docs/audit-2026from
jaap/docs-audit-2026-update-ma-guide
Jun 26, 2026
Merged

Docs audit [April 2026]: update multi-animal guide#3335
C-Achard merged 39 commits into
docs/audit-2026from
jaap/docs-audit-2026-update-ma-guide

Conversation

@deruyter92

Copy link
Copy Markdown
Collaborator

in line with the main single animal guide, this PR updates the formatting of the multi-animal guide

@C-Achard C-Achard added the documentation documentation updates/comments label May 20, 2026
@C-Achard C-Achard added this to the Docs audit: April 2026 milestone May 21, 2026
@C-Achard C-Achard changed the title docs audit [April 2026] update ma guide Docs audit [April 2026]: update multi-animal guide May 21, 2026
@deruyter92
deruyter92 force-pushed the jaap/docs-audit-2026-update-ma-guide branch from c4dc4dd to 101ffa1 Compare May 26, 2026 14:53
@deruyter92

deruyter92 commented May 26, 2026

Copy link
Copy Markdown
Collaborator Author

@C-Achard, maybe it is ready for a first round of review.

Changes:
After first editing the single and multi-animal guides separately, I decided (after our discussion) that it would be worthwile to try to merge them. Thanks to your custom CSS dropdowns and admonitions, I think the user can easily skip and hide the information that is not relevant.

In summary the docs now look like this:

  • 1 merged 'DeepLabCut user guide` with a shared workflow.
  • The workflow is separated in phases (similar to the original maDLC docs), which are subdivided in steps.
  • All multi-animal or single-animal-specific information is put inside a custom dropdown, to easily hide irrelevant info. (@C-Achard thanks for the custom CSS!)
  • A special case is made for the multi-animal tracking:
    • Since the default video_analysis step uses auto_track=True in version 3.0 onward, the standard user does not have to worry about tracking by default. This is now made very explicit in the documentation.
    • More information on the tracking steps and how to run them manually is contained in a separate doc page: multi-animal tracking.

I think the multi-animal tracking docs still need quite some (formatting and correction) work, but the merged user guide is getting there.

Since all multi-animal-specific info is tagged in dedicated admonitions/dropdowns, we can easily go back to the old situation, in case we prefer to have two separate (largely duplicated) doc pages.

@deruyter92
deruyter92 requested a review from C-Achard May 26, 2026 15:07
@C-Achard

C-Achard commented May 27, 2026

Copy link
Copy Markdown
Collaborator

@deruyter92 I had a few issues in the user_guide file, the frontmatter metadata was a bit malformed, and the dropdowns did not render correctly. Is it okay if I push a fixed version?
(My CSS example was also not fully correct, which is now fixed)

@C-Achard

C-Achard commented May 27, 2026

Copy link
Copy Markdown
Collaborator

Very important question: what is the font in the workflow chart actually?
image

Comment thread docs/main-workflows/user-guide.md
Comment thread docs/main-workflows/user-guide.md Outdated
C-Achard and others added 17 commits May 27, 2026 16:28
Improve user documentation for the GUI and CLI flows: add an important note to always run the terminal as administrator on Windows, rename and rephrase GUI/CLI headings for clarity, and break out stepwise startup instructions. Restructure the create_new_project section with a concise list of required and optional arguments, add a note explaining symbolic links and why Windows requires admin privileges, include a code example and tip block, and fix Windows path formatting. Minor wording and formatting tweaks throughout to improve readability.
Convert the single-animal user guide to MyST-friendly markdown and improve layout and clarity. Changes include: add a table-of-contents directive; replace raw HTML <img>/<p> blocks with MyST image directives and metadata; introduce admonitions (important/note/caution/hint) for critical points; restructure the project directory section into bulleted lists and an ASCII tree; clarify Windows path guidance and config.yaml parameter notes; normalize API Docs headings and other formatting fixes. These are documentation/formatting updates to improve rendering and readability—no functional code changes.
Update documentation for the single-animal user guide: convert local link refs to file:single-animal-userguide, fix napari link formatting, and reorganize/clarify many sections in standardDeepLabCut_UserGuide.md. Added consistent subsection headings (Overview, Code example, Output, etc.), separators, code block language annotations, a schematic of the training dataset layout, and improved wording/indentation for lists and examples. Also updated UseOverviewGuide.md to point to the revised single-animal guide. These changes improve readability, provide clearer examples, and make the workflow steps and outputs easier to follow.
Minor documentation cleanup in docs/standardDeepLabCut_UserGuide.md: split the conda activation into its own numbered step, simplify wording and line breaks for clarity, and remove bold all-caps headings (OVERVIEW and MODEL COMPARISON) in favor of normal sentences. Purely editorial changes; no functional code changes.
Reorganize the project directory section in the user guide: move the sentence about where outputs are stored to follow the directory tree block and adjust list numbering for the subdirectory descriptions for clarity. Replace Markdown-style links to the napari-deeplabcut docs with Sphinx {ref} roles in two places and clean up minor whitespace/formatting.
Miscellaneous documentation fixes and clarifications across the user guide:
- Grammar/wording fixes (e.g. "training and testing set", other minor edits).
- Rename config option reference: numframes2extract -> numframes2pick.
- Update napari-deeplabcut docs reference to RST cross-reference style.
- Rework Optional labels section for clearer phrasing and line breaks.
- Adjust networks paragraph spacing and wording.
- Reformat dynamic-cropping docs: use triple-quoted string, change "triple" -> "tuple", correct "detectiontreshold" -> "detectionthreshold", and move explanatory text outside the code block for readability.
- Update Filter Pose Data: note output used by create_labeled_video (was create_labeled_data) and plot trajectories.
- Minor improvements to Plot Trajectories section wording and spacing.
- Clarify SkeletonBuilder usage: call deeplabcut.SkeletonBuilder(config_path) and explain config_path.
These edits are documentation-only and improve readability, accuracy, and consistency.
Rewrite and reorganize project subdirectory documentation for clarity: convert prose into numbered sections for dlc-models/dlc-models-pytorch, labeled-data, training-datasets, and videos; clarify iteration/shuffle/train/test structure, YAML config files, and checkpoint usage; note copy_videos behavior (default False). Update napari labeling section to use a hint block linking to napari docs and remove the inline HOT KEYS block (left commented out). Minor wording tweaks for the optional-labels and label-checking guidance.
Apply editorial fixes to the standard DeepLabCut user guide: correct spelling (e.g., "docstrings"), standardize capitalization for PyTorch and TensorFlow, unify dataset/data set usage, fix punctuation and spacing (e.g., video path, SkeletonBuilder call), and normalize list capitalization. These changes improve readability and consistency across the documentation.
@C-Achard

Copy link
Copy Markdown
Collaborator

@deruyter92 This is suffering from the outdated squashed commits mismatch as well, happy to fix it if needed!

@C-Achard

Copy link
Copy Markdown
Collaborator

Cutoff should be ba8e985^

@deruyter92

Copy link
Copy Markdown
Collaborator Author

I'm not working on it a the moment, so feel free to rebase as you wish! Thanks for taking care of it!

deruyter92 and others added 16 commits June 1, 2026 11:10
* Update custom.css

* Refine workflow dropdown styles and colors

Update docs/_static/custom.css to adjust dark-theme variables and overhaul workflow dropdown styling. Changed single/multi-animal background variables, replaced old title-prefix approach with CSS-generated emoji titles, and hid sphinx-design's no-title icon. Apply consistent header/body color variables for sd-card dropdowns, keep text/chevron colors stable, and disable pydata's hover darken/lighten effect to prevent color shifts on focus/hover. These changes ensure consistent appearance and correct application of border/background styles overridden by pydata.
Update documentation to use MyST's :class-container for dropdown directives (previous :class usages updated in docs/_static/custom.css and docs/main-workflows/user-guide.md). Also correct the YAML frontmatter formatting in user-guide.md (expand inline metadata into a proper YAML block). These changes align docs with current MyST/Sphinx directive syntax and fix frontmatter parsing.
Adjust multi-animal CSS variables in light and dark themes to be more distinct from hint/tip boxes. Updated --multi-animal-border to #57c4be, --multi-animal-bg to #e8f8f7, --multi-animal-title-bg to #21a197, and --multi-animal-title-text to #000000 in both themes.
Editorial and formatting updates to the main user guide and added an updated multi-animal figure. Changes include: clarified multi-animal workflow wording, strengthened guidance (emphasis on recommended options), reworked admonitions (hint/danger/tip), improved paragraph flow and bullet structure, clarified frame selection methods and recommendations, updated examples and GUI notes, refined training/evaluation/tracking explanations, and replaced the multi-animal figure reference with docs/images/box1-multi-rec.png (recolored for new CSS). Miscellaneous typography and markup fixes (code blocks, YAML/file references, and symbol styling) to improve readability.
Improve rendering and correctness in docs/main-workflows/user-guide.md: change admonition key to `class-container`, update dropdown/admonition syntax, fix code block languages (python -> yaml/text), correct example function parameter (`config` -> `config_path`), adjust heading capitalization and list formatting. These changes ensure examples render correctly and the docs reflect the actual API usage.
Add single- and multi-animal quick-start pages to the Main workflows overview in _toc.yml and substantially rewrite both quick-start docs. single_animal_quick_guide.md was reorganized into a clear step-by-step workflow (create project, configure, extract/label frames, create dataset, train/evaluate, analyze/filter/plot/create videos) with concrete Python examples, notes, and tips (use absolute paths, no spaces in body-part names). tutorial_maDLC.md was refactored into a multi-animal overview with GUI and Python workflows, clearer config guidance for multi-animal fields, extraction/annotation/checking steps, separate training engine examples (PyTorch/TensorFlow), and explicit tracking steps (analyze, convert detections, stitch tracklets, create labeled videos) plus helpful notes. Overall improvements focus on clarity, concrete examples, and actionable tips for users.
@C-Achard
C-Achard force-pushed the jaap/docs-audit-2026-update-ma-guide branch from dcf941a to 01f907e Compare June 1, 2026 09:10
C-Achard added 3 commits June 1, 2026 11:25
Relocate the important guidance about selecting diverse training frames to the section near frame extraction/functionality, making it more contextually relevant. Clean up manual frame-selection wording, normalize the selection-method bullets, and adjust figure/code-fence markup (wrap figure in a comment) to prevent rendering issues. Minor formatting fixes for clarity.
Remove the parenthetical reference to www.deeplabcut.org and merge the broken sentence in the TensorFlow Engine augmentation section to improve readability and flow. No functional changes; content about available loaders remains the same.
Base automatically changed from cy/docs-audit-2026-update-single-animal to docs/audit-2026 June 25, 2026 19:43
@C-Achard
C-Achard marked this pull request as ready for review June 25, 2026 21:17
@C-Achard
C-Achard merged commit f1de523 into docs/audit-2026 Jun 26, 2026
3 checks passed
@C-Achard
C-Achard deleted the jaap/docs-audit-2026-update-ma-guide branch June 26, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation documentation updates/comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants