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