about summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2018-01-25Auto merge of #47686 - GuillaumeGomez:theme-fixes, r=QuietMisdreavusbors-23/+47
Few fixes for multiple themes support feature r? @QuietMisdreavus Fixes #47695.
2018-01-24Fix experimental text display on default themeGuillaume Gomez-0/+4
2018-01-24Few fixes for multiple themes support featureGuillaume Gomez-23/+47
2018-01-23Auto merge of #47678 - kennytm:rollup, r=kennytmbors-3/+4
Rollup of 14 pull requests - Successful merges: #47423, #47425, #47440, #47541, #47549, #47554, #47558, #47610, #47635, #47655, #47661, #47662, #47667, #47672 - Failed merges:
2018-01-23Rollup merge of #47672 - ollie27:rustdoc_auto_traits, r=GuillaumeGomezkennytm-1/+2
rustdoc: Show when traits are auto traits
2018-01-23Auto merge of #47620 - GuillaumeGomez:multiple-themes, r=QuietMisdreavusbors-11/+586
Multiple themes for rustdoc r? @QuietMisdreavus
2018-01-23rustdoc: Hide methods from #[doc(masked)] crates from the search indexOliver Middleton-25/+27
2018-01-23rustdoc: Show when traits are auto traitsOliver Middleton-1/+2
2018-01-23Fasten even more theme switchGuillaume Gomez-12/+15
2018-01-22don't process code blocks when scanning for linksQuietMisdreavus-2/+1
2018-01-22Fasten up theme loadingGuillaume Gomez-25/+49
2018-01-22Fix quoted searchGuillaume Gomez-2/+2
2018-01-22Change theme iconGuillaume Gomez-1/+6
2018-01-22tweak colors on dark themeQuietMisdreavus-26/+27
2018-01-22Temporary fix missing escape_href in hoedown_link by copying pulldown's codeManish Goregaokar-1/+53
2018-01-22Resolve foreign macrosManish Goregaokar-1/+2
2018-01-22Fix unit testsManish Goregaokar-3/+3
2018-01-22Use correct item for links in modulesManish Goregaokar-2/+2
2018-01-22Don't return early and discard the link in hoedown modeManish Goregaokar-1/+1
2018-01-22add intra-links support to hoedownQuietMisdreavus-8/+66
2018-01-22cleanupQuietMisdreavus-6/+26
2018-01-22Add LinkReplacer pass for pulldownManish Goregaokar-13/+47
2018-01-22resolve paths when cleaning docsQuietMisdreavus-0/+3
2018-01-22give render_text a generic return typeQuietMisdreavus-1/+1
2018-01-22new function to pull the links from a chunk of markdownQuietMisdreavus-167/+250
2018-01-21Add themes optionGuillaume Gomez-11/+24
2018-01-21Add possibility to have multiple themesGuillaume Gomez-8/+537
2018-01-20Rollup merge of #46938 - hellow554:rustdoc-kbd-style, r=GuillaumeGomezGuillaume Gomez-19/+30
add kbd style tag to main.css in rustdoc Added css style for kbd tags so they actually look like keys. Result preview and discussion was going on in #46900 .
2018-01-18converted space to tab in css filesMarcel Hellwig-9/+8
2018-01-17Rollup merge of #47313 - ollie27:rustdoc_record_extern_trait, r=QuietMisdreavusGuillaume Gomez-3/+2
rustdoc: Populate external_traits with traits only seen in impls This means default methods can always be found and "Important traits" will include all spotlight traits.
2018-01-17Rollup merge of #47250 - GuillaumeGomez:test-rustdoc-js, r=Mark-SimulacrumGuillaume Gomez-43/+39
Test rustdoc js Add tests for the rustdoc search. It was heavily required because of all the recent breaking changes that happened while I went through improvements in doc search (add search in/for generic search for example).
2018-01-15Reexport -> re-export in prose and documentation commentsCarol (Nichols || Goulding)-4/+4
2018-01-15Reexport -> re-export in documentation section headingsCarol (Nichols || Goulding)-3/+3
2018-01-15extended dt with kbd tagsMarcel Hellwig-23/+15
removed styling of dt tages, which would make them look like keys and added <kbd> tag inside of dt tag. Added css style for kbd and removed some stylings for dt
2018-01-14Auto merge of #47274 - Manishearth:rustdoc-span, r=QuietMisdreavusbors-2/+2
Use correct line offsets for doctests Not yet tested. This doesn't handle char positions. It could if I collected a map of char offsets and lines, but this is a bit more work and requires hooking into the parser much more (unsure if it's possible). r? @QuietMisdreavus (fixes #45868)
2018-01-13Remove `impl Foo for ..` in favor of `auto trait Foo`leonardo.yvens-14/+3
No longer parse it. Remove AutoTrait variant from AST and HIR. Remove backwards compatibility lint. Remove coherence checks, they make no sense for the new syntax. Remove from rustdoc.
2018-01-12Prepare main.js for testsGuillaume Gomez-43/+39
2018-01-10Use the new fs_read_write functions in rustc internalsMatt Brubeck-15/+5
2018-01-10rustdoc: Populate external_traits with traits only seen in implsOliver Middleton-3/+2
This means default methods can always be found and "Important traits" will include all spotlight traits.
2018-01-10Use correct line offsets for doctests (fixes #45868)Manish Goregaokar-2/+2
2018-01-07Auto merge of #47039 - ollie27:rustdoc_trait_impl_src, r=GuillaumeGomezbors-60/+30
rustdoc: Add missing src links for generic impls on trait pages `implementor2item` would return `None` for generic impls so instead this clones the entire `clean::Item` into the `implementors` map which simplifies some code.
2018-01-06Auto merge of #47083 - CAD97:issue-46976, r=nikomatsakisbors-1/+5
Issue 46976 ICE is due to an empty path segments, so I set the path to be the same as the in band ty params symbol. (I think this is how regular generics end up being handled?) Pinging @cramertj, this is your code I'm editing here.
2018-01-05Fix search bar defocusGuillaume Gomez-0/+4
2018-01-02Indentation fixJohannes Boczek-2/+2
Fixed intentaion (tabs -> spaces) Added trailing newline
2018-01-02Defocus search bar in rustdoc pagesJohannes Boczek-0/+6
Escape now removes focus from the search bar
2017-12-30Hard break for rust-lang/rust#46976Christopher Durham-1/+5
2017-12-29Auto merge of #46883 - QuietMisdreavus:faildown, r=GuillaumeGomezbors-1/+7
rustdoc: add option to abort the process on markdown differences In the efforts of keeping the std docs free of markdown warnings, this PR adds a stopgap measure to make sure the CI fails if it detects a markdown difference. It does this by adding a new unstable flag to rustdoc, `--deny-render-differences`, which bootstrap then passes to rustdoc when documenting std and friends. The implementation is... probably not the cleanest option. It currently adds an extra branch after it prints the markdown warnings, which just prints a final line and calls `::std::process::abort(1)`. I did it like this because if it just panics regularly, it looks like an ICE, an even though `html::render::run` returns a Result, that Result is also just `expect`ed immediately, generating the same problem. This way bypasses the panic handler at the top of the thread and looks like a proper failure. Since i don't have a real error Handler there, this is the best i can do without pulling in a real error system for rustdoc. This PR is blocked on https://github.com/rust-lang/rust/pull/46853, which will fix the rendering differences that were present on master when i started this branch.
2017-12-28rustdoc: Don't try to generate links for modules in import pathsOliver Middleton-24/+2
The modules may be private or may even be enums so it would generate dead links.
2017-12-27rustdoc: Add missing src links for generic impls on trait pagesOliver Middleton-60/+30
`implementor2item` would return `None` for generic impls so instead this clones the entire `clean::Item` into the `implementors` map which simplifies some code.
2017-12-27rustdoc: add option to abort process on markdown differencesQuietMisdreavus-1/+7