summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2017-04-22Fix line displayGuillaume Gomez-8/+4
2017-04-22Fix testsGuillaume Gomez-4/+5
2017-04-22Re-enable hoedown by defaultGuillaume Gomez-56/+323
2017-04-20Fix line display for hoedownGuillaume Gomez-3/+7
2017-04-17Rollup merge of #41290 - GuillaumeGomez:put-back-hoedown, r=steveklabnikCorey Farwell-0/+191
Hoedown big comeback! ```bash > cargo +local test Compiling libc v0.2.20 Compiling sysinfo v0.3.4 (file:///Users/imperio/rust/sysinfo) Finished dev [unoptimized + debuginfo] target(s) in 3.2 secs Running target/debug/deps/disk_list-dbd70897f1f7e080 running 1 test test test_disks ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured Running target/debug/deps/sysinfo-8ad11103abdf5941 running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured Doc-tests sysinfo WARNING: src/sysinfo.rs - (line 45) test will be run in the next rustdoc version. If it's not supposed to, please update your documentation and make it compliant to common mark specifications. WARNING: src/sysinfo.rs - (line 48) test will be run in the next rustdoc version. If it's not supposed to, please update your documentation and make it compliant to common mark specifications. running 1 test test src/sysinfo.rs - (line 14) ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured ``` r? @rust-lang/docs
2017-04-17Rollup merge of #41280 - QuietMisdreavus:rustdoc-toc, r=GuillaumeGomezCorey Farwell-3/+221
rustdoc: add a list of headings to the sidebar It's another misdreavus rustdoc PR, which means it's time for Bikeshed City once again! `:3` In an effort to aid navigation in long documentation pages, this PR adds a listing of headings to the sidebars of pages where such headings exist. For example, for structs, links to their fields, inherent methods, and trait implementations are available where applicable. Examples: * Modules/Crate roots ![image](https://cloud.githubusercontent.com/assets/5217170/25019930/1000fa3a-2052-11e7-98ff-ddf5af18b3e6.png) * Enums ![image](https://cloud.githubusercontent.com/assets/5217170/25019954/33497f9e-2052-11e7-88cf-df46f1b3b8a3.png) * Primitives ![image](https://cloud.githubusercontent.com/assets/5217170/25019978/4820bbc6-2052-11e7-8b5a-96a864eb2a5b.png) * Traits ![image](https://cloud.githubusercontent.com/assets/5217170/25020093/bd1bc9f2-2052-11e7-9cd1-00a0ad8007bc.png) * Structs ![image](https://cloud.githubusercontent.com/assets/5217170/25020145/d75206b0-2052-11e7-88cc-9e9525084775.png) Open questions: * Right now, these kinds of pages (and also unions) are the only pages that will receive the name header - pages for functions, constants, macros, etc, won't have the corresponding name in their sidebar. Should I print the name regardless and only add table-of-contents links for pages that have them? This would make them match, for example, a struct with no public fields, no methods, and no trait implementations. The latter would still have a "Struct MyStruct" line above the module contents, with no header links to speak of, whereas a function wouldn't even have "Function my\_function". * This is only a header listing, but there has been requests to include a more-complete listing of fields/methods/traits/etc, for example in #41123.
2017-04-17Hoedown big comeback!Guillaume Gomez-0/+191
2017-04-17rustdoc: add a list of headings to the sidebarQuietMisdreavus-3/+221
2017-04-14Rollup merge of #41249 - GuillaumeGomez:rustdoc-render, r=steveklabnik,frewsxcvCorey Farwell-41/+74
Fix invalid associated type rendering in rustdoc Fixes #41036. r? @rust-lang/docs
2017-04-12Fix invalid associated type rendering in rustdocGuillaume Gomez-41/+74
2017-04-11Rollup merge of #41173 - GuillaumeGomez:fix-rustdoc-code-block-parsing, ↵Corey Farwell-9/+17
r=steveklabnik Fix block code headers parsing Fixes #41167. r? @rust-lang/docs
2017-04-11Remove strings fulfilled with whitespaces in code block headersGuillaume Gomez-6/+7
2017-04-09Fix block code headers parsingGuillaume Gomez-8/+15
2017-04-09merge with master to pick up pulldown switchQuietMisdreavus-492/+542
2017-04-07Rollup merge of #41131 - euclio:collapse-animation, r=GuillaumeGomezCorey Farwell-4/+11
rustdoc: collapse docblock before showing label The animation for collapsing descriptions is currently pretty jarring, as the label starts fading in as the description is collapsing. This causes the description to jump down a line (and sometimes change indentation) while animating. This PR modifies this behavior to collapse the block entirely before starting to fade in the collapse button label. While this PR works well for descriptions of structs, traits, etc., it still does not look ideal for attributes. I'd appreciate any suggestions for improving that animation. Perhaps we want to optimize for the single-attribute case, and try not to collapse the attribute list entirely before fading in the label?
2017-04-06rustdoc: collapse docblock before showing labelAndy Russell-4/+11
2017-04-06rustdoc: move the space at the end of where clausesQuietMisdreavus-3/+11
...so that we don't indent the next line by one extra space
2017-04-06rustdoc: where clause adjustment to fix testsQuietMisdreavus-6/+9
- add spaces to output so stripping lines and breaking spaces renders the same - add commas to where clauses in rustdoc tests to match the new output
2017-04-06rustdoc: Use pulldown-cmark for Markdown HTML renderingOliver Middleton-468/+272
Instead of rendering all of the HTML in rustdoc this relies on pulldown-cmark's `push_html` to do most of the work. A few iterator adapters are used to make rustdoc specific modifications to the output. This also fixes MarkdownHtml and link titles in plain_summary_line.
2017-04-05style: space between struct name and opening braceQuietMisdreavus-2/+2
2017-04-04rustdoc: don't add a space before `{` on traits with where clausesQuietMisdreavus-3/+8
cc #41025
2017-04-04rustdoc: properly indent fn signatures in traitsQuietMisdreavus-30/+48
2017-04-04Handle ordered lists as wellGuillaume Gomez-4/+12
2017-04-02Auto merge of #40919 - GuillaumeGomez:fix-new-rustdoc, r=frewsxcv,steveklabnikbors-30/+159
Add support for image, rules and footnotes Part of #40912. r? @rust-lang/docs PS: the footnotes are waiting for https://github.com/google/pulldown-cmark/pull/21 to be merged to be fully working.
2017-04-01Force footnote references to be sorted by idGuillaume Gomez-4/+6
2017-03-31rustdoc: fix alignment of fn arguments when on multiple linesQuietMisdreavus-1/+1
2017-03-31rustdoc: format where clauses like rust-lang-nursery/fmt-rfcs#38QuietMisdreavus-81/+55
2017-03-31Fix hard break issueGuillaume Gomez-2/+34
2017-03-31Rollup merge of #40888 - wesleywiser:rustdoc_src_sidebar, r=GuillaumeGomezCorey Farwell-5/+9
Make the rustdoc sidebar white on `src` pages Fixes #40724
2017-03-30Fix multiple footnotes and improve testingGuillaume Gomez-21/+33
2017-03-29Add support for image, rules and footnotesGuillaume Gomez-28/+111
2017-03-29Auto merge of #40338 - GuillaumeGomez:pulldown-switch, r=frewsxcv,steveklabnikbors-454/+510
Replace hoedown with pull in rustdoc cc @rust-lang/docs
2017-03-28Make the rustdoc sidebar white on `src` pagesWesley Wiser-5/+9
Fixes #40724
2017-03-28rustdoc: format fns like format rfc 39QuietMisdreavus-20/+16
2017-03-28Improve function namingGuillaume Gomez-23/+22
2017-03-28Fix id generationGuillaume Gomez-47/+51
2017-03-28Fix plain_summary_line functionGuillaume Gomez-33/+51
2017-03-28Handle html in markdown as wellGuillaume Gomez-0/+3
2017-03-28Remove unneeded commentGuillaume Gomez-6/+0
2017-03-28Add a macro to improve codeGuillaume Gomez-117/+39
2017-03-28Add missing markdown tagsGuillaume Gomez-147/+247
2017-03-28End of pulldown switch and remove completely hoedownGuillaume Gomez-454/+215
2017-03-28Remains to fix tablesGuillaume Gomez-20/+74
2017-03-28Replace hoedown with pull in rustdocGuillaume Gomez-107/+308
2017-03-27Fix various useless derefs and slicingsOliver Schneider-2/+2
2017-03-24Rollup merge of #40567 - clarcharr:rustdoc-sort, r=frewsxcvCorey Farwell-1/+49
Fix for #39596: sort Trait2 before Trait10. This is a change discussed in #39596. Essentially, item names will be sorted as if they're (&str, u64) pairs instead of just `&str`, meaning that `"Apple" < "Banana"` and also `"Fruit10" > "Fruit2"`. Sample sorting: 1. Apple 2. Banana 3. Fruit 4. Fruit0 5. Fruit00 6. Fruit1 7. Fruit01 8. Fruit2 9. Fruit02 10. Fruit20 11. Fruit100 12. Pear Examples of generated documentation: https://docs.charr.xyz/before-doc/test_sorting/ https://docs.charr.xyz/after-doc/test_sorting/ Screenshots of generated documentation: Before: http://imgur.com/Ktb10ti After: http://imgur.com/CZJjqIN
2017-03-23Fix for #39596: sort Trait1 before Trait2.Clar Charr-1/+49
2017-03-22Rollup merge of #40725 - Cldfire:master, r=estebankCorey Farwell-8/+0
Remove duplicated styling in main.css If nothing else, it saves a bit of data.
2017-03-21Remove duplicate style classesCldfire-8/+0
2017-03-21Add whitespace around "=" in assoc itemsGuillaume Gomez-3/+3