IGListKit/scripts/build_docs.sh
Zhisheng Huang 0ccf7fef5d Fix the build_doc.sh and regenerate all the docs! (#1393)
Summary:
## Changes in this pull request

Get this fix and make it ready for 4.0 release.

### Checklist

- [ ] All tests pass. Demo project builds and runs.
- [ ] I added tests, an experiment, or detailed why my change isn't tested.
- [ ] I added an entry to the `CHANGELOG.md` for any breaking changes, enhancements, or bug fixes.
- [ ] I have reviewed the [contributing guide](https://github.com/Instagram/IGListKit/blob/master/.github/CONTRIBUTING.md)
Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1393

Reviewed By: iperry90

Differential Revision: D18618773

Pulled By: lorixx

fbshipit-source-id: 0360c36d85dc5db15d7e08bdf68ec9c8be992499
2019-11-20 16:23:15 -08:00

27 lines
675 B
Bash
Executable file

#!/bin/bash
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/