Skip to content

Commit 3fc84a4

Browse files
committed
Add documentation generation script
1 parent 5512034 commit 3fc84a4

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.generate-docs.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
set -e
3+
4+
MODULE_VERSION=$1
5+
OUTPUT=$2
6+
SWIFT_VERSION="4.0"
7+
AUTHOR="Alexis Aubry"
8+
AUTHOR_URL="https://twitter.com/_alexaubry"
9+
MODULE_NAME="HTMLString"
10+
COPYRIGHT="Copyright © 2017 $AUTHOR. Available under the MIT License."
11+
GITHUB_URL="https://github.com/alexaubry/HTMLString"
12+
GH_PAGES_URL="https://alexaubry.github.io/HTMLString"
13+
14+
jazzy \
15+
--swift-version $SWIFT_VERSION \
16+
-a "$AUTHOR" \
17+
-u "$AUTHOR_URL" \
18+
-m "$MODULE_NAME" \
19+
--module-version "$MODULE_VERSION" \
20+
--copyright "$COPYRIGHT" \
21+
-g "$GITHUB_URL" \
22+
--github-file-prefix "$GITHUB_URL/tree/master" \
23+
-r "$GH_PAGES_URL" \
24+
-o "$OUTPUT"\
25+
--min-acl public \
26+
--use-safe-filenames

0 commit comments

Comments
 (0)