Skip to content

Package a language selector #12

@mgeisler

Description

@mgeisler

Currently, you have to edit the mdbook theme directly to add a language selector. An example of this can be seen in Comprehensive Rust 🦀.

We should package this up in some way to make it easy for people to apply. This seems non-trivial because the templating system used in mdbook doesn't seem to make it easy to include new blocks of code without editing the main theme.

Some ideas:

  • Inject JavaScript into the pages and let this code build the menu client-side.
  • Write a tool which can modify the generated HTML to include the menu when mdbook build is called.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions