From 7163cf8868bf8d79e1768f9a7442a8d4346f889f Mon Sep 17 00:00:00 2001 From: Ryan Nystrom Date: Thu, 20 Oct 2016 09:23:30 -0700 Subject: [PATCH] Workaround Jazzy script bug Summary: Temporary fix for the doc generation bug. Works now by simply running `$ ./build_docs.sh`. cc jessesquires that this fix is good for now Fixes #55 Jazzy bug at realm/jazzy#667 Closes https://github.com/Instagram/IGListKit/pull/93 Differential Revision: D4051337 Pulled By: jessesquires fbshipit-source-id: 2ad1c45df55ca61ef9a243d0ad33af20b8349f96 --- build_docs.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build_docs.sh b/build_docs.sh index dd8442b1..1d18391a 100755 --- a/build_docs.sh +++ b/build_docs.sh @@ -3,6 +3,12 @@ # Docs by jazzy # https://github.com/realm/jazzy # ------------------------------ +SOURCE=Source +SOURCE_TMP=IGListKit + +# temporary workaround when using SPM dir format +# https://github.com/realm/jazzy/issues/667 +mv $SOURCE $SOURCE_TMP jazzy \ --objc \ @@ -13,6 +19,9 @@ jazzy \ --sdk iphonesimulator \ --module 'IGListKit' \ --framework-root . \ - --umbrella-header Source/IGListKit.h \ + --umbrella-header $SOURCE_TMP/IGListKit.h \ --readme README.md \ --output docs/ + +# restore the dir per the jazzy issue +mv $SOURCE_TMP $SOURCE