Skip to content

Commit d149149

Browse files
committed
Try more headers
1 parent 86d8a0b commit d149149

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

ci/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ echo "wasm-pack-publish-date: $wasm_pack_publish_date" >> _build.yml
2727
bundler exec jekyll build --config _config.yml,_build.yml
2828

2929
mkdir -p _site/docs
30+
cp -r wasm-bindgen-theme repos/wasm-bindgen/guide/theme
3031
mdbook build repos/wasm-bindgen/guide
3132
mv repos/wasm-bindgen/guide/book/html _site/docs/wasm-bindgen
3233

34+
cp -r wasm-pack-theme repos/wasm-pack/docs/theme
3335
mdbook build repos/wasm-pack/docs
3436
mv repos/wasm-pack/docs/book _site/docs/wasm-pack
3537

wasm-bindgen-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 documentation is
39+
<a
40+
href="https://blog.rust-lang.org/inside-rust/2025/07/21/sunsetting-the-rustwasm-github-org/">no
41+
longer maintained at this domain</a>, and is now maintained
42+
<a href="https://wasm-bindgen.github.io/wasm-bindgen/">
43+
at wasm-bindgen.github.io</a> instead.
44+
</header>

wasm-pack-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 documentation is
39+
<a
40+
href="https://blog.rust-lang.org/inside-rust/2025/07/21/sunsetting-the-rustwasm-github-org/">no
41+
longer maintained at this domain</a>, and is now maintained
42+
<a href="https://drager.github.io/wasm-pack/">
43+
at drager.github.io/wasm-pack</a> instead.
44+
</header>

0 commit comments

Comments
 (0)