Skip to content

Generate address space documentation HTML from compiled SystemRDL input

License

Notifications You must be signed in to change notification settings

RasmusGOlsen/RALBot-html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI - Python Version

RALBot-html

Generate address space documentation HTML from compiled SystemRDL input

Installing

Install from PyPi using pip:

python3 -m pip install ralbot-html

Example

An example of HTML output generated from Accelera's SystemRDL SATA AHCI reference.

https://systemrdl.github.io/RALBot-html

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 ralbot.html import HTMLExporter

exporter = HTMLExporter()

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

Reference

HTMLExporter(markdown_inst=None, user_template_dir=None, user_context={})

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.
  • 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.

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

Perform the export!

Parameters

  • node
    • Top-level node to export. Can be the top-level RootNode or 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.

About

Generate address space documentation HTML from compiled SystemRDL input

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 48.8%
  • CSS 23.7%
  • Python 15.8%
  • HTML 11.5%
  • Shell 0.2%