summary refs log tree commit diff
path: root/src/librustdoc/html/static/main.css
AgeCommit message (Collapse)AuthorLines
2014-03-12rustdoc: whitelist the headers that get a § on hover.Huon Wilson-11/+6
Previously the :hover rules were making the links to the traits/types in something like impl<K: Hash + Eq, V> ... { ... } be displayed with a trailing `§` when hovered over. This commit restricts that behaviour to specific headers, i.e. those that are known to be section headers (like those rendered in markdown doc-comments, and the "Modules", "Functions" etc. headings).
2014-03-09doc: CSS fixesAdrien Tétar-10/+7
- fixup and refactor highlighting code - have a proper print stylesheet
2014-03-09rustdoc: hardcode each header as a link.Huon Wilson-6/+13
This avoids having to include JS in the guide/tutorial/manual pages just to get the headers being links. The on-hover behaviour showing the little section marker § is preserved, because that gives a useful hint that the heading is a link.
2014-03-05rustdoc: Add anchors to section headersAlex Crichton-0/+7
This commit adds a appear-on-over link to all section headers to generated documentation. Each header also receives an id now, even those generated through markdown. The purpose of this is to provide easy to link to sections. This modifies the default header markdown generation because the default id added looks like "toc_NN" which is difficult to reconcile among all sections (by default each section gets a "toc_0" id), and it's also not very descriptive of where you're going. This chooses to adopt the github-style anchors by taking the contents of the title and hyphen-separating them (after lower casing). Closes #12681
2014-03-04rustdoc: tweak highlightingAdrien Tétar-16/+16
2014-03-02rustdoc: syntax highlight macro definitions, colour $... substitutions.Huon Wilson-0/+1
Macro definitions are just their raw source code, and so should be highlighted where possible. Also, $ident non-terminal substitutions are special, and so are worth of a little special treatment.
2014-02-23rustdoc: Add syntax highlightingAlex Crichton-0/+15
This adds simple syntax highlighting based off libsyntax's lexer to be sure to stay up to date with rust's grammar. Some of the highlighting is a bit ad-hoc, but it definitely seems to get the job done! This currently doesn't highlight rustdoc-rendered function signatures and structs that are emitted to each page because the colors already signify what's clickable and I think we'd have to figure out a different scheme before colorizing them. This does, however, colorize all code examples and source code. Closes #11393
2014-02-19rustdoc: Highlight methods jumped toAlex Crichton-0/+2
This helps figure out where you actually jumped to, especially if the thing you jumped to is at the very bottom of the page. Closes #9905
2013-12-07rustdoc: fix the search-bar layoutAdrien Tétar-1/+5
Now with broader compatibility.
2013-11-13doc: disable parser error highlighting + a few fixesAdrien Tétar-0/+1
CodeMirror parser errors are related to #9873.
2013-11-12doc: CSS: fix code fontsAdrien Tétar-1/+7
Closes #10330.
2013-10-22auto merge of #10003 : alexcrichton/rust/issue-fixes, r=brsonbors-0/+7
Commits have all the fun details.
2013-10-21rustdoc: Don't overflow long type/module namesAlex Crichton-0/+7
Closes #9862
2013-10-21rustdoc: nitpicks & cleanupAdrien Tétar-29/+18
2013-10-02Prevent source view from wrapping linesJordi Boggiano-1/+5
2013-10-02Highlight line numbers of the lines referred to in the url hashJordi Boggiano-0/+3
2013-09-27rustdoc: Include source files with documentationAlex Crichton-0/+3
All items have source links back to their actual code. Source files can be omitted with the doc(html_no_source) attribute on the crate. Currently there is no syntax highlighting, but that will come with syntax highlighting with all other snippets. Closes #2072
2013-09-26rustdoc: Render stability attributesAlex Crichton-0/+15
Closes #8965
2013-09-25rustdoc: Highlight function namesAlex Crichton-0/+1
Closes #9460
2013-09-22rustdoc: Out with the old, in with the newAlex Crichton-0/+270
Removes old rustdoc, moves rustdoc_ng into its place instead (plus drops the _ng suffix). Also shreds all reference to rustdoc_ng from the Makefile rules.