about summary refs log tree commit diff
path: root/src/doc/rustdoc.md
AgeCommit message (Collapse)AuthorLines
2015-01-21Move rustdoc.md into the bookSteve Klabnik-294/+1
Fixes #21430
2015-01-15rollup merge of #21041: steveklabnik/gh17554Alex Crichton-0/+29
Fixes #17554
2015-01-15Add explanation of main to rustdoc docsSteve Klabnik-0/+29
Fixes #17554
2015-01-13Replace usage of deriving with derive in docsGreg Chapple-1/+1
2014-12-14Mostly rote conversion of `proc()` to `move||` (and occasionally `Thunk::new`)Niko Matsakis-2/+2
2014-10-31auto merge of #18381 : pelmers/rust/patch-1, r=alexcrichtonbors-1/+1
Happened to be reading through the doc.
2014-10-29Rename fail! to panic!Steve Klabnik-2/+2
https://github.com/rust-lang/rfcs/pull/221 The current terminology of "task failure" often causes problems when writing or speaking about code. You often want to talk about the possibility of an operation that returns a Result "failing", but cannot because of the ambiguity with task failure. Instead, you have to speak of "the failing case" or "when the operation does not succeed" or other circumlocutions. Likewise, we use a "Failure" header in rustdoc to describe when operations may fail the task, but it would often be helpful to separate out a section describing the "Err-producing" case. We have been steadily moving away from task failure and toward Result as an error-handling mechanism, so we should optimize our terminology accordingly: Result-producing functions should be easy to describe. To update your code, rename any call to `fail!` to `panic!` instead. Assuming you have not created your own macro named `panic!`, this will work on UNIX based systems: grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g' You can of course also do this by hand. [breaking-change]
2014-10-27Small grammar fix in rustdoc.mdPeter Elmers-1/+1
Happened to be reading through
2014-10-04docs: Reference hoedown instead of sundownBrian Campbell-2/+2
2014-07-02Fix example in docs on documentationDerecho-1/+1
2014-06-30Allow external html in rustdoc for crates.zzmp-4/+15
Updated documentation to reflect md->html. Modularized external file loading.
2014-06-19rustdoc: add the ability to run tests with --test.Huon Wilson-0/+12
This adds the `test_harness` directive that runs a code block using the test runner, to allow for `#[test]` items to be demonstrated and still tested (currently they are just stripped and not even compiled, let alone run).
2014-06-02docs: Stop using `notrust`Florian Gilcher-9/+17
Now that rustdoc understands proper language tags as the code not being Rust, we can tag everything properly. This change tags examples in other languages by their language. Plain notations are marked as `text`. Console examples are marked as `console`. Also fix markdown.rs to not highlight non-rust code.
2014-05-25rustdoc: Move inlining to its own moduleAlex Crichton-1/+5
2014-05-25doc: Document the new #[doc(no_inline)] attributeAlex Crichton-0/+21
2014-05-24core: rename strbuf::StrBuf to string::StringRicho Healey-1/+1
[breaking-change]
2014-05-24Get "make check" to work with unused-attributeSteven Fackler-0/+1
There's a fair number of attributes that have to be whitelisted since they're either looked for by rustdoc, in trans, or as needed. These can be cleaned up in the future.
2014-05-21Change static.rust-lang.org to doc.rust-lang.orgAlex Crichton-1/+1
The new documentation site has shorter urls, gzip'd content, and index.html redirecting functionality.
2014-05-16doc: Remove all uses of `~str` from the documentation.Patrick Walton-1/+1
2014-05-03rustdoc: Migrate from sundown to hoedownAlex Crichton-47/+34
This primary fix brought on by this upgrade is the proper matching of the ``` and ~~~ doc blocks. This also moves hoedown to a git submodule rather than a bundled repository. Additionally, hoedown is stricter about code blocks, so this ended up fixing a lot of invalid code blocks (ending with " ```" instead of "```", or ending with "~~~~" instead of "~~~"). Closes #12776
2014-04-12Update tutorials to use new attribute syntax (#13476)Manish Goregaokar-2/+2
2014-04-04Remove references to obsolete `do` keywordMatt Brubeck-2/+2
Also add the new `proc` keyword to the documentation.
2014-03-18Typo fixes.Lindsey Kuper-9/+9
2014-03-09docs: render rustdoc docs with rustdoc, hack around sundown code-fenceHuon Wilson-39/+54
parsing limitations. Sundown parses ``` ~~~ as a valid codeblock (i.e. mismatching delimiters), which made using rustdoc on its own documentation impossible (since it used nested codeblocks to demonstrate how testable codesnippets worked). This modifies those snippets so that they're delimited by indentation, but this then means they're tested by `rustdoc --test` & rendered as Rust code (because there's no way to add `notrust` to indentation-delimited code blocks). A comment is added to stop the compiler reading the text too closely, but this unfortunately has to be visible in the final docs, since that's the text on which the highlighting happens.
2014-03-09rustdoc: run on plain Markdown files.Huon Wilson-0/+25
This theoretically gives rustdoc the ability to render our guides, tutorial and manual (not in practice, since the files themselves need to be adjusted slightly to use Sundown-compatible functionality). Fixes #11392.
2014-03-08Add an option to not run rustdoc blocksSteven Fackler-2/+11
This is useful for code that would be expensive to run or has some kind of external dependency (e.g. a database or server).
2014-03-04doc: use the newer faviconAdrien Tétar-1/+1
2014-02-20move extra::test to libtestLiigo Zhuang-1/+1
2014-02-15auto merge of #12298 : alexcrichton/rust/rustdoc-testing, r=sfacklerbors-20/+12
It's too easy to forget the `rust` tag to test something. Closes #11698
2014-02-14Update rustdoc testing to test all code blocksAlex Crichton-20/+12
It's too easy to forget the `rust` tag to have a code example tested, and it's far more common to have testable code than untestable code. This alters rustdoc to have only two directives, `ignore` and `should_fail`. The `ignore` directive ignores the code block entirely, and the `should_fail` directive has been fixed to only fail the test if the code execution fails, not also compilation.
2014-02-14extern mod => extern crateAlex Crichton-2/+2
This was previously implemented, and it just needed a snapshot to go through
2014-02-02Move doc/ to src/doc/Alex Crichton-0/+182
We generate documentation into the doc/ directory, so we shouldn't be intermingling source files with generated files