swift-rst-docs
Python library, cli and Sphinx extension to generate documentation for Swift projects from SourceKitten output files.
Installation
$ pip install swift-rst-docs
$ brew install sourcekitten
Usage
You need to generate a JSON file with SourceKitten first.
To reference symbols in your documentation, place their full name between 4 backticks. For example: ``MyStructure.hello(world:)`` or ``MySwiftLibrary.MyStructure.hello(world:)`` when referencing from another module or the documentation's overview text. This will create a link to the symbol's page.
$ sourcekitten doc [--spm] [-- <swift / xcodebuild arguments>] > documentation.json
See the documentation for the various ways of generating documentation pages and an example of a generated Swift documentation. The example documentation is in the repo's docs/swift directory and the SourceKitten documentation files are generated from the tests/MySwiftPackage/generate-documentation.sh
Metadata
Release files for swift-rst-docs 2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| swift_rst_docs-2.3.tar.gz | 215.9 kB | Without provenance | Details for swift_rst_docs-2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swift_rst_docs-2.3-py3-none-any.whl | Python 3 | none | any | Details for swift_rst_docs-2.3-py3-none-any.whl |
Total release size: 233.6 kB
Release files / swift_rst_docs-2.3.tar.gz
| Download URL | swift_rst_docs-2.3.tar.gz |
|---|---|
| Size | 215.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96f16463270ebf952d5ad41103b98a2dade457c12cb0df87da4d5af49e8b404d
|
|
BLAKE2b-256 checksum How to use checksums |
040456a0d0079dd8f1b0c12ab272cb529b278eee3c2eec390550ce1581ae9fc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Release files / swift_rst_docs-2.3-py3-none-any.whl
| Download URL | swift_rst_docs-2.3-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c65ccf93a6859cf41afc3cfe17df42c9d93e1bd5e5058313e36dc7bf60973248
|
|
BLAKE2b-256 checksum How to use checksums |
b5fffc16df7134caef9510240f5d76e4158ee997f9e04cd68e032f4c65c0ea28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.2
|
Security for swift-rst-docs 2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.