File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ main() {
11
11
12
12
# build latest docs
13
13
cp -r target/doc $td /api
14
+ sed ' s|URL|rtfm/index.html|g' redirect.html > $td /api/index.html
15
+
14
16
mkdir $td /book/
15
- cp redirect.html $td /index.html
17
+ sed ' s|URL|book/en|g ' redirect.html > $td /index.html
16
18
for lang in ${langs[@]} ; do
17
19
( cd book/$lang && mdbook build )
18
20
cp -r book/$lang /book $td /book/$lang
@@ -30,16 +32,21 @@ main() {
30
32
pushd $src
31
33
cargo doc || cargo doc --features timer-queue
32
34
cp -r target/doc $td /$prefix /api
35
+ sed ' s|URL|rtfm/index.html|g' redirect.html > $td /$prefix /api/index.html
33
36
for lang in ${langs[@]} ; do
34
37
( cd book/$lang && mdbook build )
35
38
cp -r book/$lang /book $td /$prefix /book/$lang
36
39
cp LICENSE-* $td /$prefix /book/$lang /
37
40
done
41
+ sed ' s|URL|book/en|g' redirect.html > $td /$prefix /index.html
38
42
popd
39
43
40
44
rm -rf $src
41
45
done
42
46
47
+ # forward CNAME file
48
+ cp CNAME $td /
49
+
43
50
mkdir ghp-import
44
51
curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz |
45
52
tar --strip-components 1 -C ghp-import -xz
Original file line number Diff line number Diff line change 3
3
< html lang ="en-US ">
4
4
< head >
5
5
< meta charset ="UTF-8 ">
6
- < meta http-equiv ="refresh " content ="0; url=https://rtfm-rs.github.io/cortex-m-rtfm/book/en/ ">
6
+ < meta http-equiv ="refresh " content ="0; url=URL ">
7
7
< script type ="text/javascript ">
8
- window . location . href = "https://rtfm-rs.github.io/cortex-m-rtfm/book/en/ "
8
+ window . location . href = "URL "
9
9
</ script >
10
10
< title > Page Redirection</ title >
11
11
</ head >
12
12
< body >
13
13
<!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
14
- If you are not redirected automatically, follow this < a href ='https://rtfm-rs.github.io/cortex-m-rtfm/book/en/ '> link to example </ a > .
14
+ If you are not redirected automatically, follow this < a href ='URL '> link</ a > .
15
15
</ body >
16
16
</ html >
You can’t perform that action at this time.
0 commit comments