Skip to content

Commit 001a1bf

Browse files
committed
---
yaml --- r: 147190 b: refs/heads/try2 c: f0867e0 h: refs/heads/master v: v3
1 parent 4c72c28 commit 001a1bf

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: e08c9361207b083af091badbfe860d7bcf739157
8+
refs/heads/try2: f0867e0ba2b91f31004167499cb10985f8362d36
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/doc/rustdoc.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,21 @@ pub fn recalibrate() {
3838
}
3939
~~~
4040

41-
Then, one can run `rustdoc universe.rs`. By default, it generates a directory
42-
called `doc`, with the documentation for `universe` being in
41+
Doc comments are markdown, and are currently parsed with the
42+
[sundown][sundown] library. rustdoc does not yet do any fanciness such as
43+
referencing other items inline, like javadoc's `@see`. One exception to this
44+
is that the first paragrah will be used as the "summary" of an item in the
45+
generated documentation:
46+
47+
~~~
48+
/// A whizbang. Does stuff. (this line is the summary)
49+
///
50+
/// Whizbangs are ...
51+
struct Whizbang;
52+
~~~
53+
54+
To generate the docs, run `rustdoc universe.rs`. By default, it generates a
55+
directory called `doc`, with the documentation for `universe` being in
4356
`doc/universe/index.html`. If you are using other crates with `extern mod`,
4457
rustdoc will even link to them when you use their types, as long as their
4558
documentation has already been generated by a previous run of rustdoc, or the
@@ -70,3 +83,5 @@ color, and one can always click on a colored type to jump to its
7083
documentation. There is a search bar at the top, which is powered by some
7184
javascript and a statically-generated search index. No special web server is
7285
required for the search.
86+
87+
[sundown]: https://github.com/vmg/sundown/

branches/try2/doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3235,7 +3235,7 @@ more out of date than this document.
32353235
[container]: tutorial-container.html
32363236
[conditions]: tutorial-conditions.html
32373237
[rustpkg]: tutorial-rustpkg.html
3238-
[rustdoc]: tutorial-rustdoc.html
3238+
[rustdoc]: rustdoc.html
32393239

32403240
[wiki]: https://github.com/mozilla/rust/wiki/Docs
32413241
[wiki-packages]: https://github.com/mozilla/rust/wiki/Doc-packages,-editors,-and-other-tools

0 commit comments

Comments
 (0)