summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2019-12-16Rollup merge of #67336 - GuillaumeGomez:fix-js-error, r=Dylan-DPCMazdak Farrokhzad-1/+1
Fix JS error when loading page with search For example when you load this page: https://doc.rust-lang.org/nightly/std/num/struct.NonZeroI8.html?search=foo, you get a nice JS error: ``` TypeError: ev is undefined ``` r? @kinnison
2019-12-15Fix JS error when loading page with searchGuillaume Gomez-1/+1
2019-12-12replace serialize with serde in rustdocAndy Russell-68/+121
2019-12-08Sort auto trait and blanket implementations displayGuillaume Gomez-6/+28
2019-12-05Auto merge of #66828 - GuillaumeGomez:less-minification, r=kinnisonbors-91/+14
Less minification The goal of this PR is to remove the minification process on the `search-index.js` file. It provides great result in term of space reduction but the computation time is far too long. I'll work on this issue and will put it back once it's fast enough. cc @nox @lqd r? @kinnison
2019-12-02Add missing backlineGuillaume Gomez-1/+1
2019-12-02minify theme.js as wellGuillaume Gomez-4/+3
2019-12-02Remove minification on search-index.js fileGuillaume Gomez-85/+9
2019-12-02Add missing checkGuillaume Gomez-1/+1
2019-11-30move UnstableFeatures -> rustc_featureMazdak Farrokhzad-1/+1
2019-11-25Rollup merge of #65613 - Mark-Simulacrum:rustdoc-preserve-ws, r=GuillaumeGomezPietro Albini-1/+1
Preserve whitespace inside one-backtick codeblocks Previously this was only done inside short docblocks (e.g., summary lines), but we should also do so in general. Fixes #65555
2019-11-23Rollup merge of #66657 - ollie27:rustdoc_flock_panic, r=GuillaumeGomezMazdak Farrokhzad-1/+2
rustdoc: Don't panic when failing to write .lock file It can be treated like any other unexpected IO error. I couldn't think of a good way to add a test for this unfortunately. r? @GuillaumeGomez
2019-11-23rustdoc: Don't panic when failing to write .lock fileOliver Middleton-1/+2
It can be treated like any other unexpected IO error.
2019-11-22Auto merge of #66565 - Mark-Simulacrum:syntax-cfg-mod, r=petrochenkovbors-2/+1
Move process_configure_mod to rustc_parse This removes the hack in favor of perhaps a less principled, but less painful, approach. This also supports my work to decouple `Session` from librustc, as `ParseSess` currently has `Attribute` as "part" of it but after this PR will no longer do so.
2019-11-21Revert "Update Source Code Pro and include italics"Guillaume Gomez-22/+9
This reverts commit ea9519bf16f0be137a814a49c9fbaf232ba49a43.
2019-11-20Delete ProcessCfgModMark Rousskov-2/+1
The previous commit removes the use of this, and now we cleanup.
2019-11-20Rollup merge of #66514 - GuillaumeGomez:fix-search-filter-save, r=kinnisonMazdak Farrokhzad-16/+13
Fix selected crate search filter Fixes #62929. r? @kinnison
2019-11-20Rollup merge of #66298 - Ppjet6:disable-search-field, r=GuillaumeGomezMazdak Farrokhzad-6/+15
rustdoc: fixes #64305: disable search field instead of hidding it The result seems to be ok but I wasn't entirely sure how to get there. I tried to stay generic a bit but maybe it's not required at all. @GuillaumeGomez Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-20Rollup merge of #65665 - tspiteri:italic-and-update-SourceCodePro, ↵Mazdak Farrokhzad-9/+22
r=GuillaumeGomez Update Source Code Pro and include italics Fixes #65502. A few notes: * As stated in #65502, this does increase the download size. * Since this PR changes the font set, I think docs.rs would have to be updated if this PR is merged. * The fonts have a double extension (.ttf.woff); this is to keep the names consistent with the upstream font release which does that to distinguish these from the .otf.woff files ([Source Code Pro otf renders poorly on older Windows system apps](https://github.com/adobe-fonts/source-code-pro/issues/25#issuecomment-9019600)).
2019-11-20Change background-color of search input if disabledGuillaume Gomez-0/+8
2019-11-20rustdoc: fixes #64305: disable search field instead of hidding itMaxime “pep” Buquet-6/+7
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-19Rollup merge of #66430 - dns2utf8:fix_code_selection_click_handler, ↵Mazdak Farrokhzad-24/+37
r=GuillaumeGomez [doc] Fix the source code highlighting on source comments The code would always forget the previous selection. r? @GuillaumeGomez
2019-11-18Auto merge of #54733 - GuillaumeGomez:stabilize-rustdoc-theme, ↵bors-11/+10
r=ollie27,Dylan-DPC Stabilize rustdoc theme options Closes #54730 This PR stabilizes the `--themes` (now `--theme`) and `--theme-checker` (now `--check-theme`) options, for allowing users to add custom themes to their documentation. Rustdoc includes two themes by default: `light` and `dark`. Using the `--theme` option, you can give rustdoc a CSS file to include as an extra theme for that render. Themes are named after the CSS file used, so using `--theme /path/to/your/custom-theme.css` will add a theme called `custom-theme` to the documentation. Even though the CLI flag to add a theme is getting stabilized, there's no guarantee that a theme file will always have the same effect on documentation generated with future versions of rustdoc. To aid in ensuring that a theme will work, the flag `--check-theme` is also available, which compares the CSS rules defined by a custom theme against the ones used in the `light` theme. If the `light` theme defines a CSS rule that the custom theme does not, rustdoc will report an error. (Rustdoc also performs this check for themes given to `--theme`, but only reports a warning when a difference is found.)
2019-11-18Apply review commentsGuillaume Gomez-8/+8
2019-11-18Rename rustdoc options --themes and --check-themes to --theme and --check-themeGuillaume Gomez-1/+1
2019-11-18rename check-theme option into check-themesGuillaume Gomez-6/+3
2019-11-18Improve documentation, add checks for themes option arguments, make sure the ↵Guillaume Gomez-1/+1
themes file names are js compatible
2019-11-18Rename theme-checker option to check-themeGuillaume Gomez-1/+1
2019-11-18Prevent invalid html characters in themes nameGuillaume Gomez-1/+3
2019-11-18Fix selected crate search filterGuillaume Gomez-16/+13
2019-11-18Auto merge of #66238 - ehuss:stabilize-rustdoc-edition, r=GuillaumeGomezbors-3/+1
rustdoc: Stabilize `edition` annotation. The rustdoc `edition` annotation is currently ignored on stable. This means that the tests will be ignored, unless there is a `rust` annotation, then it will use the global edition. I suspect this was just an oversight during the edition stabilization, but I don't know. Example: ```rust /// ```edition2018 /// // This code block was ignored on stable. /// ``` /// ```rust,edition2018 /// // This code block would use whatever edition is passed on the command line. /// ``` ``` AFAIK, it is not possible to write a test that verifies stable behavior, as all tests appear to set RUSTC_BOOTSTRAP which forces all tests to run as "nightly", even on a stable release. Closes #65980
2019-11-15Prevent jumps when selecting one or many linesStefan Schindler-0/+5
2019-11-15Fix the source code highlighting on source commentsStefan Schindler-24/+32
2019-11-15Code cleanup to remove douplacte var definitionStefan Schindler-3/+2
Also move the declaration outside the loop since they accumulate state with each iteration
2019-11-15Remove unused argumentStefan Schindler-1/+1
2019-11-10move syntax::parse -> librustc_parseMazdak Farrokhzad-2/+2
also move MACRO_ARGUMENTS -> librustc_parse
2019-11-10move config.rs to libsyntax_expandMazdak Farrokhzad-1/+2
2019-11-08rustdoc: Stabilize `edition` annotation.Eric Huss-3/+1
2019-11-08Rollup merge of #66123 - GuillaumeGomez:no-more-hidden-elements, r=Dylan-DPCYuki Okushi-15/+51
No more hidden elements Fixes #66046. Follow-up of #66082. r? @kinnison
2019-11-07Rollup merge of #65916 - Centril:split-syntax-3, r=davidtwcoMazdak Farrokhzad-1/+1
syntax: move stuff around Part of https://github.com/rust-lang/rust/pull/65324. r? @davidtwco cc @estebank @petrochenkov
2019-11-07Rollup merge of #64696 - GuillaumeGomez:rustdoc-sub-settings, r=kinnisonMazdak Farrokhzad-24/+127
[rustdoc] add sub settings This PR is to give a finer control over what types are automatically expanded or not as well as the possibility to add sub-settings in the settings page. ![Screenshot from 2019-09-23 00-46-14](https://user-images.githubusercontent.com/3050060/65395521-15aff300-dd9c-11e9-9437-429ca347d455.png) r? @Mark-Simulacrum
2019-11-07syntax::parser::token -> syntax::tokenMazdak Farrokhzad-1/+1
2019-11-07Only call onHashChange instead of both functionsGuillaume Gomez-3/+2
2019-11-07Remove old isHidden functionGuillaume Gomez-5/+1
2019-11-06When a URL hash refers to a hidden element, it makes the element visibleGuillaume Gomez-10/+51
2019-11-06Rollup merge of #65776 - nnethercote:rename-LocalInternedString-and-more, ↵Mazdak Farrokhzad-1/+1
r=estebank Rename `LocalInternedString` and more This PR renames `LocalInternedString` as `SymbolStr`, removes an unnecessary `impl` from it, improves comments, and cleans up some `SymbolStr` uses. r? @estebank
2019-11-06Rollup merge of #66068 - euclio:null-emitter, r=estebankMazdak Farrokhzad-2/+2
use silent emitter for rustdoc highlighting pass Partially addresses #63284.
2019-11-04clean highlightSourceLines codeGuillaume Gomez-42/+54
2019-11-04Change sub-setting CSS class to sub-settingsGuillaume Gomez-2/+2
2019-11-03use silent emitter for rustdoc highlighting passAndy Russell-2/+2