forked from dhis2/dhis2-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·65 lines (51 loc) · 1.92 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
# we use the build resources from the master branch (commented out for master itself)
# git checkout master -- src/commonmark/en/resources
# git checkout master -- tools
# git checkout master -- lib
# git checkout master -- venv_setup
# git checkout master -- requirements.txt
# perform all actions relative to the path of this script
SCRIPT_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$SCRIPT_DIR" ]]; then
SCRIPT_DIR="$PWD"
else
cd $SCRIPT_DIR
SCRIPT_DIR="$PWD"
fi
# include helper functions
. "$SCRIPT_DIR/lib/doc_functions.sh"
# comment as you wish
# format:
#$> generate <doc name> <chapters subfolder> ["html","pdf","both"]
echo " - User:" >> $myml
generate "dhis2_user_manual_en" "user"
generate "dhis2_end_user_manual" "end-user"
generate "dhis2_action_tracker_manual" "at-app"
generate "dhis2_bottleneck_analysis_manual" "bna-app"
generate "dhis2_scorecard_manual" "scorecard-app"
generate "dhis2_who_data_quality_tool_guide" "dq-app"
echo " - Implementer:" >> $myml
generate "dhis2_implementation_guide" "implementer"
generate "dhis2_tracker_implementation_guide" "implementer"
generate "dhis2_android_implementation_guideline" "implementer"
generate "dhis2_android_capture_app" "android-app"
generate "dhis2_android_MDM" "mdm"
generate "user_stories_book" "user-stories"
echo " - Developer:" >> $myml
generate "dhis2_developer_manual" "developer"
generate "dhis2_android_sdk_developer_guide" "android-sdk"
echo " - Sysadmin:" >> $myml
generate "dhis2_system_administration_guide" "sysadmin"
echo " - Metadata:" >> $myml
generate "dhis2_who_digital_health_data_toolkit" "metadata"
generate "dhis2_COD" "packages"
generate "dhis2_covid19_surveillance" "packages"
generate "dhis2_IDSR" "packages"
generate "dhis2_immunisation" "packages"
generate "dhis2_RMNCAH" "packages"
generate "dhis2_malaria" "packages"
generate "dhis2_tb_surveillance" "packages"
make_mkdocs
generate "dhis2_draft_chapters" "draft"
rm -rf $tmp