File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change
1
+ HOW_STATUS=0
2
+
1
3
# NOTE redirections have to be done this way because:
2
4
# 1. Travis doesn't deploy symlinks (https://github.com/travis-ci/dpl/issues/912)
3
5
# 2. GitHub Pages uses symlinks to change the displayed page but the URL is not
@@ -43,5 +45,7 @@ how-install() {
43
45
}
44
46
45
47
how-generate () {
46
- quickdop -f $HOW_DOC $HOW_OUT -t json -c $HOW_CONFIG -viu
48
+ if ! quickdop -f $HOW_DOC $HOW_OUT -t json -c $HOW_CONFIG -viu; then
49
+ HOW_STATUS=1
50
+ fi
47
51
}
Original file line number Diff line number Diff line change 1
1
language : c
2
2
3
- env :
4
- - HOW_DOC=doc # replace "doc" with the name of your documentation directory
5
- - HOW_CONFIG=how.json # replace "how.json" with the name of your file
6
- - HOW_OUT=_doc # replace "_doc" with the name of the build directory you like (*)
3
+ # replace HOW_DOC with the name of your documentation directory
4
+ # replace HOW_CONFIG with the name of your configuration file
5
+ # replace HOW_OUT with the name of the build directory you like (*)
6
+ env : HOW_DOC=doc HOW_CONFIG=how.json HOW_OUT=_doc
7
7
8
8
install :
9
9
- wget https://ocsigen.org/how.sh
@@ -12,8 +12,15 @@ install:
12
12
13
13
script :
14
14
- how-generate
15
+ # You can add here your redirections. There are two types of redirections:
16
+ # * Simple redirections from one page to another. Use `how-redirect`.
17
+ # * Manual redirections from one manual version to another (likely more recent). Use `how-redirect-manual`.
18
+ # The variable HOW_LATEST contains the number of the more recent version that is not `dev`.
19
+ # The other environment variables are also accessible.
20
+ # Examples:
15
21
# - how-redirect "$HOW_LATEST/manual/intro" $HOW_OUT/index.html # redirect index.html to the intro of the latest version
16
22
# - how-redirect-manual 2.4.0 1.1.2 # redirect v1.1.2 manual to v2.4.0 manual
23
+ - exit $HOW_STATUS
17
24
18
25
deploy :
19
26
provider : pages
You can’t perform that action at this time.
0 commit comments