Skip to content

Conversation

@MaxGhenis
Copy link
Contributor

@MaxGhenis MaxGhenis commented Sep 30, 2025

Summary

  • Upgraded to Jupyter Book 2.0 (MyST-based) for modern, maintainable docs
  • Adds GitHub Actions workflow to build and deploy documentation
  • Fixes branch reference in config from master to main
  • Configures proper GitHub Pages deployment with required permissions

Changes

  • docs/myst.yml: New MyST-based configuration (migrated from _config.yml and _toc.yml)
  • docs/._config.yml.bak, docs/._toc.yml.bak: Backup of old config files
  • .github/workflows/docs.yaml: New workflow to build docs with JB2.0 and deploy to GitHub Pages
  • changelog_entry.yaml: Added changelog entry

Key Upgrade Details

Jupyter Book 2.0 is a complete rewrite using MyST (Markedly Structured Text):

  • Uses myst.yml instead of _config.yml + _toc.yml
  • Build command: jupyter book build --html
  • More modern, better maintained, and actively developed
  • Better integration with Jupyter ecosystem

Test plan

Note

This PR is in draft until CI passes. After the upgrade completes successfully, GitHub Pages needs to be configured to use "GitHub Actions" as the build source (Settings → Pages → Build and deployment → Source: GitHub Actions).

Fixes #193

🤖 Generated with Claude Code

MaxGhenis and others added 5 commits September 30, 2025 14:25
- Add docs.yaml workflow to build and deploy Jupyter Book using myst build
- Fix branch reference in _config.yml from master to main
- Configure GitHub Pages deployment with proper permissions

Fixes #193

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Migrated from Jupyter Book 1.x to 2.0 using MyST
- Created myst.yml config (migrated from _config.yml and _toc.yml)
- Updated workflow to install JB2.0 and run upgrade process
- Old config files backed up as ._config.yml.bak and ._toc.yml.bak
- Build command now: jupyter book build --html

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@MaxGhenis MaxGhenis marked this pull request as draft September 30, 2025 13:44
MaxGhenis and others added 3 commits September 30, 2025 14:51
- Use myst build --html instead of jupyter book build
- Set BASE_URL=/policyengine-uk-data for correct GitHub Pages paths
- Create .nojekyll file in build output
- Deploy to gh-pages branch using JamesIves/github-pages-deploy-action
- Fix author name format in myst.yml to avoid warnings
- Matches working policyengine-us-data deployment pattern

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@MaxGhenis MaxGhenis marked this pull request as ready for review September 30, 2025 13:57
@MaxGhenis MaxGhenis merged commit 56d0d01 into main Sep 30, 2025
3 of 4 checks passed
@MaxGhenis MaxGhenis deleted the fix-jupyter-book-deployment branch September 30, 2025 13:58
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.

Jupyterbook unavailable

2 participants