From a59cf6ad5fc277ee9ecad04a3927d67f1b90bd0b Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 7 Mar 2019 08:32:26 -0800 Subject: [PATCH] Flag gh-pages docs as unpublished This commit adds a header dialog to the gh-pages mdbook documentation of this repository to indicate that it represents unpublished documentation that may not reflect the currently published version of `wasm-pack`. The header redirects users to https://rustwasm.github.io/docs/wasm-pack/ which has the documentation for the latest published version of `wasm-pack`. --- .travis.yml | 2 +- docs/_theme/header.hbs | 44 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 docs/_theme/header.hbs diff --git a/.travis.yml b/.travis.yml index ae890b7..be8f77c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,7 +62,7 @@ matrix: - (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.2" mdbook) - cargo install-update -a script: - - (cd docs && mdbook build) + - (cd docs && mv _theme theme && mdbook build) - rustc ./docs/_installer/build-installer.rs - ./build-installer deploy: diff --git a/docs/_theme/header.hbs b/docs/_theme/header.hbs new file mode 100644 index 0000000..61e24cf --- /dev/null +++ b/docs/_theme/header.hbs @@ -0,0 +1,44 @@ + +
+ This is the unpublished documentation of + wasm-pack, the published documentation is available + + on the main Rust and WebAssembly documentation site + . Features documented here may not be available in released versions of + wasm-pack. +