Skip to main content

HTML documentation generator for SystemRDL-based register models

Project description

build PyPI - Python Version

PeakRDL-html

Generate address space documentation HTML from compiled SystemRDL input.

Installing

Install from PyPi using pip:

python3 -m pip install peakrdl-html

Example

An example of HTML output generated from a fictional SystemRDL register description: turboencabulator.rdl.

Usage

Pass the elaborated output of the SystemRDL Compiler into the exporter.

Assuming root is the elaborated top-level node, or an internal AddrmapNode:

from peakrdl_html import HTMLExporter

exporter = HTMLExporter()

exporter.export(root, "path/to/output")

Reference

HTMLExporter(**kwargs)

Constructor for the HTML exporter class

Optional Parameters

  • markdown_inst
    • Override the class instance of the Markdown processor. See the Markdown module for more details.
    • By default, the following extensions are loaded: 'extra', 'admonition', 'mdx_math'
  • user_template_dir
    • Path to a directory where user-defined template overrides are stored.
  • user_static_dir
    • Path to user-defined static content to copy to output directory.
  • user_context
    • Additional context variables to load into the template namespace.
  • show_signals
    • Show signal components. Default is False
  • extra_doc_properties
    • List of properties to explicitly document.

      Nodes that have a property explicitly set will show its value in a table in the node's description. Use this to bring forward user-defined properties, or other built-in properties in your documentation.

  • generate_source_links
    • If True, attempts to generate links back to original RDL source deginitions. Defaults to True.
  • gitmetheurl_translators
    • Override the list of GitMeTheURL translators to use when generating source links. If unset, GitMeTheURL uses its builtin translators, as well as any installed plugins.

HTMLExporter.export(node, output_dir, **kwargs)

Perform the export!

Parameters

  • nodes
    • Top-level node to export. Can be the top-level RootNode or any internal AddrmapNode. Can also be a list of RootNode and any internal AddrmapNode.
  • output_dir
    • HTML output directory.

Optional Parameters

  • footer
    • Override footer text.
  • title
    • Override title text.
  • home_url
    • If a URL is specified, adds a home button to return to a parent home page.
  • skip_not_present
    • Control whether nodes with ispresent=false are generated. Default is True.

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

peakrdl-html-2.7.0.tar.gz (5.6 MB view details)

Uploaded Source

File details

Details for the file peakrdl-html-2.7.0.tar.gz.

File metadata

  • Download URL: peakrdl-html-2.7.0.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for peakrdl-html-2.7.0.tar.gz
Algorithm Hash digest
SHA256 a1a003f2e362c7a81db8873651990cee43b3fb3d37068b658feb6d774c1bb5e0
MD5 2544536350973298e3cbef3ac47c843a
BLAKE2b-256 30ca84b2da06569418d4d26006be0171492b2fc727a36971b1c46909009a7dce

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