Skip to content

Upgrade gb-asm-tutorial to use mdbook 0.5#172

Draft
mtthgn wants to merge 1 commit intogbdev:masterfrom
mtthgn:mdbook-upgrade
Draft

Upgrade gb-asm-tutorial to use mdbook 0.5#172
mtthgn wants to merge 1 commit intogbdev:masterfrom
mtthgn:mdbook-upgrade

Conversation

@mtthgn
Copy link
Copy Markdown

@mtthgn mtthgn commented Mar 27, 2026

This PR makes a number of changes, all necessary to address breaking changes introduced in mdBook 0.5:

  1. It makes the preproc and i18n-helpers crates now depend on mdbook-preprocessor. As part of 0.5 the mdbook crate was broken down into components.
  2. It makes the renderer crate now depend on mdbook-renderer and mdbook-html. This one is mostly just updating use names.
  3. It switches the {{#previous}} and {{#next}} handlebars statements to the new syntax: Replace navigation helpers with objects rust-lang/mdBook#2794
  4. It updates github workflows to install the appropriate versions of mdbook related crates.

As part of this update, the theme/index.hbs had to be updated to work with some syntax changes made for mdbook 0.5. The style looked pretty off in my browser (no header nav, sidebar doesn't adjust width, content alignment at certain breakpoints is off), so I would appreciate someone double checking on this front. I'm not sure if this is akin to how pandocs need to be served differently than mdbook serve, or if something actually broke. Looking at the currently deployed docs, the reason for a custom theme is not immediately apparent to me.

Closes #134

This commit updates the various unpublished crates in the repo to be set
up according to the new requirements imposed by mdbook 0.5. In addition,
it updates the build and deploy workflow to account for these changes as
well.

As part of this update, the theme/index.hbs had to be updated to work
with some syntax changes made for mdbook 0.5. The style looked off in my
browser, so I would appreciate some double checking on this front.
@avivace avivace marked this pull request as draft March 30, 2026 12:37
@avivace avivace self-requested a review March 30, 2026 12:37
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.

Upgrade to mdbook 0.5.x

1 participant