about summary refs log tree commit diff
path: root/src/doc/rustdoc.md
AgeCommit message (Collapse)AuthorLines
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