chore(doc): remove unused doc folder
This commit is contained in:
@@ -35,7 +35,7 @@ after_success:
|
|||||||
tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && make install DESTDIR=../tmp && cd ../.. &&
|
tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && make install DESTDIR=../tmp && cd ../.. &&
|
||||||
ls target/debug &&
|
ls target/debug &&
|
||||||
./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/hyper-*'
|
./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/hyper-*'
|
||||||
- '[ $TRAVIS_PULL_REQUEST = false ] &&
|
- '[ $TRAVIS_PULL_REQUEST = false ] && [ $TRAVIS_RUST_VERSION = stable ] &&
|
||||||
{ [ "$TRAVIS_TAG" != "" ] || [ "$TRAVIS_BRANCH" == "master" ]; } &&
|
{ [ "$TRAVIS_TAG" != "" ] || [ "$TRAVIS_BRANCH" == "master" ]; } &&
|
||||||
./.travis/docs.sh'
|
./.travis/docs.sh'
|
||||||
|
|
||||||
|
|||||||
@@ -6,15 +6,6 @@ shopt -s globstar
|
|||||||
|
|
||||||
cargo doc --no-deps
|
cargo doc --no-deps
|
||||||
|
|
||||||
if [ -d ./doc ]; then
|
|
||||||
for f in $(find ./doc/**/*.md); do
|
|
||||||
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
|
|
||||||
fi
|
|
||||||
|
|
||||||
git clone --branch gh-pages "https://$TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs > /dev/null 2>&1
|
git clone --branch gh-pages "https://$TOKEN@github.com/${TRAVIS_REPO_SLUG}.git" deploy_docs > /dev/null 2>&1
|
||||||
cd deploy_docs
|
cd deploy_docs
|
||||||
|
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
@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;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
% Guides
|
|
||||||
|
|
||||||
Hello! Just getting started? Great! Here, take a look at a guide:
|
|
||||||
|
|
||||||
- [Server Guide](./server.html)
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
% Server Guide
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
</section><!-- /main-->
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
<nav class="sidebar">
|
|
||||||
<p class="location">
|
|
||||||
<a href="../">hyper</a>
|
|
||||||
::
|
|
||||||
<wbr>
|
|
||||||
<a href="./">guide</a>
|
|
||||||
</p>
|
|
||||||
</nav>
|
|
||||||
<section id="main" class="content mod">
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="generator" content="rustdoc">
|
|
||||||
<title>Server Guide</title>
|
|
||||||
|
|
||||||
<link rel="stylesheet" type="text/css" href="guide.css">
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body class="rustdoc">
|
|
||||||
<!--[if lte IE 8]>
|
|
||||||
<div class="warning">
|
|
||||||
This old browser is unsupported and will most likely display funky
|
|
||||||
things.
|
|
||||||
</div>
|
|
||||||
<![endif]-->
|
|
||||||
|
|
||||||
<nav class="sidebar">
|
|
||||||
<p class="location"></p>
|
|
||||||
</nav>
|
|
||||||
<section id="main" class="content mod">
|
|
||||||
|
|
||||||
|
|
||||||
<h1 class="title">Server Guide</h1>
|
|
||||||
<nav id="TOC"><ul>
|
|
||||||
<li><a href="#the-handler">0.1 The <code>Handler</code></a><ul></ul></li></ul></nav>
|
|
||||||
<h2 id='the-handler' class='section-header'><a href='#the-handler'>0.1 The <code>Handler</code></a></h2>
|
|
||||||
<pre class='rust rust-example-rendered'>
|
|
||||||
<span class='kw'>extern</span> <span class='kw'>crate</span> <span class='ident'>hyper</span>;
|
|
||||||
<span class='kw'>use</span> <span class='ident'>hyper</span>::<span class='ident'>server</span>::{<span class='ident'>Handler</span>, <span class='ident'>Request</span>, <span class='ident'>Response</span>, <span class='ident'>Decoder</span>, <span class='ident'>Encoder</span>, <span class='ident'>Next</span>, <span class='ident'>HttpStream</span> <span class='kw'>as</span> <span class='ident'>Http</span>};
|
|
||||||
|
|
||||||
<span class='kw'>struct</span> <span class='ident'>Hello</span>;
|
|
||||||
|
|
||||||
<span class='kw'>impl</span> <span class='ident'>Handler</span><span class='op'><</span><span class='ident'>Http</span><span class='op'>></span> <span class='kw'>for</span> <span class='ident'>Hello</span> {
|
|
||||||
<span class='kw'>fn</span> <span class='ident'>on_request</span>(<span class='kw-2'>&</span><span class='kw-2'>mut</span> <span class='self'>self</span>, <span class='ident'>req</span>: <span class='ident'>Request</span><span class='op'><</span><span class='ident'>Http</span><span class='op'>></span>) <span class='op'>-></span> <span class='ident'>Next</span> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
<span class='kw'>fn</span> <span class='ident'>on_request_readable</span>(<span class='kw-2'>&</span><span class='kw-2'>mut</span> <span class='self'>self</span>, <span class='ident'>decoder</span>: <span class='kw-2'>&</span><span class='kw-2'>mut</span> <span class='ident'>Decoder</span><span class='op'><</span><span class='ident'>Http</span><span class='op'>></span>) <span class='op'>-></span> <span class='ident'>Next</span> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
<span class='kw'>fn</span> <span class='ident'>on_response</span>(<span class='kw-2'>&</span><span class='kw-2'>mut</span> <span class='self'>self</span>, <span class='ident'>res</span>: <span class='kw-2'>&</span><span class='kw-2'>mut</span> <span class='ident'>Response</span>) <span class='op'>-></span> <span class='ident'>Next</span> {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
<span class='kw'>fn</span> <span class='ident'>on_response_writable</span>(<span class='kw-2'>&</span><span class='kw-2'>mut</span> <span class='self'>self</span>, <span class='ident'>encoder</span>: <span class='kw-2'>&</span><span class='kw-2'>mut</span> <span class='ident'>Encoder</span><span class='op'><</span><span class='ident'>Http</span><span class='op'>></span>) <span class='op'>-></span> <span class='ident'>Next</span> {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
window.playgroundUrl = "";
|
|
||||||
</script>
|
|
||||||
</section><!-- /main-->
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user