diff --git a/.travis/docs.sh b/.travis/docs.sh index 8ad98de0..0b16d4f2 100755 --- a/.travis/docs.sh +++ b/.travis/docs.sh @@ -7,10 +7,11 @@ shopt -s globstar cargo doc --no-deps for f in ./doc/**/*.md; do - rustdoc $f -L ./target/debug -L ./target/debug/deps -o "$(dirname $f)"; + rustdoc $f -L ./target/debug -L ./target/debug/deps -o "$(dirname $f)" --html-before-content=./doc/prelude.html.inc --html-after-content=./doc/postlude.html.inc --markdown-css=guide.css; done cp --parent ./doc/**/*.html ./target +cp ./doc/guide.css ./target/doc/guide/guide.css git clone --branch gh-pages "https://$TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs cd deploy_docs diff --git a/doc/guide.css b/doc/guide.css new file mode 100644 index 00000000..99a94354 --- /dev/null +++ b/doc/guide.css @@ -0,0 +1,2 @@ +@import url('../rustdoc.css') +@import url('../main.css') diff --git a/doc/postlude.html.inc b/doc/postlude.html.inc new file mode 100644 index 00000000..35a902ec --- /dev/null +++ b/doc/postlude.html.inc @@ -0,0 +1 @@ + diff --git a/doc/prelude.html.inc b/doc/prelude.html.inc new file mode 100644 index 00000000..b3cc871b --- /dev/null +++ b/doc/prelude.html.inc @@ -0,0 +1,9 @@ + +
diff --git a/doc/server.html b/doc/server.html new file mode 100644 index 00000000..14870437 --- /dev/null +++ b/doc/server.html @@ -0,0 +1,63 @@ + + + + + + + Server Guide + + + + + + + + + +
+ + +

Server Guide

+ +

0.1 The Handler

+
+extern crate hyper;
+use hyper::server::{Handler, Request, Response, Decoder, Encoder, Next, HttpStream as Http};
+
+struct Hello;
+
+impl Handler<Http> for Hello {
+    fn on_request(&mut self, req: Request<Http>) -> Next {
+
+    }
+
+    fn on_request_readable(&mut self, decoder: &mut Decoder<Http>) -> Next {
+
+    }
+
+    fn on_response(&mut self, res: &mut Response) -> Next {
+
+    }
+
+    fn on_response_writable(&mut self, encoder: &mut Encoder<Http>) -> Next {
+
+    }
+}
+
+ + +
+ + + + \ No newline at end of file