Update README section about docs generation
Show how to generate the Docc docs using task CLI instead of faning out to swift package docc plugin.
This commit is contained in:
@@ -123,18 +123,15 @@ Use `-v`, `-vv`, or `-vvv` to increase log verbosity. The command runs two passe
|
|||||||
|
|
||||||
Docker must be installed and running on your machine.
|
Docker must be installed and running on your machine.
|
||||||
|
|
||||||
## Documentation
|
### Documentation
|
||||||
|
|
||||||
Full API documentation is available as DocC catalogs bundled with the package. Generate them locally with:
|
Full API documentation is available as DocC catalogs bundled with the package. Generate them locally with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Inotify library
|
swift run task generate-docs
|
||||||
swift package generate-documentation --target Inotify
|
|
||||||
|
|
||||||
# Task build tool
|
|
||||||
swift package generate-documentation --target TaskCLI
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Then open the files in the newly created `public` folder.
|
||||||
Or preview in Xcode by selecting **Product > Build Documentation**.
|
Or preview in Xcode by selecting **Product > Build Documentation**.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|||||||
Reference in New Issue
Block a user