Skip to main content

Add support for tree view to Sphinx.

Project description

Sphinx Tree View

A lightweight Sphinx extension that provides a customizable, filesystem-like tree view for your documentation.

Installation

Install the extension via PyPI:

pip install sphinx-treeview

Then, add it to the extensions list in your conf.py:

extensions = ["sphinx_treeview"]

If you are using MyST Parser to write Markdown documentation, it’s recommended to enable the colon_fence syntax extension:

extensions = ["myst_parser", "sphinx_treeview"]
myst_enable_extensions = ["colon_fence"]

Example

Example Image

:::{treeview}
- {dir}`folder` folder
  - {dir}`file` file.jpeg
  - {dir}`file` file.png
:::

License

This project is licensed under the MPL-2.0 License. See the LICENSE file for details. Images came from pictogrammers and are under Apache-2.0 License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_treeview-1.1.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_treeview-1.1.1-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_treeview-1.1.1.tar.gz.

File metadata

  • Download URL: sphinx_treeview-1.1.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.25.3 CPython/3.13.3 Linux/6.11.0-1015-azure

File hashes

Hashes for sphinx_treeview-1.1.1.tar.gz
Algorithm Hash digest
SHA256 0d93c1265cc58190714a2800cdd72580f370a8b580479dca7a5883a222fa3a6f
MD5 7343a65cb575744173b5dc269d19c549
BLAKE2b-256 3145701be0ec3e658f59a25058ffaf585adc1c3a761dd3e5c47fad38cba6ec21

See more details on using hashes here.

File details

Details for the file sphinx_treeview-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: sphinx_treeview-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.25.3 CPython/3.13.3 Linux/6.11.0-1015-azure

File hashes

Hashes for sphinx_treeview-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 281a3b25185bc52e38a5c37dd83732466b34967b994a0c5c034ceeeb4b2f7136
MD5 3f9846a8b118f7476388763a257078f3
BLAKE2b-256 5c58d16abc76821b7fa1a4e45f7574d6420b13e06249976b5a3d95e29c3af258

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page