Skip to content

docs: convert book from GitBook to mystmd - #1389

Closed
henryiii wants to merge 1 commit into
mainfrom
mystmd-book
Closed

henryiii wants to merge 1 commit into
mainfrom
mystmd-book

Conversation

@henryiii

Copy link
Copy Markdown
Collaborator

🤖 AI text below 🤖

GitBook CLI is unmaintained and needs Node 16 plus calibre to build. This converts the tutorial book to mystmd:

  • myst.yml replaces SUMMARY.md, book.json, and package.json.
  • The include-codeblock plugin embeds become {literalinclude} directives; the term plugin fences become console fences.
  • CI builds with npx mystmd build --html on Node 22 (no more calibre/apt packages) and deploys to the same _site/book path.
  • Page URLs change from chapters/<name>.html to chapters/<name>/; deep links in the README are updated to match. Old external .html links will 404.
  • The PDF build is dropped (mystmd would need LaTeX or Typst for it; nothing linked to it).

Verified locally: myst build --html runs clean with BASE_URL=/CLI11/book, the included code renders, and lint passes.

GitBook CLI is unmaintained and needs Node 16 plus calibre to build.
Replace it with mystmd: SUMMARY.md/book.json become myst.yml, the
include-codeblock plugin becomes literalinclude directives, and the
term plugin fences become console fences. Page URLs change from
chapters/<name>.html to chapters/<name>/; links in the README are
updated to match. The PDF build is dropped.

Assisted-by: ClaudeCode:claude-fable-5
@codecov

codecov Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fafea49) to head (83cec37).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1389   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines         5225      5225           
  Branches      1131      1131           
=========================================
  Hits          5225      5225           

☔ 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.

@henryiii
henryiii marked this pull request as ready for review July 29, 2026 23:11
henryiii added a commit that referenced this pull request Jul 30, 2026
🤖 _AI text below_ 🤖

The `codecov/project` status can report a spurious drop (e.g. 99.96% on
#1389, a docs-only PR) because codecov computes it as soon as the first
coverage report arrives, while the base commit has 8 merged sessions.

`.github/codecov.yml` already set `after_n_builds: 8`, but it never
applied: codecov reads only the first config it finds, and the root
`.codecov.yml` shadows `.github/`. This merges the setting into the root
file and removes the shadowed one. The shadowed file's `informational:
true` for the project status is intentionally not carried over, since it
never took effect and would keep the check from ever failing.

The merged config passes `codecov.io/validate`.
@henryiii
henryiii marked this pull request as draft July 30, 2026 00:56
henryiii added a commit that referenced this pull request Jul 30, 2026
Close #1389. I think this is a better way to go.

:robot: _AI text below_ :robot:

Moves the tutorial book from GitBook into Doxygen pages, so one
`doxygen` run
builds the whole site.

- Each chapter becomes a Doxygen page nested under the book introduction
with `\subpage`, which replaces `SUMMARY.md`.
- The `include-codeblock` embeds become `\include` and `\snippet`. The
code files already had the Doxygen snippet markers. Identifiers in the
embedded code now link into the API reference.
- The `gitbook` CI job (Node 16 + calibre) is removed. The PDF build is
dropped.
- Page URLs change from `book/chapters/<name>.html` to
`book-<name>.html`. The deployed site gets meta-refresh stubs at the old
locations, and README deep links point to the new URLs.
- Fixes an unclosed backtick in `config.md` that GitBook tolerated
silently.

Built the docs locally with Doxygen 1.17 to check the pages, snippets,
and images render.
@henryiii
henryiii deleted the mystmd-book branch July 30, 2026 05:49
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.

1 participant