Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Drop wavedrom, reorder requirements #1552

Merged
merged 2 commits into from
Jan 13, 2025
Merged

docs: Drop wavedrom, reorder requirements #1552

merged 2 commits into from
Jan 13, 2025

Conversation

gastmaier
Copy link
Contributor

@gastmaier gastmaier commented Jan 13, 2025

PR Description

Sphinx-wavedrom [deps: cairocffi, CairoSVG] don't seem to be tested continuously, which leads to fatal bugs reaching production. The extension in particular has two red flags:

It renders on the client side, requiring wavedrom.js to be fetched from a different from a different domain, slowing down or even preventing the documentation if the domain is offline (cause of a previous problem).
Even though it renders on the client side in our user case, it still cairo renderer during build, even though it is unused (the root cause of the current issue)

Drop it in favor of just committing the wavedrom source (commented out in the page or as a text file in the same path) and the rendered svg.

Also, reorder requirements to have adi_doctools as the first requirement.

PR Type

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • Breaking change (has dependencies in other repos or will cause CI to fail)

PR Checklist

  • I have followed the code style guidelines
  • I have performed a self-review of changes
  • I have compiled all hdl projects and libraries affected by this PR
  • I have tested in hardware affected projects, at least on relevant boards
  • I have commented my code, at least hard-to-understand parts
  • I have signed off all commits from this PR
  • I have updated the documentation (wiki pages, ReadMe files, Copyright etc)
  • I have not introduced new Warnings/Critical Warnings on compilation
  • I have added new hdl testbenches or updated existing ones

Sphinx-wavedrom, cairocffi, CairoSVG don't seem to be tested
continuously, which leads to fatal bugs reaching production.
The extension in particular has two design oversights:

* It renders on the client side, requiring wavedrom.js to be
  fetched from a different from a different domain, slowing
  down or even preventing the documentation if the domain is
  offline (cause of a previous problem).
* Despite this, it still imports cairo during build
  (the root cause of the current issue)

Drop it in favor of just committing the wavedrom source (commented out
in the page or as a text file in the same path) and the rendered svg.

Signed-off-by: Jorge Marques <[email protected]>
Add SVG for all previously committed wavedrom diagrams:
axi_pwm_gen, axi_ad485x, add_dds, up_interface
axi_jesd204_rx, axi_jesd204_tx, axi_ad7616, axi_ad7606x

The source code is kept as a comment block.

Signed-off-by: Jorge Marques <[email protected]>
@gastmaier gastmaier merged commit 267ea02 into main Jan 13, 2025
1 check passed
@gastmaier gastmaier deleted the drop-wavedrom branch January 13, 2025 13:04
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.

2 participants