Skip to content

Feedback on v0.1.0 #1

@martinpriestley

Description

@martinpriestley

Hoorah! I'd just started to dabble with a ReST exporter of my own, but as ever you've done something much more comprehensive.

I see you're soliciting feedback on Reddit. Here's some thoughts after a brief play:

  1. Fields
  • field descriptions under a docnode / doctree haven't been given labels (or indeed headings), so we can't refer to them (except via the HTML)
  • docnode can't be used on a field in isolation. Not sure if that's desirable or not, but it's not what your documentation implies.
  1. RDL formatcode support
  • I can see you're not a fan, but using these rather than Markdown does keep one's RDL compatible with other tools.
  • In an ideal world the formatting would be translated to ReST, for Sphinx to render in any builder. However, ReST text formatting is very limited (no underlining, strikethrough, colours, and heaven forefend you should want bold AND italic), so lots of the RDLFC wouldn't map cleanly without lots of custom style jazz.
  • For the HTML builder you've already done the work in SystemRDL compiler. Why not use get_html_desc() directly?
  • https://github.com/SystemRDL/systemrdl-compiler/blob/e6bd222554912fdc6a183e6674a6ba5d75e07632/src/systemrdl/core/rdlformatcode.py#L10 is straightforward to rewrite to use LaTeX tags
  • I don't know about epub or other builders
  1. Cross references from node descriptions
  • Is there a sensible way to refer to a node from another node's description, and have that render as a hyperlink?
  • Similarly, is there a sensible way to refer embed :ref: to other labels in the document? (At this point the RDL descriptions might become less meaningful outside of the Sphinx doc, since the links can't work, but that could be a reasonable price to pay for some).
  1. Enum descriptions in a docnode
  • missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions