summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
2018-12-16backport #56844QuietMisdreavus-1/+1
2018-12-14Fix line numbers displayGuillaume Gomez-2/+2
2018-12-04Auto merge of #55707 - GuillaumeGomez:file-sidebar, r=QuietMisdreavusbors-57/+308
Add source file sidebar This is just a start currently but that gives a good overview of what it'll look like: <img width="1440" alt="screenshot 2018-11-06 at 01 39 15" src="https://user-images.githubusercontent.com/3050060/48035592-05336180-e165-11e8-82e1-5ead0c345eb9.png"> r? @QuietMisdreavus
2018-12-03Rollup merge of #56416 - GuillaumeGomez:css-body, r=QuietMisdreavuskennytm-2/+2
Remove unneeded body class selector r? @QuietMisdreavus
2018-12-01Remove unneeded body class selectorGuillaume Gomez-2/+2
2018-11-28rustdoc: add margin-bottom spacing to nested listsLyndon Brown-1/+1
set to zero meant that the nested list was squished up against subsequent list items/paragraphs this changes the bottom margin to .6em, same as for paragraphs an example demonstrating the difference with screenshots is given in the pull request
2018-11-24Don't show file sidebar by defaultGuillaume Gomez-6/+6
2018-11-24Source sidebar improvementsGuillaume Gomez-20/+31
2018-11-24Add source file sidebarGuillaume Gomez-57/+297
2018-11-15Rollup merge of #55926 - cynecx:fix-rustdoc-mobile-css, r=GuillaumeGomezPietro Albini-1/+1
Change sidebar selector to fix compatibility with docs.rs Fix for #55883.
2018-11-13Change sidebar selector to fix compatibility with docs.rscynecx-1/+1
2018-11-13Rollup merge of #55858 - GuillaumeGomez:fixes-rustdoc-codeblocks, ↵kennytm-4/+9
r=QuietMisdreavus Small fixes on code blocks in rustdoc It currently has a little margin issue with the `i` and there were js errors. r? @QuietMisdreavus
2018-11-10Small fixes on code blocks in rustdocGuillaume Gomez-4/+9
2018-11-07Remove intermediate font specsJon Gjengset-5/+5
This is a (much) more constrained version of #54772 that also aims at improving the situation in #34681. It removes any font specifications that are not the "official" rustdoc font, and instead relies on the browser to provide the fallback font if the official on is not available. On Linux systems, this is particularly important, as fonts like Helvetica, Arial, and Times often look pretty bad since they're pulled from extracted MS fonts. A specification like `serif` or `sans-serif` lets the browser instead choose a good font.
2018-11-03Rollup merge of #54162 - GuillaumeGomez:hide-default-impls-items, ↵Guillaume Gomez-16/+75
r=QuietMisdreavus Hide default impls items Follow up of #51885. Fixes #54025. cc @Mark-Simulacrum r? @QuietMisdreavus And screenshots of course: <img width="1440" alt="screen shot 2018-09-12 at 23 30 35" src="https://user-images.githubusercontent.com/3050060/45454424-1ff8d500-b6e4-11e8-9257-030322495d58.png"> <img width="1440" alt="screen shot 2018-09-12 at 23 30 42" src="https://user-images.githubusercontent.com/3050060/45454431-2424f280-b6e4-11e8-8d65-db0d85ac18f0.png">
2018-10-30Fix invalid "expand description" displayGuillaume Gomez-8/+9
2018-10-29Fix source code pages in rustdocGuillaume Gomez-2/+5
2018-10-29Rollup merge of #55440 - xfix:patch-11, r=GuillaumeGomezPietro Albini-5/+0
Remove unreachable code in hasClass function in Rustdoc
2018-10-28Remove unreachable code in hasClass function in RustdocKonrad Borowski-5/+0
2018-10-27Fix sub-variant doc displayGuillaume Gomez-8/+31
2018-10-26Rollup merge of #54921 - GuillaumeGomez:line-numbers, r=QuietMisdreavuskennytm-9/+59
Add line numbers option to rustdoc Fixes #22878. r? @QuietMisdreavus
2018-10-22Fix multiple errorsGuillaume Gomez-4/+14
2018-10-21improve search tabs lookGuillaume Gomez-23/+14
2018-10-21Fix script to avoid displaying unnecessary itemsGuillaume Gomez-4/+8
2018-10-21Hide items if they use default docsGuillaume Gomez-4/+47
2018-10-21Improve stability messages display a bitGuillaume Gomez-12/+14
2018-10-16Move usableLocalStorage() above functions that make use of itRoy Wellington Ⅳ-15/+15
2018-10-15Extract localStorage tests out into a helper method; use in getCurrentValue()Roy Wellington Ⅳ-8/+20
1. Extract the tests for whether or not we have workable localStorage out into a helper method, so it can be more easily reused 2. Use it in getCurrentValue() too, for the same reasons, as suggested in code review
2018-10-14Detect if access to localStorage is forbidden by the user's browserRoy Wellington Ⅳ-0/+6
If the user's cookie/persistent storage setting forbid access to localStorage, catch the exception and abort the access. Currently, attempting to use the expand/contract links at the top of the page for structs/consts/etc. fails due to an unhandled error while accessing localStorage, if such access is forbidden, as the exception from the failed access propagates all the way out, interrupting the expand/contract. Instead, I would like to degrade gracefully; the access won't happen (the collapse/expand state won't get persisted) but the actual expanding/contracting of the item will go on to succeed. Fixes #55079
2018-10-11Fix mobile doc displayGuillaume Gomez-13/+24
2018-10-09Add line numbers option to rustdocGuillaume Gomez-9/+59
2018-10-04rustdoc: overflow:auto doesn't work nicely on small screensKazuyoshi Kato-1/+0
This property was introduced by 3f92ff34b5, but looks it doesn't overwrap even without the property. Fixes #54672.
2018-09-29Rollup merge of #54577 - QuietMisdreavus:docs-for-procs, r=GuillaumeGomezkennytm-1/+12
rustdoc: give proc-macros their own pages related to https://github.com/rust-lang/rust/issues/49553 but i don't think it'll fix it Currently, rustdoc doesn't expose proc-macros all that well. In the source crate, only their definition function is exposed, but when re-exported, they're treated as a macro! This is an awkward situation in all accounts. This PR checks functions to see whether they have any of `#[proc_macro]`, `#[proc_macro_attribute]`, or `#[proc_macro_derive]`, and exposes them as macros instead. In addition, attributes and derives are exposed differently than other macros, getting their own item-type, CSS class, and module heading. ![image](https://user-images.githubusercontent.com/5217170/46044803-6df8da00-c0e1-11e8-8c3b-25d2c3beb55c.png) Function-like proc-macros are lumped in with `macro_rules!` macros, but they get a different declaration block (i'm open to tweaking this, it's just what i thought of given how function-proc-macros operate): ![image](https://user-images.githubusercontent.com/5217170/46044828-84069a80-c0e1-11e8-9cc4-127e5477c395.png) Proc-macro attributes and derives get their own pages, with a representative declaration block. Derive macros also show off their helper attributes: ![image](https://user-images.githubusercontent.com/5217170/46094583-ef9f4500-c17f-11e8-8f71-fa0a7895c9f6.png) ![image](https://user-images.githubusercontent.com/5217170/46101529-cab3cd80-c191-11e8-857a-946897750da1.png) There's one wrinkle which this PR doesn't address, which is why i didn't mark this as fixing the linked issue. Currently, proc-macros don't expose their attributes or source span across crates, so while rustdoc knows they exist, that's about all the information it gets. This leads to an "inlined" macro that has absolutely no docs on it, and no `[src]` link to show you where it was declared. The way i got around it was to keep proc-macro re-export disabled, since we do get enough information across crates to properly link to the source page: ![image](https://user-images.githubusercontent.com/5217170/46045074-2cb4fa00-c0e2-11e8-81bc-33a8205fbd03.png) Until we can get a proc-macro's docs (and ideally also its source span) across crates, i believe this is the best way forward.
2018-09-25Rollup merge of #54539 - GuillaumeGomez:fix-js-error, r=QuietMisdreavusPietro Albini-2/+5
Fix js error r? @QuietMisdreavus
2018-09-25handle proc-macros as macros instead of functionsQuietMisdreavus-1/+12
2018-09-24Fix JS errorGuillaume Gomez-2/+5
2018-09-19Reduce code block sides paddingGuillaume Gomez-1/+1
2018-09-14Auto merge of #52962 - GuillaumeGomez:few-things, r=QuietMisdreavusbors-9/+34
Fix trait item doc setting, add new setting, start hiding elements by default and then showing them up r? @QuietMisdreavus
2018-09-12Auto merge of #53409 - GuillaumeGomez:associated-const-value, r=QuietMisdreavusbors-4/+11
Don't show associated const value anymore Part of #44348. Before: <img width="1440" alt="screen shot 2018-08-16 at 00 48 30" src="https://user-images.githubusercontent.com/3050060/44177414-20ef1480-a0ee-11e8-80d4-7caf082cf0de.png"> After: <img width="1440" alt="screen shot 2018-08-16 at 00 48 23" src="https://user-images.githubusercontent.com/3050060/44177417-251b3200-a0ee-11e8-956a-4229275e3342.png"> cc @nox r? @QuietMisdreavus
2018-09-06Fix implementors generation as wellGuillaume Gomez-3/+6
2018-09-06Fix hover on implsGuillaume Gomez-9/+15
2018-09-05Apply method docs collapse to all impl-items sectionsGuillaume Gomez-1/+3
2018-08-30Rollup merge of #53806 - GuillaumeGomez:fix-ui-issues-foreign-type-impls, ↵Pietro Albini-0/+11
r=QuietMisdreavus Fix UI issues on Implementations on Foreign types Fixes #53800. <img width="1440" alt="screen shot 2018-08-29 at 22 06 35" src="https://user-images.githubusercontent.com/3050060/44814733-e9986180-abdd-11e8-97e0-0e3c1816ca04.png"> r? @QuietMisdreavus
2018-08-29Fix UI issues on Implementations on Foreign typesGuillaume Gomez-0/+11
2018-08-27Fix invalid display of unstable messagesGuillaume Gomez-0/+5
2018-08-27Fix source automatic scrollGuillaume Gomez-0/+1
2018-08-26Rollup merge of #53706 - ehuss:rustdoc-section-anchor, r=GuillaumeGomezGuillaume Gomez-3/+2
rustdoc: Fix gap on section anchor symbol when hovering. Fixes #49485 for section headings.
2018-08-26Rollup merge of #53626 - kzys:hashchange, r=GuillaumeGomezGuillaume Gomez-16/+36
Automatically expand a section even after page load Fixes #52774
2018-08-26Rollup merge of #53043 - GuillaumeGomez:improve-unstable-msg-display, ↵Guillaume Gomez-0/+13
r=QuietMisdreavus Improve unstable message display Fixes #51387. Reopening of #51563. New display: <img width="1440" alt="screen shot 2018-08-04 at 00 01 39" src="https://user-images.githubusercontent.com/3050060/43667793-dc14f708-9779-11e8-9808-f3ff126fc213.png"> r? @QuietMisdreavus
2018-08-25rustdoc: Fix gap on section anchor symbol when hovering.Eric Huss-3/+2
Fixes #49485 for section headings.