Skip to main content

Sphinx API Sidebar

A Sphinx extension for displaying any generated static API documentation in a sidebar.

Overview

This Sphinx extension allows you to include and display static API documentation (e.g., JavaDoc, Doxygen) in the sidebar of your Sphinx documentation. It updates the html_context with the API documentation paths, which can then be used to render the API documentation sidebar template.

This extension serves as an immediate workaround to make Sphinx consume API docs in HTML format from various languages without building additional deeply integrated extensions for each type of API docs.

Installation

To install the sphinx-api-sidebar extension, you can use pip:

pip install sphinx-api-sidebar

Usage

  1. To enable the sphinx-api-sidebar extension in your Sphinx documentation project, add it to the extensions list in your conf.py file:
extensions = [
    'sphinx_api_sidebar',
    # Other extensions...
]
  1. To use a custom command to generate your API documentation or specify different directories, you can set the api_docs_generators configuration value in your conf.py file:
api_docs_generators = [
  {
    'command': '<your_api_docs_build_command_1>',
    'outputs': [
            {
                'name': '<generated_api_doc_name_1>',
                'path': '<path_to_generated_api_doc_1>' # path should be relative to the docs directory
            },
            {
                'name': '<generated_api_doc_name_2>',
                'path': '<path_to_generated_api_doc_2>'
            },
            # ...
        ]
  },
  {
    'command': '<your_custom_build_command_2>',
    'outputs': [
            {
                'name': '<generated_api_doc_name_3>',
                'path': '<path_to_generated_api_doc_3>'
            },
            # ...
        ]
  },
  # more groups of generated api docs
]

Replace <your_custom_build_command_*>, <generated_api_doc_name_*>, and <path_to_generated_api_doc_*> with the appropriate values for your project.

  1. Update your conf.py file to include the api_docs_sidebar.html template in the html_sidebars configuration:
html_sidebars = {
    '**': [
        # ... other sidebars ...
        'sidebar/api_docs_sidebar.html',
    ]
}

Metadata

Release files for sphinx-api-sidebar 0.3.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 sphinx-api-sidebar 0.3.2
File Size Uploaded Provenance Actions
sphinx_api_sidebar-0.3.2.tar.gz 4.8 kB Without provenance Details for sphinx_api_sidebar-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-api-sidebar 0.3.2
File Interpreter ABI Platform Actions
sphinx_api_sidebar-0.3.2-py3-none-any.whl Python 3 none any Details for sphinx_api_sidebar-0.3.2-py3-none-any.whl

Total release size: 10.2 kB

Release files / sphinx_api_sidebar-0.3.2.tar.gz

Download URL sphinx_api_sidebar-0.3.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c35d4cefff58f05aa9a7411dbecdf74b376c50e06bd7bdf8f9299f33ca00b95b
BLAKE2b-256 checksum
How to use checksums
e2cc1f4f161d7d2f0294438f74259d9b57b23c65150f3861e40c1cb7ebe1409a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / sphinx_api_sidebar-0.3.2-py3-none-any.whl

Download URL sphinx_api_sidebar-0.3.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5dde6707b9cfccb9e76d282d63646849766c3d981385bd46ae77cbe9ca590db
BLAKE2b-256 checksum
How to use checksums
43749783c446be0ea589220fff35dd1781bd02abd198aa84eff0dc90233c2377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for sphinx-api-sidebar 0.3.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