👍🎉 First off, thanks for taking the time to contribute! 🎉👍
Swift Documentation content follows Apple Style Guide and the terms and rules from the TSPL style guide.
By submitting a pull request, you represent that you have the right to license your contribution to the community, and agree by submitting the patch that your contributions are licensed under the Apache 2.0 license (see LICENSE).
For small changes, like typo fixes and revisions within a few paragraphs, the discussion of those changes is usually small enough to be part of the pull request.
For large changes, such as new articles, guides, or larger sets of content, please start a thread in the Swift forums to discuss what you are proposing to add. Depending on the size and scope, the project may ask for an outline and/or the intended scope prior to accepting any pull requests for content itself. The work on larger sets of content may also be tracked with issues on this repository in order to coordinate collaboration.
Build, check, and preview the documentation using the swift-docc-plugin tooling included with each of the packages.
To check the documentation:
swift package generate-documentation --analyze --warnings-as-errorsTo preview a documentation catalog:
swift package --disable-sandbox preview-documentationUse the following steps when creating a new pull request:
- Test that your changes don't have any warnings:
swift package generate-documentation --analyze --warnings-as-errors- Create a pull request in this repository.
- Write a brief message in the pull request to introduce your work in context.