summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2015-10-22Auto merge of #28963 - mdinger:arrow, r=steveklabnikbors-7/+10
This is to make the link more prominent so hopefully people will actually see it. The new icon is partially because I wasn't sure how easy it would be to apply the previous transformations only to the last character of the string. As it is, I wasn't sure at first but I think the look is growing on me. A minor nitpick is that the space after `Runnable` is underlined and I tried to fix that but it wasn't working for me right now. I tried switching a link with subelements to a div with subelements but I missed something because it wasn't working correctly. --- Unselected: ![arrow](https://cloud.githubusercontent.com/assets/4156987/10414475/b1730ab2-6fa4-11e5-9062-15bc0c7c8b96.png) --- Selected: ![arrow_selected](https://cloud.githubusercontent.com/assets/4156987/10414483/4a78088e-6fa5-11e5-864e-c83f354769b1.png) Fixes https://github.com/rust-lang/rust/issues/28958
2015-10-16Auto merge of #28683 - GuillaumeGomez:rustdoc_error, r=alexcrichtonbors-64/+107
This PR solves the following issues (or at least help users to understand the problem): ```Rust #![crate_name = "b"] #![crate_type = "rlib"] pub fn his_function_has_a_very_long_name_and_should_make_cargo_doc_explodes_because_it_will_want_to_make_a_filename_with_it_in_excess_of_the_max_filename_length_for_most_filesystem_this_is_not_yet_long_enough_i_need_moreis_function_has_a_very_long_name_and_should_make_cargo_doc_explodes_because_it_will_want_to_make_a_filename_with_it_in_excess_of_the_max_filename_length_for_most_filesystem_this_is_not_yet_long_enough_i_need_more_() {} ``` ```Rust #![crate_name = "b"] #![crate_type = "rlib"] pub struct his_function_has_a_very_long_name_and_should_make_cargo_doc_explodes_because_it_will_want_to_make_a_filename_with_it_in_excess_of_the_max_filename_length_for_most_filesystem_this_is_not_yet_long_enough_i_need_moreis_function_has_a_very_long_name_and_should_make_cargo_doc_explodes_because_it_will_want_to_make_a_filename_with_it_in_excess_of_the_max_filename_length_for_most_filesystem_this_is_not_yet_long_enough_i_need_more_; ``` For the maximum filename length chosen, @gkoz gave me [this link](http://unix.stackexchange.com/a/32834).
2015-10-17Improve error handling by providing Error struct with Path informationGuillaume Gomez-64/+107
2015-10-14Make the rustdoc example links more noticablemdinger-7/+10
2015-10-13Refactor attr::StabilityVadim Petrochenkov-4/+5
Stricter checking + enforcement of invariants at compile time
2015-10-08typos: fix a grabbag of typos all over the placeCristi Cobzarenco-2/+2
2015-10-04Auto merge of #28573 - ruud-v-a:rustdoc-license, r=brsonbors-0/+309
The output of rustdoc includes resources licensed under the SIL Open Font License, the MIT license, and the Apache License 2.0. All of these licenses permit redistribution provided that the license text is also redistributed. Previously this was not the case, making rustdoc output unsuitable for distribution by default. This resolves that problem by including the license texts in rustdoc output. See also: https://users.rust-lang.org/t/licensing-rustdoc-output/2880
2015-10-02Fix librustdoc search eventsSimonas Kazlauskas-11/+17
Previously only keyup event was looked at, which meant that pasting, cutting and otherwise changing the input without typing would not catch any updates to the search query.
2015-10-02Fix misnamed variable in rustdocSimonas Kazlauskas-1/+1
2015-10-02Auto merge of #28795 - marti1125:28696, r=alexcrichtonbors-0/+9
-Add a validation when input search is empty on top of 'startSearch()'
2015-10-01fixes #28696 Return to the default content when .search-input is empty -Add ↵Willy Aguirre-0/+9
a validation when input search is empty on top of 'startSearch()'
2015-10-01Convert DefId to use DefIndex, which is an index into a list ofNiko Matsakis-11/+10
paths, and construct paths for all definitions. Also, stop rewriting DefIds for closures, and instead just load the closure data from the original def-id, which may be in another crate.
2015-10-01move direct accesses of `node` to go through `as_local_node_id`, unlessNiko Matsakis-14/+15
they are being used as an opaque "position identifier"
2015-10-01move job of creating local-def-ids to ast-map (with a few stragglers)Niko Matsakis-5/+4
2015-10-01move LOCAL_CRATE to cstoreNiko Matsakis-1/+3
2015-09-27rustdoc: Remove crate name from primitives, make them turn up first in searchManish Goregaokar-0/+7
2015-09-24Add 'use strict' to playpen.jsNick Howell-0/+2
2015-09-21Clarify rustdoc output licensing with a copyright fileRuud van Asseldonk-0/+66
2015-09-20rustdoc: added tests for header rendering & minor fixesSimon Mazur-2/+24
2015-09-20rustdoc: remove redundant testSimon Mazur-15/+1
2015-09-20rustdoc: some code style improvementsSimon Mazur-27/+14
2015-09-20rustdoc: Changed section headers anchor renderingSimon Mazur-5/+23
2015-09-19Rollup merge of #28400 - badboy:disable-browser-history-on-file, r=steveklabnikSteve Klabnik-1/+2
history.pushState is defined, but not working whenever document.origin is "null" (literally that string, not just the null object). This is due to some security considerations and is unlikely to be ever working. For now just disable the usage of the history API when the documentation is accessed through a file:/// URL. See https://code.google.com/p/chromium/issues/detail?id=301210 for a Chrome-specific issue on the history API on file:/// URLs Closes #25953
2015-09-19Make rustdoc output comply with licensesRuud van Asseldonk-0/+243
The output of rustdoc includes resources licensed under the SIL Open Font License, the MIT license, and the Apache License 2.0. All of these licenses permit redistribution provided that the license text is also redistributed. Previously this was not the case, making rustdoc output unsuitable for distribution by default. This resolves that problem by including the license texts in rustdoc output.
2015-09-16Use ast attributes every where (remove HIR attributes).Nick Cameron-2/+2
This could be a [breaking-change] if your lint or syntax extension (is that even possible?) uses HIR attributes or literals.
2015-09-14Disable browser history API on file:/ URLsJan-Erik Rediger-1/+2
history.pushState is defined, but not working whenever document.origin is "null" (literally that string, not just the null object). This is due to some security considerations and is unlikely to be ever working. For now just disable the usage of the history API when the documentation is accessed through a file:/ URL. See https://code.google.com/p/chromium/issues/detail?id=301210 for a Chrome-specific issue on the history API on file:/ URLs Closes #25953
2015-09-09rustdoc: Tweak the main template and CSS for semantic mark-up.Kang Seonghoon-16/+28
- section.sidebar -> nav.sidebar, also added an unordered list. - div#help -> aside#help, also added a hidden heading. - the current crate is now emphasized in the sidebar. Fixes #16310.
2015-09-03Use consistent terminology for byte string literalsVadim Petrochenkov-1/+1
Avoid confusion with binary integer literals and binary operator expressions in libsyntax
2015-09-03Add an intital HIR and lowering stepNick Cameron-22/+24
2015-08-25Auto merge of #27945 - Eljay:upgrade-hoedown, r=alexcrichtonbors-36/+46
Some hoedown FFI changes: - `HOEDOWN_EXT_NO_INTRA_EMPHASIS` constant changed. - Updated/tidied up all callback function signatures. - All opaque data access has an additional layer of indirection for some reason (`hoedown_renderer_data`). This also fixes #27862.
2015-08-24Update hoedown to latest version (3.0.4).Eljay-36/+46
2015-08-24fallout from moving def-idNiko Matsakis-33/+34
2015-08-23Auto merge of #27919 - Eljay:doc-varargs, r=alexcrichtonbors-1/+5
Fixes #27876.
2015-08-20Show variadic args in rustdoc output.Lee Jeffery-1/+5
2015-08-17rustdoc: Removed command line option issue-tracker-base-urlMartin Wernstål-3/+2
2015-08-17rustdoc: Adjusted style for unstable feature-nameMartin Wernstål-1/+5
2015-08-16librustdoc: Fix tidyMartin Wernstål-2/+2
2015-08-16rustdoc: Print feature flag and issue link if present in short_stabilityMartin Wernstål-4/+19
2015-08-16rustdoc: Pass the Context down to short_stability()Martin Wernstål-56/+58
2015-08-16rustdoc: Added issue tracker option and issue data to clean::StabilityMartin Wernstål-1/+10
2015-08-16Correct signature of hoedown callback for codespansRobin Kruppe-2/+8
2015-08-11rollup merge of #27622: eefriedman/https-urlAlex Crichton-1/+1
Also fixes a few outdated links.
2015-08-09Use https URLs to refer to rust-lang.org where appropriate.Eli Friedman-1/+1
Also fixes a few outdated links.
2015-08-08rustc: rename multiple imports in a listSean McArthur-2/+7
2015-08-04Improve rustdoc search type filtering.Eljay-9/+29
2015-07-28remove `get_ident` and `get_name`, make `as_str` soundOliver Schneider-2/+2
2015-07-27std: Deprecate a number of unstable featuresAlex Crichton-3/+3
Many of these have long since reached their stage of being obsolete, so this commit starts the removal process for all of them. The unstable features that were deprecated are: * cmp_partial * fs_time * hash_default * int_slice * iter_min_max * iter_reset_fuse * iter_to_vec * map_in_place * move_from * owned_ascii_ext * page_size * read_and_zero * scan_state * slice_chars * slice_position_elem * subslice_offset
2015-07-21Auto merge of #27103 - wthrowe:doc_format, r=alexcrichtonbors-24/+18
This fixes a couple of bugs visible on https://doc.rust-lang.org/nightly/std/marker/trait.Sync.html . For example: * `impl<T> Sync for *const T` should read `impl<T> !Sync for *const T` * `impl<T> !Sync for Weak<T>` should read `impl<T> !Sync for Weak<T> where T: ?Sized` This does change a struct in librustdoc and it seems that almost everything there is marked public, so if librustdoc has stability guarantees that could be a problem. If it is, I'll find a way to rework the change to avoid modifying public structures.
2015-07-20librustdoc: blur page when help dialogue is presentAndreas Tolfsen-41/+62
Blurs the document's background when the help dialogue is present, making the contents of the dialogue stand out more.
2015-07-18Fix rustdoc formatting of implsWilliam Throwe-24/+18
Some cases displayed negative impls as positive, and some were missing where clauses. This factors all the impl formatting into one function so the different cases can't get out of sync again.