The installer pages need to be postprocessed a bit to have the latest version on them, so this updates them to ensure that we're shipping the postprocessed version at `/installer` instead of the raw versionsmaster
parent
6ed5b00f5b
commit
84b1a769ca
@ -1,20 +1,20 @@ |
|||||||
use std::fs; |
use std::fs; |
||||||
|
|
||||||
fn main() { |
fn main() { |
||||||
fs::create_dir_all("docs/book/installer").unwrap(); |
fs::create_dir_all("docs/installer").unwrap(); |
||||||
fs::copy( |
fs::copy( |
||||||
|
"docs/_installer/wasm-pack.js", |
||||||
"docs/installer/wasm-pack.js", |
"docs/installer/wasm-pack.js", |
||||||
"docs/book/installer/wasm-pack.js", |
|
||||||
).unwrap(); |
).unwrap(); |
||||||
let index = fs::read_to_string("docs/installer/index.html").unwrap(); |
let index = fs::read_to_string("docs/_installer/index.html").unwrap(); |
||||||
fs::write( |
fs::write( |
||||||
"docs/book/installer/index.html", |
"docs/installer/index.html", |
||||||
fixup(&index), |
fixup(&index), |
||||||
).unwrap(); |
).unwrap(); |
||||||
|
|
||||||
let init = fs::read_to_string("docs/installer/init.sh").unwrap(); |
let init = fs::read_to_string("docs/_installer/init.sh").unwrap(); |
||||||
fs::write( |
fs::write( |
||||||
"docs/book/installer/init.sh", |
"docs/installer/init.sh", |
||||||
fixup(&init), |
fixup(&init), |
||||||
).unwrap(); |
).unwrap(); |
||||||
} |
} |
Loading…
Reference in new issue