about summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2019-11-03Auto merge of #65780 - GuillaumeGomez:move-help-popup-generation-code, ↵bors-57/+49
r=Mark-Simulacrum Move help popup generation code The first commit is just a small cleanup. The idea behind this PR is to reduce a bit more the generated HTML files by moving the duplicated code into one place instead. r? @kinnison
2019-10-29Rollup merge of #65741 - GuillaumeGomez:help-popup, r=Dylan-DPCTyler Mandry-3/+7
Prevent help popup to disappear when clicking on it Fixes #65736. r? @kinnison
2019-10-27rustc, rustc_passes: don't depend on syntax_expand.Mazdak Farrokhzad-2/+2
This is done by moving some data definitions to syntax::expand.
2019-10-27reduce size of generated HTML files by moving the popup helper code to the JSGuillaume Gomez-55/+47
2019-10-27Cleanup search element getterGuillaume Gomez-2/+2
2019-10-26Add more information on searchGuillaume Gomez-0/+8
2019-10-25Improve help popup detectionGuillaume Gomez-3/+4
2019-10-24Prevent help popup to disappear when clicking on itGuillaume Gomez-2/+5
2019-10-24Fix default "disable-shortcuts" feature valueGuillaume Gomez-1/+1
2019-10-21Add option to disable keyboard shortcuts in docsGuillaume Gomez-1/+3
2019-10-16move syntax::ext to new crate syntax_expandMazdak Farrokhzad-3/+3
2019-10-15syntax::parse::sess -> syntax::sessMazdak Farrokhzad-2/+2
2019-10-13ast: remove implicit pprust dependency via Display.Mazdak Farrokhzad-1/+2
Instead just use `pprust::path_to_string(..)` where needed. This has two benefits: a) The AST definition is now independent of printing it. (Therefore we get closer to extracting a data-crate.) b) Debugging should be easier as program flow is clearer.
2019-10-04Auto merge of #64994 - GuillaumeGomez:fix-rustdoc-display-js-disabled, ↵bors-0/+8
r=Mark-Simulacrum Fix rustdoc display with js disabled Fixes #64988. Currently, all sections are collapsed when the page is loading, and then is displayed once done. However, if js is disabled, they never get expanded. Therefore, they need to be shown by default. r? @Mark-Simulacrum
2019-10-02Rollup merge of #64948 - GuillaumeGomez:improve-sidebar-styling, ↵Mazdak Farrokhzad-4/+4
r=Mark-Simulacrum Improve sidebar styling to make its integration easier Part of https://github.com/rust-lang/docs.rs/issues/417 Setting the height was an error: forcing the element bottom to be at the bottom allows to change to top of the sidebar. r? @Mark-Simulacrum
2019-10-02Fix rustdoc display with js disabledGuillaume Gomez-0/+8
2019-10-01Improve sidebar styling to make its integration easierGuillaume Gomez-4/+4
2019-09-29rustdoc: Fix default logo filenameOliver Middleton-1/+1
2019-09-28rustc: rely on c_variadic == true instead of CVarArgs in HIR/Ty fn signatures.Eduard-Mihai Burtescu-4/+11
2019-09-23Remove needless `mut` in pathsMark Rousskov-1/+1
2019-09-23Remove unused argumentsMark Rousskov-14/+10
2019-09-23Utilize shared error codes rather than re-querying envMark Rousskov-1/+1
2019-09-23Remove pointless orMark Rousskov-2/+2
2019-09-23Remove needless Rc<RefCell<...>>Mark Rousskov-2/+2
2019-09-23Provide helper for synthesizing paths with resource suffixMark Rousskov-29/+40
2019-09-13Stylistic fix -- remove double implMark Rousskov-2/+0
2019-09-13Move cache into Context, avoid TLSMark Rousskov-29/+26
This doesn't move everything over as cache() is pretty annoying to remove fully, but it gets the ball rolling.
2019-09-13Move `Cache` generation to separate moduleMark Rousskov-654/+689
2019-09-13Move playground to shared contextMark Rousskov-35/+38
2019-09-13Move error codes to shared contextMark Rousskov-4/+4
2019-09-13Move edition field out of ContextMark Rousskov-8/+9
2019-09-13Replace SlashChecker with ensure_trailing_slashMark Rousskov-14/+12
2019-09-13Simplify render_spotlight_traitsMark Rousskov-6/+2
2019-09-13Move Toc printing from fmt::DisplayMark Rousskov-22/+17
2019-09-13Remove *Space wrappers in favor of direct impls or functionsMark Rousskov-109/+84
2019-09-13Unwrap Visibility fieldsMark Rousskov-9/+4
There's not really any reason to not have the visibility default to inherited, and this saves us the trouble of checking everywhere for whether we have a visibility or not.
2019-09-13Move to print functions on types instead of impl fmt::DisplayMark Rousskov-504/+543
This will eventually allow us to easily pass in more parameters to the functions without TLS or other such hacks
2019-09-10Auto merge of #60387 - Goirad:test-expansion, r=ollie27bors-32/+55
Allow cross-compiling doctests This PR allows doctest to receive a --runtool argument, as well as possibly many --runtool-arg arguments, which are then used to run cross compiled doctests. Also, functionality has been added to rustdoc to allow it to skip testing doctests on a per-target basis, in the same way that compiletest does it. For example, tagging the doctest with "ignore-sgx" disables testing on any targets that contain "sgx". A plain "ignore" still skips testing on all targets. See [here](https://github.com/rust-lang/cargo/pull/6892) for the companion PR in the cargo project that extends functionality in Cargo so that it passes the appropriate parameters to rustdoc when cross compiling and testing doctests. Part of [#6460](https://github.com/rust-lang/cargo/issues/6460)
2019-09-09Rollup merge of #64312 - GuillaumeGomez:rustdoc-better-esc-handling, ↵Mazdak Farrokhzad-18/+29
r=Mark-Simulacrum Unify escape usage Fixes #63443. I chose to keep the search text when pressing escape so when we focus on the search bar, we got the results again without needing to load them again. I also unified a bit a few things (maybe I should have done it in another commit, sorry...). r? @Mark-Simulacrum
2019-09-09Unify escape usageGuillaume Gomez-18/+29
2019-09-08Rollup merge of #64267 - ehuss:rustdoc-fix-mixed-code-block, r=GuillaumeGomezMazdak Farrokhzad-1/+4
rustdoc: fix diagnostic with mixed code block styles This fixes a relatively obscure issue where the diagnostic (emitted [here](https://github.com/rust-lang/rust/blame/ef54f57c5b9d894a38179d09b00610c1b337b086/src/librustdoc/passes/check_code_block_syntax.rs#L69)) would get confused since the "is_fenced" flag wasn't reset properly.
2019-09-08Auto merge of #64096 - GuillaumeGomez:theme-regex-fix, r=Mark-Simulacrumbors-1/+1
Fix regex replacement in theme detection Fixes #64061. This is sadly a lot of bad luck: after making the changes and re-build the docs, I just forgot to force reload the page. Hence having the old (working) version with two replacements instead of the failing regex. Sorry again about that... cc @fenhl r? @Mark-Simulacrum
2019-09-07Move to buffers throughout print_itemMark Rousskov-428/+375
2019-09-07Item to functionMark Rousskov-84/+79
2019-09-07AllTypes to functionMark Rousskov-32/+30
2019-09-07Settings to functionMark Rousskov-36/+19
2019-09-07Move Source to BufferMark Rousskov-14/+7
2019-09-07layout::render takes Print instead of fmt::DisplayMark Rousskov-11/+15
2019-09-07De-indent all fmt::Display impls for later replacement to functionsMark Rousskov-255/+255
2019-09-07Delete Sidebar struct in favor of FnOnce implMark Rousskov-8/+2