sphinx-java-autodoc
Publish your Java library's guides and API reference in one searchable Sphinx
site. sphinx-java-autodoc reads your Java sources and Javadoc comments with the
JDK compiler APIs and renders them as native Sphinx content:
- Generated pages for classes, interfaces, enums, records, annotation types and nested types.
- Signatures, overloads, Javadoc links and inherited method documentation.
- Class excerpts in handwritten guides, and cross-project links through intersphinx.
- Content-based caching: pages refresh when sources change.
Extraction never runs application classes or annotation processors, and never downloads Java dependencies. See the Apache Commons Lang example for the output.
Requirements
Python 3.12+, Sphinx 9.1.x, and JDK 25 for extraction. Your library can keep targeting Java 17 or 21. See compatibility and limits.
Quick start
uv add sphinx-java-autodoc
In docs/conf.py:
extensions = ["sphinx_java_autodoc"]
java_sources = ["../src/main/java"]
java_release = "17"
java_generate = "api"
java_visibility = "public"
Add api/index to the toctree in docs/index.rst, then build:
uv run sphinx-build -W --keep-going -n docs docs/_build/html
Next: the first-build walkthrough, writing guides, dependencies and CI and the configuration reference.
Development
See CONTRIBUTING.md. MIT licensed.
Metadata
Release files for sphinx-java-autodoc 0.4.0
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 |
|---|---|---|---|---|
| sphinx_java_autodoc-0.4.0.tar.gz | 90.4 kB | With provenance | Details for sphinx_java_autodoc-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_java_autodoc-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for sphinx_java_autodoc-0.4.0-py3-none-any.whl |
Total release size: 129.1 kB
Release files / sphinx_java_autodoc-0.4.0.tar.gz
| Download URL | sphinx_java_autodoc-0.4.0.tar.gz |
|---|---|
| Size | 90.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69ca4c0d5fc558ba57eda99f3296c72019c8eb3246f6ca274d282d7d34465c05
|
|
BLAKE2b-256 checksum How to use checksums |
9f6026b2638eaff0765076f4fc6cbc64203cc806cb3e062cecb25ab1c753ab6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logRelease files / sphinx_java_autodoc-0.4.0-py3-none-any.whl
| Download URL | sphinx_java_autodoc-0.4.0-py3-none-any.whl |
|---|---|
| Size | 38.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a4aba07dd309b89a116aab7f0311c547445fcb0c9d178b7d13d4eaea20bde6a
|
|
BLAKE2b-256 checksum How to use checksums |
a47c056ab7313872c73c8d7cd2c023e187afc37bdd3257e1cef9a3245b991eb6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logSecurity for sphinx-java-autodoc 0.4.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sphinx_java_autodoc-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logA 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.