Skip to main content

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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swift-rst-docs 2.2
File Size Uploaded Provenance Actions
swift_rst_docs-2.2.tar.gz 216.3 kB Without provenance Details for swift_rst_docs-2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swift-rst-docs 2.2
File Interpreter ABI Platform Actions
swift_rst_docs-2.2-py3-none-any.whl Python 3 none any Details for swift_rst_docs-2.2-py3-none-any.whl

Total release size: 234.3 kB

Release files / swift_rst_docs-2.2.tar.gz

Download URL swift_rst_docs-2.2.tar.gz
Size 216.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f053ce721156a6b78e88d1727fee442bc586ec157d3ae91e2e3c2ad04f88380e
BLAKE2b-256 checksum
How to use checksums
69e448955d10fbc58f95f8874a12284afef8417709cabe7fbd8c1dcd594ead53
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.2-py3-none-any.whl

Download URL swift_rst_docs-2.2-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d412f122b9acfa0e490b93ba3dcdb1d2ddad0ccbddd8c5658236b40a1d72025b
BLAKE2b-256 checksum
How to use checksums
4f060f58b2b7e3a99a1b791014c31700bb71ac26ab76f31e286f21850a57b1f8
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.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page