-
Notifications
You must be signed in to change notification settings - Fork 4
/
generate-doc.sh
executable file
·42 lines (34 loc) · 1.09 KB
/
generate-doc.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
OUTPUT_DIR="./build"
mkdir -p "$OUTPUT_DIR"
mkdir -p "/tmp/doc-templates"
SOURCE_PATHS=""
MODULES="BMCore BMUICore BMUIExtensions BMMedia BMGoogle BMYouTube BMXML BMLocation BMCoreData BMRestKit"
for MODULE_NAME in $MODULES
do
Bin/ClassOverviewGenerator -h "__${MODULE_NAME} Classes__\n" -i ./BMCommons/Modules/${MODULE_NAME}/Sources/Classes "/tmp/doc-templates/${MODULE_NAME}ClassesOverview-template.md"
SOURCE_PATHS="$SOURCE_PATHS ./BMCommons/Modules/${MODULE_NAME}/Sources/Classes"
done
appledoc \
--project-name BMCommons \
--project-company "BehindMedia" \
--company-id com.behindmedia \
--keep-undocumented-objects \
--keep-undocumented-members \
--logformat xcode \
--exit-threshold 2 \
--no-repeat-first-par \
--ignore *_Private.h \
--ignore .m \
--include "/tmp/doc-templates" \
--include ./Documentation/Templates \
--index-desc ./Documentation/index.md \
--output "$OUTPUT_DIR" \
--keep-intermediate-files \
--no-warn-undocumented-object \
--no-warn-undocumented-member \
--no-warn-missing-arg \
--no-warn-empty-description \
--clean-output \
--create-html \
$SOURCE_PATHS
rm -rf "/tmp/doc-templates"