From f4ed3b49d964456bb2b907b629f78c698609f391 Mon Sep 17 00:00:00 2001 From: Julian Locke Date: Wed, 3 Apr 2024 11:14:26 -0400 Subject: [PATCH] Update documentation script to remove symlink and use podfile for module spec --- Format/generate_docs.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Format/generate_docs.sh b/Format/generate_docs.sh index 8fcd1ce0..d79044fb 100755 --- a/Format/generate_docs.sh +++ b/Format/generate_docs.sh @@ -21,12 +21,13 @@ else echo "Generating documents..." cd .. - jazzy --readme $sdk_repo_location/README.md --config $sdk_repo_location/.jazzy.json --github_url https://github.com/dropbox/SwiftyDropbox --module-version $sdk_version --module SwiftyDropbox -o $docs_location + jazzy --readme $sdk_repo_location/README.md --config $sdk_repo_location/.jazzy.json --github_url https://github.com/dropbox/SwiftyDropbox --module-version $sdk_version --podspec SwiftyDropbox.podspec -o $docs_location cd - cd $docs_repo_location/api-docs - rm latest - ln -s $sdk_version latest + rm -rf latest + mkdir latest + cp -R $sdk_version/* latest/ cd - echo "Finished generating docs to: $docs_repo_location/api-docs."