Skip to content

doc: adopt pyadi-iio (cosmic/adi-doctools) Sphinx theme + targeting fixes#204

Merged
tfcollins merged 4 commits into
masterfrom
tfcollins/doc
May 22, 2026
Merged

doc: adopt pyadi-iio (cosmic/adi-doctools) Sphinx theme + targeting fixes#204
tfcollins merged 4 commits into
masterfrom
tfcollins/doc

Conversation

@tfcollins

Copy link
Copy Markdown
Collaborator

Summary

Switches the Transceiver Toolbox docs to the same Sphinx theme as pyadi-iio (the cosmic theme from adi-doctools), and cleans up a couple of doc issues along the way.

Changes

  • Theme swap (furo → cosmic / adi-doctools) to match pyadi-iio and the rest of the ADI doc fleet.
    • requirements_doc.txt: drop furo/sphinx-favicon, install adi-doctools from its release tarball, bump sphinx>=5.0.
    • conf.py: html_theme = "cosmic", add adi_doctools extension + needs_extensions floor, set html_favicon directly, trim theme options to light/dark logos, drop the furo-only DEV_BUILD announcement banner.
    • style.css: drop furo-specific sidebar/data-theme rules; keep the index-logo background fix.
    • index.md: use cosmic's native .only-light/.only-dark classes for the index-page logo.
  • System Object property dropdowns were unstyled under cosmic. Switch the sysobj.html template from sphinx_design's dropdown to adi_doctools' native collapsible directive (styled by the theme), set hide_collapsible_content = True, and drop sphinx_design entirely (it was only used for dropdown; this also removes the grid/card/tab-set/tab-item "already registered" build warnings).
  • Targeting page (targeting.md): fix the missing reference-design image (was a raw <img src="/_static/..."> absolute path that 404s under /master/; converted to a {figure} directive so Sphinx resolves/copies it), complete a truncated intro sentence, and flesh out the empty Getting Started section with prerequisites and a step-by-step targeting walkthrough.

Verification

Built locally with the cosmic theme on each change:

  • Clean build; cosmic bundle (app.min.css/app.umd.js), favicon, and light/dark header + index logos all wire up.
  • Property blocks render with the theme's native .collapsible* markup, collapsed by default; no sphinx_design conflict warnings remain.
  • The targeting image is copied into _images/ with a depth-correct src; the new sections and cross-page links render with no targeting.md warnings.

Remaining build warnings in a local build are only the MATLAB-generated System Object / reference-design pages, which are produced by gen_sysobj_doc in CI.

tfcollins added 3 commits May 22, 2026 16:48
Replace the furo theme with the cosmic theme provided by adi-doctools,
matching pyadi-iio and the rest of the ADI doc fleet.

- requirements_doc.txt: drop furo/sphinx-favicon, add adi-doctools
  tarball, bump sphinx>=5.0
- conf.py: html_theme=cosmic, add adi_doctools extension and
  needs_extensions floor, set html_favicon directly, trim theme
  options to light/dark logos, drop furo-only DEV_BUILD announcement
- style.css: drop furo sidebar/data-theme rules, keep index-logo
  background fix
- index.md: use cosmic .only-light/.only-dark image classes for the
  index-page logo
The sphinx_design 'dropdown' directive used for property entries was not
styled by the cosmic theme. Switch to adi_doctools' native 'collapsible'
directive, which the theme styles via collapsible.scss (.collapsible /
.collapsible_input / .collapsible_content), and set
hide_collapsible_content=True so properties start collapsed.

dropdown was the only sphinx_design feature in use, so drop sphinx_design
from extensions and requirements -- this also removes the grid/card/tab-set
/tab-item 'already registered' build warnings.
The reference-design diagram used a raw <img src="/_static/..."> with an
absolute path, which 404s once the docs are published under /master/ on
GitHub Pages. Switch it to a {figure} directive so Sphinx resolves and
copies the image (into _images/) like the other pages do, and add a caption.

Also complete the truncated intro sentence and flesh out the empty
Getting Started section with a Prerequisites list and a step-by-step
targeting walkthrough (tool path setup, opening a model, selecting a
reference design in the HDL Workflow Advisor, and running the workflow via
hdlcoder.runWorkflow), cross-linking Installation and the HDL Workflow page.
@tfcollins

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts in this pull request

Co-authored-by: tfcollins <854904+tfcollins@users.noreply.github.com>

Copilot AI commented May 22, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved and pushed in c5f915f. The merge conflicts in CI/doc/source/conf.py and CI/doc/requirements_doc.txt are addressed, and I verified docs still build with expected generated-page warnings only.

@tfcollins tfcollins merged commit 3f60acd into master May 22, 2026
17 of 18 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.

2 participants