Adjust Fastlane to build documentation for new versions
This commit is contained in:
parent
1f9db1283e
commit
d86a241982
|
@ -5,6 +5,14 @@ default_platform :ios
|
|||
platform :ios do
|
||||
|
||||
|
||||
# Documentation ==============
|
||||
|
||||
desc "Build Documentation"
|
||||
lane :documentation do
|
||||
docc_web
|
||||
end
|
||||
|
||||
|
||||
# Lint =======================
|
||||
|
||||
desc "Run SwiftLint"
|
||||
|
@ -30,7 +38,7 @@ platform :ios do
|
|||
|
||||
lint
|
||||
test
|
||||
docc
|
||||
documentation
|
||||
|
||||
bump_type = options[:type]
|
||||
version = version_bump_podspec(
|
||||
|
@ -95,27 +103,4 @@ platform :ios do
|
|||
--hosting-base-path SwiftKit')
|
||||
end
|
||||
|
||||
desc "Build static web documentation (macOS only)"
|
||||
lane :docc_web_plugin do
|
||||
sh('cd .. && mkdir -p Docs')
|
||||
sh('cd .. && swift package \
|
||||
--allow-writing-to-directory Docs \
|
||||
generate-documentation \
|
||||
--disable-indexing \
|
||||
--transform-for-static-hosting \
|
||||
--hosting-base-path SwiftKit \
|
||||
--output-path Docs/web')
|
||||
end
|
||||
|
||||
desc "Build and preview static documentation website (macOS only)"
|
||||
lane :docc_webpreview_plugin do
|
||||
sh('cd .. && mkdir -p Docs')
|
||||
sh('cd .. && swift package \
|
||||
--disable-sandbox \
|
||||
preview-documentation \
|
||||
--transform-for-static-hosting \
|
||||
--hosting-base-path SwiftKit \
|
||||
--output-path Docs/web')
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue