From 81e6e98d80ee331fd94084b594fe5879cc90448f Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Tue, 26 Jul 2016 08:55:08 -0700 Subject: [PATCH] docs(guide): adjust styles of the guides --- doc/guide.css | 22 ++++++++++++++++++++++ doc/guide/index.md | 5 +++++ doc/guide/server.md | 3 ++- src/lib.rs | 2 +- 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 doc/guide/index.md 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;