forked from jverkoey/nimbus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
builddocs.bash
37 lines (27 loc) · 976 Bytes
/
builddocs.bash
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
######################
# Clean the existing docs.
rm -rf output/
rm -rf output-docset/
rm -rf ../../nimbusdocs/*.*
rm -rf ../../nimbusdocs/docsets/
rm -rf ../../nimbusdocs/Makefile
######################
# Build the web version of the docs
cd ../
/Applications/Doxygen.app/Contents/Resources/doxygen docs/Doxyfile > /dev/null
cd docs/
# Move the docs to the nimbus docs folder.
cp -r output/html/* ../../nimbusdocs/
######################
# Build the docset version of the docs
/Applications/Doxygen.app/Contents/Resources/doxygen Doxyfile-docset > /dev/null
# Build the docset.
cd output-docset/html
make > /dev/null
# Archive the docset
$(xcode-select -print-path)/usr/bin/docsetutil package org.jeffverkoeyen.nimbus.docset > /dev/null
# Move the docs to the nimbus docs folder.
mkdir -p ../../../../nimbusdocs/docsets/
mv org.jeffverkoeyen.nimbus.xar ../../../../nimbusdocs/docsets/org.jeffverkoeyen.nimbus.$1.xar
cd ../../
cp nimbusdocset.atom ../../nimbusdocs/