Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit f73fab8

Browse files
authored
Merge pull request #155 from alexcrichton/nightly-header
Add a "this is unpublished header" to docs
2 parents a7368ef + 48d360e commit f73fab8

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
@@ -10,9 +10,9 @@ before_script:
1010
- cargo install mdbook --version 0.2.3
1111

1212
script:
13+
- mv _theme theme
1314
- mdbook build
1415

15-
1616
deploy:
1717
provider: script
1818
script: curl -LsSf https://git.io/fhJ8n | rustc - && (cd book && ../rust_out)

_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 <strong>unpublished</strong> documentation of
39+
working with Rust and WebAssembly, the published documentation is available
40+
<a href="https://rustwasm.github.io/docs/book/">
41+
on the main Rust and WebAssembly documentation site
42+
</a>. Features documented here may not be available in released versions of
43+
tooling for Rust and WebAssembly.
44+
</header>

0 commit comments

Comments
 (0)