Skip to content

WaveDrom documentation fix + other doc updates#461

Merged
AlexJones0 merged 5 commits intolowRISC:mainfrom
AlexJones0:doc_fixes
Apr 14, 2026
Merged

WaveDrom documentation fix + other doc updates#461
AlexJones0 merged 5 commits intolowRISC:mainfrom
AlexJones0:doc_fixes

Conversation

@AlexJones0
Copy link
Copy Markdown
Contributor

@AlexJones0 AlexJones0 commented Apr 10, 2026

Closes #423.
Closes #199.
Closes #146.

Mostly focused around fixing the existing WaveDrom issue. Also solves a couple of outstanding issues where linked documentation is not pinned to the correct revision, causing it to become out of date as the relevant vendored blocks are changed upstream. Maybe it would be better to just include the old OT docs in-place (like we do for SPI Host) now that WaveDrom is fixed, but for now this keeps the changes simple. Finally, updates the PLIC documentation since this was entirely out of date at this point.

Tested locally using:

nix build .#sonata-documentation
python -m http.server -d result

Fix execution environment for the WaveDrom mdbook preprocessor by
explicitly providing Python 3 as a native build input and invoking the
preprocessor via the mdBook command configuration, avoiding reliance on
the `/usr/bin/env` shebang resolution that seemed to not be working with
Nix.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
Ensure that WaveDrom DOM manipulation runs after mdBook mutations
complete by switching from window load to `DomContentLoaded`. Should
hopefully prevent partial DOM rewriting which is the likely cause of the
issues in rendering.

Issues likely appeared at a certain point as a newer version of mdBook
was pulled in that has some different DOM mutation behaviour.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
Make sure that the linked documentation actually reflects the state of
the registers, even if it isn't on the rendered OpenTitan site. Also
make a couple of grammatical fixes and correct a typo.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
These were out of date for the newer releases which combined multiple
interrupt sources into a single shared interrupt line per
block/instance, and which also added more interrupt sources (GPIO, USB
device, hardware revoker).

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
SPI interrupts have been implemented in HW for a while, these docs are
just out of date.

Signed-off-by: Alex Jones <alex.jones@lowrisc.org>
@AlexJones0 AlexJones0 merged commit 21e84af into lowRISC:main Apr 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wavejson broken in documentation Wavedrom rendering broken in sonata documentation I2C documentation discrepancy

2 participants