Commit Graph
18 Commits
Author SHA1 Message Date
zeekay aade1be43e deps: update docs to latest @hanzo/docs-* packages
Migrate from deprecated @hanzo/mdx + @hanzo/ui to the new
@hanzo/docs (16.4.1), @hanzo/docs-mdx (14.2.8), and
@hanzo/docs-ui (16.5.3) package stack. Update all import paths
to use correct subpath exports and switch CLI from hanzo-mdx
to docs-mdx.
2026-02-09 00:07:11 -08:00
zeekay 7287fd19c0 feat(docs): use flat imports from @hanzo/ui
Simplify imports: import { DocsLayout, RootProvider } from '@hanzo/ui'
instead of @hanzo/ui/docs/layouts/docs subpaths
2025-12-17 14:52:17 -08:00
zeekay d0b075bbf1 chore(docs): migrate from fumadocs to @hanzo/mdx and @hanzo/ui
- Replace fumadocs-ui with @hanzo/ui/docs/*
- Replace fumadocs-mdx with @hanzo/mdx
- Update import paths and CLI commands
2025-12-17 14:31:51 -08:00
zeekay a101a8c99e chore(docs): use unified @hanzo/docs package
Consolidate to single @hanzo/docs package with subpath exports:
- @hanzo/docs/core/* for core functionality
- @hanzo/docs/ui/* for UI components
- @hanzo/docs/mdx/* for MDX processing

Uses hanzo-docs CLI instead of fumadocs-mdx for build commands.
2025-12-17 14:22:35 -08:00
zeekay 5db3da6bfa chore(docs): migrate from fumadocs to @hanzo/docs packages
Use Hanzo's own documentation framework fork for better integration
with existing @hanzo/ui components and consistent theming.

- Replace fumadocs-core with @hanzo/docs-core
- Replace fumadocs-ui with @hanzo/docs-ui
- Replace fumadocs-mdx with @hanzo/docs-mdx
2025-12-17 14:17:29 -08:00
zeekay f5da5ba21d refactor: clean package structure with single-import SDKs
BREAKING CHANGE: Package paths have been reorganized for clarity

## Major Changes

### Package Structure
- Collapsed engine/core → engine (removed unnecessary nesting)
- Moved core/types → types (top-level types package)
- Added root facade for single-import experience
- Removed redundant factory.go

### SDK Improvements
All SDKs now provide single-import interfaces:
- Go: import "github.com/luxfi/consensus"
- Python: import lux_consensus as consensus
- Rust: use lux_consensus::*

### Documentation
- Added comprehensive introduction and architecture docs
- Created AI/ML integration guide for researchers
- Added research section with papers and experiments
- Improved sidebar organization and discoverability

### Benefits
- Shallow, obvious import paths
- One responsibility per package
- DRY, composable, orthogonal design
- Idiomatic patterns for each language
- Consistent API across all SDKs

This refactor provides a clean, intuitive developer experience where
one import is enough and things work one way only.
2025-11-12 21:40:00 -08:00
zeekay b12d3e2b42 docs: fix MDX parsing errors and add all SDK pages to static generation
- Added missing SDK pages to staticPages array: python, rust, cpp, mlx
- Fixed MDX parsing errors in cpp.mdx and rust.mdx:
  * Wrapped function signatures containing HTML-like syntax in backticks
  * Fixed <uint16_t>, <const>, Result<()> being interpreted as HTML tags
- All SDK pages now generate correctly and are accessible
- Verified mlx.html, python.html, rust.html, cpp.html, go.html, c.html all build

Fixes: /docs/sdk/mlx returning 404
2025-11-10 11:49:05 -08:00
zeekay 71bd888f0e docs: add Python, Rust, C++, and MLX SDK documentation
Add comprehensive SDK documentation for all supported languages:

- Python SDK: Cython bindings with asyncio support
- Rust SDK: Safe FFI bindings with zero-cost abstractions
- C++ SDK: Modern C++20 with optional MLX GPU acceleration
- MLX GPU: Apple Silicon acceleration guide (up to 25x speedup)

Updated sidebar navigation to include all SDK pages.
All SDKs provide:
- Installation instructions
- API reference with examples
- Performance benchmarks
- Testing guidelines
- Troubleshooting tips

Test coverage:
- Go tests: All passing ✓
- Docs build: Success ✓
2025-11-10 10:34:19 -08:00
zeekay 51d6d4066b docs: use inline Logo component instead of external package
- Create local Logo component with Lux triangle SVG
- Remove @luxfi/logo dependency to fix CI build
- Update pnpm-lock.yaml
- Logo uses currentColor for proper dark mode support
2025-11-10 10:00:05 -08:00
zeekay 16207f1fc2 docs: add fumadocs styles, Lux logo, and pure black sidebar
- Import fumadocs-ui/style.css for proper layout and components
- Add @luxfi/logo package and use Logo component in nav
- Set sidebar to pure black (#000) for both light and dark modes
- Update semantic color tokens for better consistency
- Replace lucide Zap icon with official Lux triangle logo
- Ready to be forked as template for other Lux protocol docs
2025-11-10 09:58:11 -08:00
zeekay 958f6af3bd docs: match hanzo ui styling and theme
- Add complete CSS variable system for light/dark themes
- Add semantic color tokens (background, foreground, primary, etc.)
- Add Lux brand theme with cyan/blue accent colors
- Improve layout with proper font variables and structure
- Add metadata for better SEO
- Use OKLCH color space for modern color management
2025-11-10 09:06:33 -08:00
zeekay 474fa3c09f docs: add homepage with redirect to /docs
- Create proper homepage for static export
- Add meta refresh to auto-redirect to documentation
- Includes fallback link for manual navigation

This fixes the 404 error on the root path.
2025-11-10 09:00:27 -08:00
zeekay 75c84843b5 docs: fix build and configure GitHub Pages deployment
- Fix circular dependency in fumadocs loader causing build hang
- Replace loader with direct MDX imports for static generation
- Add static page tree to avoid runtime dependencies
- Configure basePath for GitHub Pages (/consensus)
- Add .nojekyll file to prevent Jekyll processing
- Update GitHub Actions workflow to deploy to Pages
- Add out/ directory to .gitignore

All 8 pages now generate successfully as static HTML (SSG).
Build completes in ~2 seconds. Ready for GitHub Pages deployment.
2025-11-10 08:44:55 -08:00
zeekay 2cdac3a600 Update all docs 2025-11-06 19:29:57 -08:00
zeekay ce7abf0984 More cleanup 2025-11-06 17:25:59 -08:00
zeekay 1a2d8a6ef3 docs: upgrade to fumadocs v16 and tailwind v4
- Removed @hanzo/ui dependency (peer dependency conflicts)
- Upgraded fumadocs-core, fumadocs-mdx, fumadocs-ui to v16
- Upgraded tailwindcss to v4.1.17
- Converted Tailwind config to CSS-based @theme syntax for v4
- Fixed generateStaticParams API for fumadocs-mdx v12+

Note: Build still hangs at "Creating an optimized production build" phase.
This appears to be a Turbopack issue with Next.js 16. Investigation ongoing.

Related: Updated @hanzo/ui peer dependencies to support Next 16 and React 19
(changes in ~/work/hanzo/ui/pkg/ui/package.json - not committed here)
2025-11-06 14:36:14 -08:00
zeekay b0c9bc7d20 docs: fix fumadocs generateStaticParams API
Fixed the fumadocs-mdx v12 API compatibility issue by updating
generateStaticParams to use the correct docs.getPages() method
instead of the non-existent docs.generateParams().

The build now starts successfully, though it's taking longer than
expected (4+ minutes at "Creating an optimized production build" phase).

Updated DOCS_STATUS.md to track progress and document the situation.
2025-11-06 14:22:57 -08:00
zeekay deec6064cc docs: Create comprehensive documentation site with Fumadocs + @hanzo/ui
âœĻ Features:
- Dark mode by default with Lux branding
- Multi-language SDK documentation (Go, C, Rust, Python, C++)
- Real benchmark results integration
- @hanzo/ui design system
- Fumadocs MDX framework
- Next.js 16 with App Router

📚 Documentation:
- Homepage with quick start
- SDK overview with feature matrix
- Go SDK complete API reference
- C SDK with 33/33 test results
- Performance benchmarks page
- Responsive sidebar with search

ðŸŽĻ Branding:
- Lux color palette (lux-50 to lux-950)
- Custom logo with Zap icon
- Gradient banner for v1.21.0
- Dark theme optimized

🔧 Technical:
- TypeScript throughout
- Tailwind CSS with custom config
- Rehype Pretty Code for syntax
- React 19 + Next.js 16
- Port 3001 for docs server

📊 Benchmarks:
- Go: 1.7Ξs decisions, 179M sigmoid ops/sec
- C: 33/33 tests passing, 1M+ blocks/sec
- Real results from 2025-11-06

Run: cd docs && pnpm dev
Visit: http://localhost:3001
2025-11-06 13:51:19 -08:00