rust-lang / rust-lang/mdBook

Update documentation to include `print.md` and `print.html`

Open Beginner friendly
#3,088 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Problem

"
When the html pages are generated a file called print.html is also generated. When the user clicks on the printer icon mdbook will use this file to show the content that will be printed.

If the user creates a file called src/print.md and references it from the SUMMARY.md the rendering of HTML pages will fail with the following error message: print.md is reserved for internal use.
"

Mentioning both print.md and print.html in the documentation will allow users to search for them and will help the users to understand the behavior.

See also the discussion in #3047

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

Review the documentation and the discussion in #3047 for the existing explanation of generated print pages and reserved filenames. Update it to mention both print.md and print.html, including that print.md cannot be used as a source file; done when users can find and understand this behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.