Skip to content

Migrate documentation from Jupyter Book v1 to MyST (v2) - #574

Open
mwouts wants to merge 2 commits into
mainfrom
claude/jupyter-book-v2-pr-review-2hhoj2
Open

Migrate documentation from Jupyter Book v1 to MyST (v2)#574
mwouts wants to merge 2 commits into
mainfrom
claude/jupyter-book-v2-pr-review-2hhoj2

Conversation

@mwouts

@mwouts mwouts commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

This PR migrates the ITables documentation from Jupyter Book v1 to MyST (Jupyter Book v2), updating the build configuration and tooling accordingly.

Key Changes

  • Configuration Migration: Replaced _config.yml and _toc.yml with a new myst.yml configuration file following MyST's format
  • Build System: Updated GitHub Actions workflow to use Pixi for dependency management instead of separate Node and Python setup steps
  • Redirect Script: Added docs/create_redirects.py to generate HTML redirect stubs for old documentation URLs, maintaining backward compatibility as MyST changes URL patterns (e.g., underscores to hyphens)
  • Jupytext Configuration: Added docs/jupytext.toml to centralize Jupytext settings and removed redundant notebook_metadata_filter entries from individual document frontmatter
  • Dependencies: Updated pyproject.toml to replace jupyter-book>=1 with MyST dependencies
  • Documentation Updates: Updated docs/developing.md and docs/apps/streamlit.md to reflect new build instructions
  • Version Bump: Updated version to 2.8.2.dev0 in src/itables/version.py

Implementation Details

The migration maintains URL compatibility through the redirect script, which:

  • Handles the transition from Jupyter Book v1's <path>.html URLs to MyST's <path> format
  • Restores redirects previously implemented with sphinxext-rediraffe
  • Generates HTML stubs at old URL locations pointing to new locations

The new MyST configuration consolidates project metadata and table of contents in a single YAML file, simplifying the documentation structure while maintaining the same content organization.

https://claude.ai/code/session_01FjUHgWXiMwHTBeVBMQiKWE

mwouts and others added 2 commits June 15, 2026 17:18
- Move myst.yml into docs/ so that pages keep their previous URL structure
  (apps/widget instead of docs/apps/widget)
- Add the pages that were dropped from the TOC: apps/panel,
  options/col_reorder and options/show_df_type
- Create redirect stubs for the URLs of the Jupyter Book v1 site
  ('<path>.html', with underscores) and for the former rediraffe redirects
- Move notebook_metadata_filter from the notebook frontmatter to
  docs/jupytext.toml, as MyST warns on that key ('jupytext' extra key
  ignored); the filter excludes itself so jupytext --sync does not
  write it back
- Remove the Jupyter Book v1 theme options (use_edit_page_button etc)
  that do not exist in the MyST book theme

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FjUHgWXiMwHTBeVBMQiKWE
@codecov-commenter

codecov-commenter commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.22%. Comparing base (79be4fc) to head (f84141f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #574      +/-   ##
==========================================
- Coverage   94.28%   94.22%   -0.07%     
==========================================
  Files          48       48              
  Lines        2748     2736      -12     
==========================================
- Hits         2591     2578      -13     
- Misses        157      158       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Thank you for making this pull request.

Did you know? You can try it on Binder: Binder:lab.

Also, the version of ITables developed in this PR is available as a wheel artifact 📦 for easy installation.
Download it here, unzip it and then run pip install itables-xxx.whl in the unzipped directory.

A conda package is also available for easy installation:
Download it here, and then run conda install itables-xxx.tar.bz2 in the directory where you downloaded the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants