Skip to content

Update documentation to use cosmic theme and improve structure#143

Draft
Copilot wants to merge 3 commits intotfcollins/microblaze-testingfrom
copilot/update-doc-theme-and-content
Draft

Update documentation to use cosmic theme and improve structure#143
Copilot wants to merge 3 commits intotfcollins/microblaze-testingfrom
copilot/update-doc-theme-and-content

Conversation

Copy link

Copilot AI commented Oct 19, 2025

This PR modernizes the Nebula documentation by adopting the cosmic theme from adi-doctools (same theme used by pyadi-iio) and significantly improves the documentation structure to better communicate the tool's scope and capabilities.

Overview

The previous documentation used the basic sphinx-rtd-theme and lacked clear organization for CLI and API references. Users had difficulty understanding what Nebula does and how to use it effectively. This update addresses these issues with a professional theme and comprehensive structural improvements.

Key Changes

Theme Update

  • Replaced sphinx-rtd-theme with the cosmic theme from adi-doctools
  • Provides consistency with other Analog Devices projects like pyadi-iio
  • Modern appearance with light/dark theme support and improved typography

Documentation Structure

Created a clear, organized structure with distinct sections:

Homepage Enhancements:

  • Comprehensive tool description explaining Nebula's purpose
  • Key Features section highlighting core capabilities:
    • Automated Board Management
    • Boot File Deployment
    • Testing Infrastructure
    • Network Configuration
    • Recovery Mechanisms
    • YAML Configuration
  • Interfaces section explaining Python Module vs CLI usage patterns
  • Quick Example section with practical code snippets for both Python and CLI usage

New API Reference Organization:

  • Created doc/source/core/api.rst organizing modules into logical categories:
    • Core Modules: manager, builder
    • Hardware Interfaces: uart, network, jtag, usbdev, usbmux
    • Infrastructure: downloader, tftpboot, pdu, cyberpower, netconsole, netbox
    • Testing and Utilities: driver, coverage, tasks, helper, common, errors

Clear Navigation:

  • Overview (Installation, Configuration, Hardware Specific)
  • User Guide (Managers, pytest, Configuration, Examples)
  • CLI Reference (Command-Line interface documentation)
  • API Reference (Python module documentation)
  • Testing (Built-in tests)

Visual Improvements

Homepage:
Homepage with cosmic theme

CLI Reference:
CLI Reference page

API Reference:
API Reference with organized categories

Technical Details

  • Updated requirements_doc.txt to include adi-doctools package
  • Updated conf.py with proper cosmic theme configuration
  • Updated readthedocs.yml to install documentation requirements
  • Created _static/css/custom.css for future customization needs
  • Documentation builds successfully with no errors

Benefits

  1. Professional Appearance: Modern theme with improved visual hierarchy
  2. Better Discoverability: Clear sections help users find CLI and API documentation quickly
  3. Improved Onboarding: Key features and quick examples help new users understand capabilities
  4. Consistency: Matches pyadi-iio theme for consistent experience across Analog Devices projects
  5. Organization: Logical categorization of API modules improves navigation

Fixes #[issue-number]

Original prompt

Convert doc to use same theme as http://github.com/analogdevicesinc/pyadi-iio . Also include pages that reference CLI and API. Doc should include some general improvements to understand tool scope


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits October 19, 2025 02:04
Co-authored-by: tfcollins <854904+tfcollins@users.noreply.github.com>
Co-authored-by: tfcollins <854904+tfcollins@users.noreply.github.com>
Copilot AI changed the title [WIP] Update documentation to match style of pyadi-iio Update documentation to use cosmic theme and improve structure Oct 19, 2025
Copilot AI requested a review from tfcollins October 19, 2025 02:08
Copy link
Contributor

@gastmaier gastmaier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming the @copilot chatbot will pick the review, if not, I can pick this pr if I get write permission.

sphinx-rtd-theme
graphviz
myst-parser No newline at end of file
sphinx>=5.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the sphinx extensions + python version already bounds the sphinx version, setting an arbitrary is useless and only causes unnecessary install lock-ups.
it only makes sense to bound for actual python packages, not collateral such as docs.

"adi_doctools",
]

needs_extensions = {"adi_doctools": "0.4.21"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

garbage version lock. the doc does not depend in any particular version

# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
html_theme = "cosmic"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
html_theme = "cosmic"
html_theme = "harmonic"

Comment on lines +81 to +83
html_css_files = [
"css/custom.css",
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

Comment on lines +1 to +3
/* Custom CSS for Nebula documentation */

/* Placeholder for any custom styling */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove file

Comment on lines +6 to +7
Nebula: Embedded Development Tools
=====================================================================
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix delimiter length

graphviz
myst-parser No newline at end of file
sphinx>=5.0
myst-parser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc is not in markdown, remove myst-parser

"sphinx.ext.githubpages",
"sphinx_rtd_theme",
"sphinx.ext.graphviz",
"myst_parser",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

@tfcollins tfcollins force-pushed the tfcollins/microblaze-testing branch from 5de87a6 to 2ca6f90 Compare November 4, 2025 21:11
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.

3 participants