about summary refs log tree commit diff
path: root/src/librustdoc/html/static_files.rs
AgeCommit message (Collapse)AuthorLines
2021-10-08Move template initialization into its own file.Jacob Hoffman-Andrews-3/+0
2021-10-08Add template for print_itemJacob Hoffman-Andrews-0/+1
Add print_item.html and the code in print_item.rs to use it.
2021-08-03Simplify usage of CSS background-imageGuillaume Gomez-4/+6
2021-08-03Rustdoc accessibility: use an icon for the [-]/[+] controlsMichael Howell-0/+4
This way, we can show the plus and minus buttons on screens, while voice control will read off actual words "Collapse" and "Expand" instead of reading "open brace minus close brace" and "open brace plus close brace". Part of #87059
2021-07-07Clean up rustdoc static filesGuillaume Gomez-41/+42
2021-06-22Rollup merge of #86402 - tspiteri:source-woff2, r=jshaYuki Okushi-0/+24
rustdoc: add optional woff2 versions of Source Serif and Source Code This provides woff2 versions of Source Serif and Source Code similar to how #82545 provides woff2 versions of Fira Sans. The total byte count for the six files (three for each font family) is reduced by 25% from 476 KiB to 358 KiB.
2021-06-20Use Tera templates for rustdoc.Jacob Hoffman-Andrews-0/+2
Replaces a format!() call in layout::render with a template expansion. Introduces a `templates` field in SharedContext so parts of rustdoc can share pre-rendered templates. This currently builds in a copy of the single template available, like with static files. However, future work can make this live-loadable with a perma-unstable flag, to make rustdoc developers' work easier.
2021-06-17rustdoc: add optional woff2 versions of Source Serif and Source CodeTrevor Spiteri-0/+24
2021-05-31Remove unneeded file to load sidebar items at crate levelGuillaume Gomez-3/+0
2021-05-26Rollup merge of #84048 - konan8205:master, r=jshaYuki Okushi-0/+11
Avoid CJK legacy fonts in Windows As metioned in #84035, the default serif CJK font in Windows is meh-looking. To avoid this, we should use sans-serif font or provide CJK glyph supported font in `rustdoc.css`.
2021-05-15Call `initSidebarItems` in root module of crateJustus K-0/+3
2021-05-15chore: format codeShinwoo Park-3/+6
2021-05-15rustdoc: update static filesShinwoo Park-0/+8
2021-05-10Use an SVG image for clipboard instead of unicode characterGuillaume Gomez-0/+3
2021-04-14Update comment on search.js static file.Jacob Hoffman-Andrews-2/+1
2021-04-12Move search JS into search-index.jsJacob Hoffman-Andrews-0/+4
Export a few variables and functions into the global scope because they are needed both by main.js and search-index.js.
2021-04-05Update Source Serif to release 4.004Trevor Spiteri-11/+10
Now the family name is Source Serif 4 (upstream issue 77) instead of Source Serif Pro.
2021-03-07Update Source Code Pro and include italicsTrevor Spiteri-4/+8
2021-02-26Embed woff2 files in rustdoc binary.Jacob Hoffman-Andrews-0/+6
2020-11-15Make all rustdoc functions and structs crate-privateJoshua Nelson-36/+36
This gives warnings about dead code.
2020-09-23Use theme-adaptive SVG favicon from other Rust sitesJarek Samic-2/+4
2020-07-12Add Ayu theme to rustdocJarek Samic-0/+3
2020-03-07rustdoc: remove redundant static lifetimes (clippy::redundant_static_lifetimes)Matthias Krüger-28/+28
2019-11-21Revert "Update Source Code Pro and include italics"Guillaume Gomez-8/+4
This reverts commit ea9519bf16f0be137a814a49c9fbaf232ba49a43.
2019-11-20Rollup merge of #65665 - tspiteri:italic-and-update-SourceCodePro, ↵Mazdak Farrokhzad-4/+8
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-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-1/+1
2019-11-18Rename theme-checker option to check-themeGuillaume Gomez-1/+1
2019-10-21Update Source Code Pro and include italicsTrevor Spiteri-4/+8
2019-04-29Revert "Update Source Code Pro fonts to version 2.030"Manish Goregaokar-1/+1
This reverts commit 6bafc58cedc6f409dbcd8919a25b2f5d425f42ae.
2019-04-20Update Source Code Pro fonts to version 2.030Manish Goregaokar-1/+1
Pulled in from https://github.com/adobe-fonts/source-code-pro/
2019-04-20Update Source Serif Pro fonts to version 2.010Manish Goregaokar-1/+1
Pulled in from https://github.com/adobe-fonts/source-serif-pro/ See https://bugzilla.mozilla.org/show_bug.cgi?id=1545317
2019-01-20Add default favicon for documentationGuillaume Gomez-0/+2
2019-01-20Add default rust logo for documentationGuillaume Gomez-0/+3
2019-01-07Update static files code for updated Source Serif Pro fontTrevor Spiteri-13/+8
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-06Show everything when noscript is onGuillaume Gomez-0/+3
2018-12-06Rollup merge of #56332 - GuillaumeGomez:specifi-crate-search, r=QuietMisdreavusPietro Albini-0/+3
[rustdoc] Specific crate search Reopening of #54706. Fixes #54616. <img width="1440" alt="screenshot 2018-11-29 at 01 29 11" src="https://user-images.githubusercontent.com/3050060/49191372-979adf80-f376-11e8-963e-e4feb927c1da.png"> r? @QuietMisdreavus
2018-11-29Add arrow to the crate select boxGuillaume Gomez-0/+3
2018-11-24Source sidebar improvementsGuillaume Gomez-0/+6
2018-11-10move all static-file include!s into a single moduleQuietMisdreavus-0/+111