Skip to content

Commit b6a8de1

Browse files
Merge pull request #565 from alexcrichton/nightly-docs
Flag gh-pages docs as unpublished
2 parents 2967f8b + a59cf6a commit b6a8de1

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ matrix:
6262
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.2" mdbook)
6363
- cargo install-update -a
6464
script:
65-
- (cd docs && mdbook build)
65+
- (cd docs && mv _theme theme && mdbook build)
6666
- rustc ./docs/_installer/build-installer.rs
6767
- ./build-installer
6868
deploy:

docs/_theme/header.hbs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<style>
2+
header.warning {
3+
background-color: rgb(242, 222, 222);
4+
border-bottom-color: rgb(238, 211, 215);
5+
border-bottom-left-radius: 4px;
6+
border-bottom-right-radius: 4px;
7+
border-bottom-style: solid;
8+
border-bottom-width: 0.666667px;
9+
border-image-outset: 0 0 0 0;
10+
border-image-repeat: stretch stretch;
11+
border-image-slice: 100% 100% 100% 100%;
12+
border-image-source: none;
13+
border-image-width: 1 1 1 1;
14+
border-left-color: rgb(238, 211, 215);
15+
border-left-style: solid;
16+
border-left-width: 0.666667px;
17+
border-right-color: rgb(238, 211, 215);
18+
border-right-style: solid;
19+
border-right-width: 0.666667px;
20+
border-top-color: rgb(238, 211, 215);
21+
border-top-left-radius: 4px;
22+
border-top-right-radius: 4px;
23+
border-top-style: solid;
24+
border-top-width: 0.666667px;
25+
color: rgb(185, 74, 72);
26+
margin-bottom: 0px;
27+
margin-left: 0px;
28+
margin-right: 0px;
29+
margin-top: 30px;
30+
padding-bottom: 8px;
31+
padding-left: 14px;
32+
padding-right: 35px;
33+
padding-top: 8px;
34+
text-align: center;
35+
}
36+
</style>
37+
<header class='warning'>
38+
This is the <strong>unpublished</strong> documentation of
39+
<code>wasm-pack</code>, the published documentation is available
40+
<a href="https://rustwasm.github.io/docs/wasm-pack/">
41+
on the main Rust and WebAssembly documentation site
42+
</a>. Features documented here may not be available in released versions of
43+
<code>wasm-pack</code>.
44+
</header>

0 commit comments

Comments
 (0)