Skip to content

Update docs TOC and Sphinx excludes#3201

Merged
C-Achard merged 6 commits intoDeepLabCut:mainfrom
C-Achard:cy/fix-toc-jb1.0.4post1
Feb 16, 2026
Merged

Update docs TOC and Sphinx excludes#3201
C-Achard merged 6 commits intoDeepLabCut:mainfrom
C-Achard:cy/fix-toc-jb1.0.4post1

Conversation

@C-Achard
Copy link
Collaborator

@C-Achard C-Achard commented Feb 6, 2026

Purpose

  • Cleans up the config to ignore unwanted build/venv directories to focus on package folders.
  • Normlaize _toc.yml to minimize issues with the latest jupyter-book<2 version.

This will also speed up local and potentially CI docs build.

TODO

  • Check :
    • No content changes
    • No ordering changes

Related

Required by/upstream of #3206. If 3206 is merged this PR is not relevant anymore.

Details

  • Add Sphinx exclude_patterns to _config.yml to ignore virtual environments, site-packages, and build directories during doc builds (".venv/", "venv/", "/site-packages/", "_build/", "/_build/**").
  • Reformat _toc.yml : normalize emoji-bearing captions with quotes

Add Sphinx exclude_patterns to _config.yml to ignore virtual environments, site-packages, and build directories during doc builds (".venv/**", "venv/**", "**/site-packages/**", "_build/**", "**/_build/**"). Reformat _toc.yml into a proper jb-book "parts:" structure with correctly nested captions and chapters, normalize emoji-bearing captions with quotes, and restore many documentation sections. Also add a placeholder "DLC-Live!" entry with nested chapters/sections for the dlc-live GUI documentation. These changes clean up the table of contents and prevent unrelated files from being included in the documentation build.
@C-Achard C-Achard self-assigned this Feb 6, 2026
@C-Achard C-Achard added the documentation documentation updates/comments label Feb 6, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Jupyter Book documentation configuration to reduce build noise and improve compatibility with newer jupyter-book<2 TOC parsing.

Changes:

  • Reformats _toc.yml to a clearer parts: structure and quotes emoji-containing captions.
  • Adds Sphinx exclude_patterns in _config.yml to ignore venv/site-packages/build directories during docs builds.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
_toc.yml Normalizes TOC structure/formatting (notably captions and part boundaries).
_config.yml Excludes common non-doc directories from Sphinx discovery to speed builds and avoid accidental inclusion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Collaborator

@deruyter92 deruyter92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@C-Achard C-Achard merged commit 150928c into DeepLabCut:main Feb 16, 2026
10 checks passed
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.

2 participants