Then I navigate to the root of my project, in the terminal, and run jazzy which creates a folder called "docs" with a website that displays documentation for 1 class. I have 87 classes which I can visibly see jazzy looping through in the terminal output.
By default, jazzy only documents public declarations. To generate documentation for declarations with a lower accessibility level (internal or private), please set the --min-acl flag to internal or private.
Of course, having a directory full of HTML is only half the battle. Your next task is to get it hosted somewhere online and maybe even set up a CI task to automate that process so that your published documentation stays up-to-date as your development progresses.
Making the plugin dependency conditional means that nothing will break even if the swift-tools-version of your manifest is for an earlier version of Swift than 5.6. Naturally, this is unnecessary if your package only supports Swift 5.6 and above.
Note: We'd like to thank the following package authors for coming on board with our documentation hosting feature so early. The feature is fully released and stable now and available for all package authors. for more information, see our SPIManifest documentation.
If you use Swift concurrency, this feature will stitch your stack traces together. That means you will be able to see the full stack trace of your async code.For this to happen you need to enable the swiftAsyncStacktraces option.You can also enable this in your Objective-C projectRepresents your service in Sentry and allows you to scope events to a distinct application., however, only async code written in Swift will be stitched together.
The init command has an option called --repository-version which canbe used to explicitly set the version of the new repository. By default, thecurrent stable version is used (see table below). The alias latest willalways resolve to the latest repository version. Have a look at the designdocumentationfor more details.
A more advanced version of this setup forbids specific hosts from removingfiles in a repository. See the blog post by Simon Ruderichfor details and the documentation for the forget command to learn aboutimportant security considerations.
df19127ead