Skip to content

Conversation

@ultmaster
Copy link
Contributor

No description provided.

ultmaster and others added 8 commits August 10, 2025 12:14
- Set up MkDocs with Material theme for documentation
- Create documentation structure: quickstart, how-to, deep-dive, reference
- Configure auto-generated API reference from Python docstrings
- Add GitHub Actions workflow for automatic deployment to GitHub Pages
- Enable version management with mike for versioned docs
- Add git plugins for author and update time tracking

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Add comprehensive step-by-step guide for building first Agent Lightning app
- Include detailed explanations for each code section
- Add output interpretation sections for both client and server
- Explain behind-the-scenes operations and telemetry
- Reference complete example code in examples/apo
- Make writing more natural and consolidate steps

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Major improvements:
- Add version-aware repository links using template variables
- Move assets to docs/assets for proper MkDocs integration
- Add Mermaid diagram support for flowcharts and visualizations
- Reorganize navigation structure (disable top tabs, sidebar-only)
- Add comprehensive documentation build testing in CI
- Configure mkdocs-macros-plugin for dynamic content
- Update GitHub Actions workflows for proper docs deployment

Documentation structure:
- Quickstart: Installation and Getting Started guides
- How-To Guides: Training examples including SQL agent
- Deep Dive: Architecture and concepts
- API Reference: Auto-generated from docstrings

All repository links now use {{ config.repo_url }}/tree/{{ config.extra.source_commit }}
to ensure version consistency between docs and code.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Features added:
- Static light logo in sidebar navigation
- Dynamic favicon that switches based on user's theme preference
- Automatic detection of system theme (prefers-color-scheme)
- Real-time favicon switching when user toggles theme in docs
- Proper path resolution for favicon assets across all pages

Logo implementation:
- logo-light.png: Used for sidebar logo (always visible)
- logo-dark.png/logo-light.png: Used for favicon based on theme
- JavaScript handles automatic theme detection and manual overrides
- Works seamlessly across all documentation pages

Technical details:
- favicon-theme.js handles dynamic switching
- Uses MutationObserver to detect theme changes
- Constructs proper absolute paths for assets
- Removes existing favicons to prevent conflicts

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Fix grammar in getting-started guide for better clarity.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Copilot AI review requested due to automatic review settings August 10, 2025 06:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR initializes comprehensive documentation infrastructure for the Agent Lightning project using MkDocs with Material theme. The documentation includes installation guides, getting started tutorials, API references, and a practical SQL agent training example.

Key changes:

  • Set up MkDocs Material theme with documentation build pipeline
  • Added comprehensive installation and getting started guides
  • Created API reference documentation structure
  • Added detailed SQL agent training tutorial with performance metrics

Reviewed Changes

Copilot reviewed 17 out of 24 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pyproject.toml Added MkDocs and related dependencies to dev requirements
mkdocs.yml Complete MkDocs configuration with Material theme, plugins, and navigation structure
docs/*.md Documentation content including installation guide, getting started tutorial, API references, and SQL agent example
docs/js/favicon-theme.js Dynamic favicon switching based on light/dark theme
.github/workflows/*.yml CI/CD workflows for building and deploying documentation
examples/spider/sql_agent.py Added debug print statement for graph visualization
examples/apo/apo_client.py Updated parameter name from 'endpoint' to 'backend'
agentlightning/verl/*.py Minor documentation formatting fixes
README.md Updated asset paths to point to docs directory


return builder.compile()
g = builder.compile()
print(g.get_graph().draw_mermaid())
Copy link

Copilot AI Aug 10, 2025

Choose a reason for hiding this comment

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

This debug print statement should be removed or made conditional (e.g., behind a debug flag) before merging to avoid cluttering production output.

Suggested change
print(g.get_graph().draw_mermaid())
if os.environ.get("DEBUG_SQL_AGENT") == "1":
print(g.get_graph().draw_mermaid())

Copilot uses AI. Check for mistakes.
@ultmaster ultmaster merged commit 24d590f into main Aug 10, 2025
8 of 9 checks passed
@ultmaster ultmaster deleted the doc-init branch October 28, 2025 01:20
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