rust/src/librustdoc/html
bors 6b269e4432 Auto merge of #73767 - P1n3appl3:rustdoc-formats, r=tmandry
Refactor librustdoc html backend

This PR moves several types out of the librustdoc::html module so that they can be used by a future json backend. These changes are a re-implementation of [some work done 6 months ago](https://github.com/rust-lang/rust/compare/master...GuillaumeGomez:multiple-output-formats) by @GuillaumeGomez. I'm currently working on said json backend and will put up an RFC soon with the proposed implementation.

There are a couple of changes that are more substantial than relocating structs to a different module:
1. The `Cache` is no longer part of the `html::render::Context` type and therefor it needs to be explicitly passed to any functions that access it.
2. The driving function `html::render::run` has been rewritten to use the `FormatRenderer` trait which should allow different backends to re-use the driving code.

r? @GuillaumeGomez

cc @tmandry @betamos
2020-07-29 22:24:46 +00:00
..
highlight rustdoc: glue tokens before highlighting 2020-07-14 19:08:44 -04:00
markdown rustdoc: Rename internal API fns to into_string 2020-07-15 10:55:40 +00:00
render Pass by value 2020-07-29 16:48:22 -05:00
static ayu theme: Change doccomment color to #a1ac88 2020-07-28 05:12:12 +00:00
toc Format the world 2019-12-22 17:42:47 -05:00
escape.rs Format the world 2019-12-22 17:42:47 -05:00
format.rs Extract Cache and other types from html module 2020-07-27 16:00:38 -05:00
highlight.rs rustdoc: glue tokens before highlighting 2020-07-14 19:08:44 -04:00
layout.rs Clean up handling of style files in rustdoc 2020-07-12 14:37:22 -04:00
markdown.rs Rollup merge of #74359 - lzutao:rustdoc-tostring, r=GuillaumeGomez 2020-07-16 11:18:53 -07:00
mod.rs Extract Cache and other types from html module 2020-07-27 16:00:38 -05:00
sources.rs Move Error and RenderInfo out of html module 2020-07-27 16:00:38 -05:00
static_files.rs Add Ayu theme to rustdoc 2020-07-12 14:48:13 -04:00
toc.rs fix rustdoc warnings 2020-05-02 10:41:04 +02:00