rust-lang / rust-lang/mdBook

Selecting a preprocessor with `build`

Open
#2,849 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-question
Dominant language
Rust
Stars
22.2k
Forks
1.9k
PR merge metrics
PR metrics pending

Description

Question

I have two different preprocessors defined, but in my CI/CD pipeline, I would like to build just the HTML or the PDF, depending on the workflow. Is that possible? If not, wouldn't it be a valuable option for the build command?

Version

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining mdBook's build command and how multiple preprocessors are configured. Determine whether the command can select HTML or PDF output for separate CI/CD workflows; done means the supported behavior or limitation is clear and, if feasible, covered by user-facing documentation and tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.