Skip to main content

Sphinx "sadisplay" extension

Project description

Rendering PlantUML diagrams or GraphViz directed graphs generated from SqlALchemy models.

Most part of code based on sphinxcontrib-plantuml source code.

Install

pip install sphinxcontrib-sadisplay

Usage

Add sadisplay to extensions list:

extenstion = ['sphinxcontrib.sadisp', ]

Add options to conf.py:

plantuml = 'java -jar plantuml.jar'.split()
graphviz = 'dot -Tpng'.split()
sadisplay_default_render = 'plantuml'

Render image:

.. sadisplay::
    :module: myapp.model.user, myapp.model.post

Render link to image (html only):

.. sadisplay::
    :module: myapp.model.user, myapp.model.post
    :link:
    :alt: My Schema
    :render: graphviz

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

Built Distribution

File details

Details for the file sphinxcontrib-sadisplay-0.3.5.dev20210512.tar.gz.

File metadata

  • Download URL: sphinxcontrib-sadisplay-0.3.5.dev20210512.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.2

File hashes

Hashes for sphinxcontrib-sadisplay-0.3.5.dev20210512.tar.gz
Algorithm Hash digest
SHA256 be45652e02cc7dbe39ffa37f4b078ab231ab30b5bf246869f8cb75a3313a7a45
MD5 f6d04e670cc4061d56aca3a4915b95fb
BLAKE2b-256 effe139a096e83fa8bc605f0addf97dfdb96030d9d6988023adcb987a330bdc7

See more details on using hashes here.

File details

Details for the file sphinxcontrib_sadisplay-0.3.5.dev20210512-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_sadisplay-0.3.5.dev20210512-py3-none-any.whl
Algorithm Hash digest
SHA256 0f61e95f226349aff6b72d7c9faf2690107867adcc150f741856797e4bccae66
MD5 668364fda4f5052b33c9bb3f167f5a41
BLAKE2b-256 6bc0759455322ece0f497876e6b75687ac89ba972987c74e96b77dfe461ec991

See more details on using hashes here.

Supported by

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