diff --git a/doc/guide.css b/doc/guide.css index 967bf05c..51374c63 100644 --- a/doc/guide.css +++ b/doc/guide.css @@ -1,2 +1,24 @@ @import url('../rustdoc.css'); @import url('../main.css'); + +h1 { + margin-top: 50px; +} + +h2 { + color: #555; + margin-top: 30px; +} + +p { + margin-bottom: 1.2em; +} + +p a, #toc a { + color: #3873AD; +} + +p a:hover, #toc a:hover { + text-decoration: underline; +} + diff --git a/doc/guide/index.md b/doc/guide/index.md new file mode 100644 index 00000000..7eecac2e --- /dev/null +++ b/doc/guide/index.md @@ -0,0 +1,5 @@ +% Guides + +Hello! Just getting started? Great! Here, take a look at a guide: + +- [Server Guide](./server.html) diff --git a/doc/guide/server.md b/doc/guide/server.md index 49c49ab9..96c70040 100644 --- a/doc/guide/server.md +++ b/doc/guide/server.md @@ -48,7 +48,8 @@ There is quite a few concepts here, so let's tackle them one by one. ## Handler The [`Handler`][Handler] is how you define what should happen during the lifetime -of an HTTP message. +of an HTTP message. We've implemented it for the `Text`, defining what should +happen at each event during an HTTP message. ## Next diff --git a/src/lib.rs b/src/lib.rs index 5213c7fd..180c59e3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,7 @@ //! [Server](server/index.html), along with a //! [typed Headers system](header/index.html). //! -//! If just getting started, consider looking over the [Server Guide](./guide/server.html). +//! If just getting started, consider looking over the **[Guide](../guide/)**. extern crate rustc_serialize as serialize; extern crate time; #[macro_use] extern crate url;