Skip to content

Commit

Permalink
docs(guide): adjust styles of the guides
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jul 26, 2016
1 parent 12c69b5 commit 81e6e98
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
22 changes: 22 additions & 0 deletions 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;
}

5 changes: 5 additions & 0 deletions 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)
3 changes: 2 additions & 1 deletion doc/guide/server.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Expand Up @@ -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;
Expand Down

0 comments on commit 81e6e98

Please sign in to comment.