add document lane.

This commit is contained in:
shogo4405 2023-04-26 23:18:23 +09:00
parent c84dce18ba
commit 954a3c85f4
2 changed files with 13 additions and 0 deletions

View File

@ -19,3 +19,8 @@ lane :review do
carthage(use_xcframeworks: true) if Helper.is_ci?
scan(scheme: 'Tests')
end
desc "Creates documents."
lane :document do
sh('swift package --allow-writing-to-directory ./docs generate-documentation --target HaishinKit --disable-indexing --hosting-base-path HaishinKit.swift --output-path ./docs')
end

View File

@ -21,6 +21,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
[CI] Review PullRequest.
### document
```sh
[bundle exec] fastlane document
```
Creates documents.
----
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.