about summary refs log tree commit diff
path: root/src/doc/rust.css
AgeCommit message (Collapse)AuthorLines
2024-03-18Fix heading anchors in doc pages.Eric Huss-0/+22
2024-03-06Add missing background color for top-level rust documentation page and ↵Guillaume Gomez-2/+2
increase contrast by setting text color to black
2023-11-13doc: add release notes to standalone doc bundleMichael Howell-0/+4
This is a workaround for #101714 on top of being a useful addition in its own right. It is intended to change the "canonical URL" for viewing the release notes from GitHub, which is relatively slow, to a pre-rendered HTML file that loads from the same CDN as the standard library docs. It also means you get a copy of the release notes when installing the rust-docs with rustup.
2021-06-29override rustdoc.css {webkit,moz} box-sizing:unsetDeadbeef-0/+3
2021-06-28Make every standalone doc use rustdoc.cssDeadbeef-0/+5
2021-06-27Use rustdoc.css for error indexDeadbeef-138/+6
2021-06-20Fix rust.css fonts.Eric Huss-10/+33
2021-03-10Fix "run" button position in error indexGuillaume Gomez-0/+1
2021-03-02Improve page load performance in rustdoc.Jacob Hoffman-Andrews-0/+6
Add font-display: swap. Per https://web.dev/font-display/, this prevents "flash of invisible text" during load by using a system font until the custom font is available. I've noticed this flash of invisible text occasionally when reading Rust docs. Add an explicit height to icons (which already had an explicit width) to allow browsers to lay out the page more accurately before the icons have been loaded. https://web.dev/optimize-cls/. Add min-width: 115px to the crate search dropdown. When the HTML first loads, this dropdown includes only the text "All crates." Later, JS loads the items underneath it, some of which are wider. That causes the dropdown to get wider, causing a distracting reflow. This sets a min-width based on the size that the dropdown eventually becomes based on the crates on doc.rust-lang.org, reducing page movement during load.
2019-03-24doc: use correct body font URLsNikhil Benesch-3/+3
The CSS for the docs homepage (docs.rust-lang.org) was using the wrong URL for the body font, resulting in the fallback serif font being used, instead of the desired Source Serif Pro fonts.
2018-12-28remove remaining copyright headersMatthias Krüger-12/+0
2018-01-09Fix error index displayGuillaume Gomez-223/+266
2016-12-04Avoid using locally installed Source Code Pro font (fixes #24355).Martin Pool-1/+3
In some versions of this font the ampersands are drawn badly.
2016-10-15rustdoc: Improve playground run buttonsOliver Middleton-3/+5
The main change is to stop using javascript to generate the URLs and use rustdoc instead. This also adds run buttons to the error index examples.
2016-09-17Browsers do not consistently handle non-integer values for font-size.Eitan Adler-1/+1
2016-05-17renamed last boolval to bool-valHendrik Sollich-1/+1
2015-10-25Update the playpen link for code in the rust book to agree with rustdoc's ↵mdinger-6/+9
new style
2015-07-25Move wrapper types blog post into trplManish Goregaokar-0/+4
2015-02-23Enforce a white background for the docsCorey Farwell-0/+1
Fixes #17929
2015-02-09Make fallback font 'serif', rather than 'sans-serif' fontsSean Collins-1/+1
2015-01-13Improve Rust Documentation & Reference on mobileKevin Yap-1/+3
- Tables that are too wide for the screen scroll horizontally. - Inline code that would force the page to become wider than the width of the screen is broken in the middle of the word.
2014-12-11Don't preserve line breaks in inline codeChris Wong-2/+1
Closes #19323.
2014-11-01doc: enable OpenType kerning and ligaturesAdrien Tétar-0/+4
2014-10-12Fix HTML version of the keyword table.NODA, Kai-1/+6
This should really fix rust-lang/rust#17528.
2014-10-07Fix keyword tableSteve Klabnik-0/+2
Markdown tables require a header, and we don't want one. Fixes #17528
2014-10-01Add a red-box warning to the macros guideKeegan McAllister-0/+5
2014-10-01rust.css: Make it more clear when code spans are linksKeegan McAllister-0/+4
2014-08-01Fix API docs css reversing elements that it shouldn'ttinaun-1/+2
remove unneeded `pre.rust a' selector move transform into `.test-arrow` fixes #16138
2014-07-08webfonts: serve Source Code Pro locallyAdrien Tétar-0/+6
So that we have freestanding docs.
2014-07-08webfonts: proper fixAdrien Tétar-7/+7
2014-07-04doc: reduce spacing of table of contents.Huon Wilson-1/+2
A margin for the top level list was leaking into nested ones.
2014-06-19doc: Fix margins around tables of contentsBrian Anderson-1/+1
There is no space between the TOC and the succeeding para.
2014-06-06rustdoc: Submit examples to play.rust-lang.orgAlex Crichton-0/+13
This grows a new option inside of rustdoc to add the ability to submit examples to an external website. If the `--markdown-playground-url` command line option or crate doc attribute `html_playground_url` is present, then examples will have a button on hover to submit the code to the playground specified. This commit enables submission of example code to play.rust-lang.org. The code submitted is that which is tested by rustdoc, not necessarily the exact code shown in the example. Closes #14654
2014-04-25rustdoc: bring it inlineAdrien Tétar-17/+4
2014-04-25doc,rustdoc: store webfonts locallyAdrien Tétar-5/+5
- Avoids cross-domain requests restrictions - Better availability of content - No HTML queries needed for an offline build
2014-04-25doc: slight design refreshAdrien Tétar-20/+33
2014-04-20doc: unifying with rustdocAdrien Tétar-18/+20
Conflicts: src/doc/rust.md
2014-04-19doc: add webfonts and tweak the styles accordinglyAdrien Tétar-22/+79
2014-03-09doc: CSS fixesAdrien Tétar-10/+24
- fixup and refactor highlighting code - have a proper print stylesheet
2014-03-09mk: rewrite the documentation handling.Huon Wilson-19/+12
This converts it to be very similar to crates.mk, with a single list of the documentation items creating all the necessary bits and pieces. Changes include: - rustdoc is used to render HTML & test standalone docs - documentation building now obeys NO_REBUILD=1 - testing standalone docs now obeys NO_REBUILD=1 - L10N is slightly less broken (in particular, it shares dependencies and code with the rest of the code) - PDFs can be built for all documentation items, not just tutorial and manual - removes the obsolete & unused extract-tests.py script - adjust the CSS for standalone docs to use the rustdoc syntax highlighting
2014-03-04rustdoc: tweak highlightingAdrien Tétar-12/+12
2014-02-07doc: add license information for gen. filesAdrien Tétar-1/+9
2014-02-02Move doc/ to src/doc/Alex Crichton-0/+290
We generate documentation into the doc/ directory, so we shouldn't be intermingling source files with generated files