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