IGListKit/scripts/build_docs.sh
Nate Stedman 1a44045dce Run lint on IGListKit
Differential Revision: D19141253

fbshipit-source-id: 9ed4c278a91bb48a1f6d33cafa9ce8f21861573d
2019-12-19 09:34:42 -08:00

31 lines
852 B
Bash
Executable file

#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
if ! which jazzy >/dev/null; then
echo "Jazzy not detected: You can download it from https://github.com/realm/jazzy"
exit
fi
# Docs by jazzy
# https://github.com/realm/jazzy
# ------------------------------
SOURCE=Source
SOURCE_TMP=IGListKit
SOURCEDIR=Source/
jazzy \
--objc \
--clean \
--author 'Instagram' \
--author_url 'https://twitter.com/fbOpenSource' \
--github_url 'https://github.com/Instagram/IGListKit' \
--sdk iphonesimulator \
--module 'IGListKit' \
--framework-root $SOURCEDIR/ \
--umbrella-header $SOURCEDIR/$SOURCE_TMP/IGListKit.h \
--readme README.md \
--documentation "Guides/*.md" \
--output docs/