about summary refs log tree commit diff
path: root/src/librustdoc/markdown.rs
AgeCommit message (Collapse)AuthorLines
2017-02-03Add line number and filename in error messageGuillaume Gomez-1/+1
2016-12-24Teach `rustdoc --test` about `--sysroot`, pass it when testing rustAidan Hobson Sayers-2/+2
This permits rustdoc tests to work in stage0
2016-12-12feat(rustdoc): harmonise error messagesMichael Zapata-4/+6
Based on unix tools wording, it follows a standard format: `program_name: context: error message` on stderr, prompting the user to use the `--help` option in case of misuse.
2016-11-30rustdoc: fix up --playground-urlLiigo Zhuang-1/+2
2016-10-15rustdoc: Improve playground run buttonsOliver Middleton-8/+2
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-10-09Refactor away `load_or_return` macro.Corey Farwell-3/+11
2016-08-11Add the notion of a dependency tracking status to commandline arguments.Michael Woerister-2/+2
Commandline arguments influence whether incremental compilation can use its compilation cache and thus their changes relative to previous compilation sessions need to be taking into account. This commit makes sure that one has to specify for every commandline argument whether it influences incremental compilation or not.
2016-03-27Don't initialize id-map when rendering md filesmitaa-1/+1
Adding these "known" values to the table of used ids is only required when embedding markdown into a rustdoc html page and may yield unexpected results when rendering a standalone `*.md` file.
2015-12-15Use --cfg when running doctestsSeo Sanghyeon-2/+2
Previously passed --cfg was used only when collecting doctests.
2015-12-03Move ID generator to a more suited locationmitaa-2/+3
2015-07-30fix rustdoc metadata parsingAlexis Beingessner-3/+4
2015-07-27std: Deprecate a number of unstable featuresAlex Crichton-1/+1
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-04-14Positive case of `len()` -> `is_empty()`Tamir Duberstein-1/+1
`s/(?<!\{ self)(?<=\.)len\(\) == 0/is_empty()/g`
2015-04-07book: Emit links to play.rust-lang.org to run examplesAlex Crichton-1/+1
Had to fix a bug in `--markdown-playground-url` for markdown files in rustdoc as well as adding some necessary JS to the rustbook output as well. Closes #21553
2015-04-07rustdoc: Allowing specifying attrs for doctestsAlex Crichton-3/+7
This adds support in rustdoc to blanket apply crate attributes to all doc tests for a crate at once. The syntax for doing this is: #![doc(test(attr(...)))] Each meta item in `...` will be applied to each doctest as a crate attribute. cc #18199
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-2/+2
Now that support has been removed, all lingering use cases are renamed.
2015-03-23rustdoc: Add #[doc(test(no_inject_crate))] attributeBrian Anderson-1/+1
So that collections doctests don't automatically fail themselves by injecting `extern crate collections` when they are mostly using the std facade.
2015-03-13Fallout of std::old_io deprecationAlex Crichton-5/+5
2015-03-04std: Deprecate std::old_io::fsAlex Crichton-3/+6
This commit deprecates the majority of std::old_io::fs in favor of std::fs and its new functionality. Some functions remain non-deprecated but are now behind a feature gate called `old_fs`. These functions will be deprecated once suitable replacements have been implemented. The compiler has been migrated to new `std::fs` and `std::path` APIs where appropriate as part of this change.
2015-02-05cleanup: replace `as[_mut]_slice()` calls with deref coercionsJorge Aparicio-5/+5
2015-02-02`for x in xs.iter()` -> `for x in &xs`Jorge Aparicio-1/+1
2015-01-26Fallout of io => old_ioAlex Crichton-5/+5
2015-01-21Fallout from stabilization.Aaron Turon-2/+2
2015-01-13Make the Rust Book more mobile friendlySeth Faxon-0/+1
2014-12-23rustc: Add knowledge of separate lookup pathsAlex Crichton-2/+2
This commit adds support for the compiler to distinguish between different forms of lookup paths in the compiler itself. Issue #19767 has some background on this topic, as well as some sample bugs which can occur if these lookup paths are not separated. This commits extends the existing command line flag `-L` with the same trailing syntax as the `-l` flag. Each argument to `-L` can now have a trailing `:all`, `:native`, `:crate`, or `:dependency`. This suffix indicates what form of lookup path the compiler should add the argument to. The `dependency` lookup path is used when looking up crate dependencies, the `crate` lookup path is used when looking for immediate dependencies (`extern crate` statements), and the `native` lookup path is used for probing for native libraries to insert into rlibs. Paths with `all` are used for all of these purposes (the default). The default compiler lookup path (the rustlib libdir) is by default added to all of these paths. Additionally, the `RUST_PATH` lookup path is added to all of these paths. Closes #19767
2014-11-23std: Add a new top-level thread_local moduleAlex Crichton-1/+1
This commit removes the `std::local_data` module in favor of a new `std::thread_local` module providing thread local storage. The module provides two variants of TLS: one which owns its contents and one which is based on scoped references. Each implementation has pros and cons listed in the documentation. Both flavors have accessors through a function called `with` which yield a reference to a closure provided. Both flavors also panic if a reference cannot be yielded and provide a function to test whether an access would panic or not. This is an implementation of [RFC 461][rfc] and full details can be found in that RFC. This is a breaking change due to the removal of the `std::local_data` module. All users can migrate to the new thread local system like so: thread_local!(static FOO: Rc<RefCell<Option<T>>> = Rc::new(RefCell::new(None))) The old `local_data` module inherently contained the `Rc<RefCell<Option<T>>>` as an implementation detail which must now be explicitly stated by users. [rfc]: https://github.com/rust-lang/rfcs/pull/461 [breaking-change]
2014-09-07Changed addl_lib_search_paths from HashSet to Vecinrustwetrust-2/+1
This makes the extra library paths given to the gcc linker come in the same order as the -L options on the rustc command line.
2014-08-02rustdoc: Add rustdoc class to <body> tagTom Jakubowski-1/+1
This allows for easier application of user stylesheets to rustdocs no matter where they are hosted.
2014-07-24rustdoc: make table of contents optionalAaron Turon-3/+9
rustdoc currently determines whether to produce a table of contents (along with numbered sections) from the input type: yes for markdown input, no for Rust input. This commit adds a flag to disable the table of contents for markdown input, which is useful for embedding the output in a larger context.
2014-07-23collections: Deprecate shift/unshiftBrian Anderson-1/+1
Use insert/remove instead.
2014-07-21rustdoc: Add an --extern flag analagous to rustc'sTom Jakubowski-2/+4
This adds an `--extern` flag to `rustdoc` much like the compiler's to specify the path where a given crate can be found.
2014-07-17deprecate Vec::getNick Cameron-1/+1
2014-06-30Allow external html in rustdoc for crates.zzmp-51/+8
Updated documentation to reflect md->html. Modularized external file loading.
2014-06-26Remove unnecessary to_string callsPiotr Jawniak-9/+0
This commit removes superfluous to_string calls from various places
2014-06-06rustdoc: Submit examples to play.rust-lang.orgAlex Crichton-1/+12
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-06-06doc: Turn off special features for rustdoc testsAlex Crichton-1/+1
These were only used for the markdown tests, and there's no reason they should be distinct from the other tests.
2014-06-05Fallout from the libcollections movementAlex Crichton-1/+1
2014-05-27std: Rename strbuf operations to stringRicho Healey-6/+6
[breaking-change]
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-6/+6
[breaking-change]
2014-05-22libstd: Remove `~str` from all `libstd` modules except `fmt` and `str`.Patrick Walton-1/+1
2014-05-14libtest: Remove all uses of `~str` from `libtest`.Patrick Walton-5/+1
2014-05-12librustdoc: Remove all `~str` usage from librustdoc.Patrick Walton-11/+24
2014-04-18Replace all ~"" with "".to_owned()Richo Healey-1/+1
2014-04-10auto merge of #13440 : huonw/rust/strbuf, r=alexcrichtonbors-5/+5
libstd: Implement `StrBuf`, a new string buffer type like `Vec`, and port all code over to use it. Rebased & tests-fixed version of https://github.com/mozilla/rust/pull/13269
2014-04-10Remove some internal ~[] from several libraries.Huon Wilson-2/+2
Some straggling instances of `~[]` across a few different libs. Also, remove some public ones from workcache.
2014-04-10libstd: Implement `StrBuf`, a new string buffer type like `Vec`, andPatrick Walton-5/+5
port all code over to use it.
2014-04-06De-~[] Reader and WriterSteven Fackler-1/+1
There's a little more allocation here and there now since from_utf8_owned can't be used with Vec.
2014-03-21test: Make manual changes to deal with the fallout from removal ofPatrick Walton-3/+6
`~[T]` in test, libgetopts, compiletest, librustdoc, and libnum.
2014-03-20Removing imports of std::vec_ng::VecAlex Crichton-1/+0
It's now in the prelude.
2014-03-20rename std::vec_ng -> std::vecDaniel Micay-1/+1
Closes #12771