Skip to content

Commit

Permalink
Rollup merge of #82088 - Nicholas-Baron:shorten_html_render, r=Guilla…
Browse files Browse the repository at this point in the history
…umeGomez

Shorten html::render

The `mod.rs` for librustdoc's `html::render` was over 3,000 lines. This PR reduces it to around 2,300 by
1. Moving `Context` and associated `impl`s to a separate file
2. Moving the `print_item` function and its helpers to a separate file
3. Moving `write_shared` and `write_minify` to their own file

Related to issue #60302.
Edit 1: `SharedContext` and related `impl`s is only 72 lines and so will not be moved.
  • Loading branch information
GuillaumeGomez authored Mar 4, 2021
2 parents 95bbc7e + afb8220 commit 2f28361
Show file tree
Hide file tree
Showing 5 changed files with 2,711 additions and 2,644 deletions.
Loading

0 comments on commit 2f28361

Please sign in to comment.