Skip to content

Conversation

@YosefAshenafi
Copy link
Contributor

@YosefAshenafi YosefAshenafi commented Nov 18, 2025

Summary

This PR introduces a complete documentation system using MkDocs with automatic deployment to GitHub Pages.

What's Included

Documentation Structure

  • Organized all 23 README files into a hierarchical docs folder structure
  • Created comprehensive navigation in mkdocs.yml mirroring repository structure
  • Organized into logical sections:
    • Components: Dialogs, Confirm dialog
    • Features: App Settings, Theme system, Device Info
    • Utilities: String, Enum, Observer, React Context, Theme, etc.
    • Storages: MMKV, localStorage
    • States: State management documentation
    • Types: TypeScript definitions

MkDocs Configuration

  • Material theme with professional styling
  • Dark/light mode toggle
  • Full-text search with suggestions
  • Code copy buttons
  • Enhanced navigation with tabs and expandable sections
  • Git revision dates for "Last Updated" info
  • Syntax highlighting for code blocks
  • Mobile-responsive design

GitHub Pages Automation

  • GitHub Actions workflow (.github/workflows/deploy-docs.yml) that:
    • Triggers on push to master branch
    • Monitors changes to docs/, mkdocs.yml, and .md files
    • Automatically builds MkDocs site
    • Deploys to gh-pages branch
    • Publishes to GitHub Pages
    • Supports manual workflow_dispatch

Screenshot

expo-htk

Developer Tools

  • requirements-docs.txt for Python dependency management
  • docs/BUILD.md with comprehensive local development instructions
  • .gitignore to exclude build artifacts and virtual environments

How It Works

Local Development

pip install -r requirements-docs.txt
mkdocs serve

After Merge

Configuration

  • mkdocs.yml: Site configuration with Material theme and plugins
  • GitHub Actions: Automated deployment workflow
  • Python Dependencies: Specified in requirements-docs.txt
  • .coderabbit.yaml: CodeRabbit configuration to minimize automated review noise on documentation files

Testing

✓ All files organized in proper hierarchy
✓ mkdocs.yml configured with Material theme
✓ GitHub Actions workflow ready for deployment
✓ Documentation structure mirrors repository layout
✓ CodeRabbit configured to focus reviews on code changes

🤖 Generated with Claude Code

@YosefAshenafi YosefAshenafi force-pushed the docs/mkdocs-setup branch 10 times, most recently from 3a95994 to 50803b7 Compare November 19, 2025 04:24
YosefAshenafi and others added 2 commits November 19, 2025 07:26
This commit adds complete documentation for the expo-htk toolkit:

**New Documentation (22 README files):**
- Root README with project overview and quick start
- Component documentation (Dialogs, Confirm)
- Feature documentation (App Settings, Theme, Device Info)
- Storage adapter documentation (MMKV, localStorage)
- Type definitions and utility functions documentation
- Complete API documentation and usage examples

**Documentation Quality:**
- Comprehensive overview and purpose sections
- Complete API documentation with interfaces
- Multiple usage examples and patterns
- Integration guidelines and best practices
- Troubleshooting guides and accessibility notes
- Interconnected cross-links between modules

**Cleanup & Refinement:**
- Removed Jotai references (not in actual use)
- Consolidated duplicate content across files
- Removed states/README.md (Jotai-specific)
- Simplified storage and state documentation
- Unified Best Practices sections
- Removed duplicate patterns and examples

The documentation provides a strong foundation for developers to understand and extend the toolkit.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
…eployment

This commit implements a complete documentation infrastructure:

**MkDocs Setup:**
- Configured mkdocs.yml with Material theme
- Professional styling with dark/light mode toggle
- Full-text search with suggestions
- Code copy buttons and syntax highlighting
- Enhanced navigation with tabs and expandable sections
- Git revision dates for "Last Updated" info

**Documentation Structure (25 files):**
- Hierarchical docs/ folder mirroring repository structure
- Components: Dialogs, Confirm dialog
- Features: App Settings, Theme system, Device Info
- Utilities: String, Enum, Observer, React Context, Theme, etc.
- Storages: MMKV, localStorage
- States: State management documentation
- Types: TypeScript definitions

**GitHub Pages Automation:**
- GitHub Actions workflow (deploy-docs.yml)
- Triggers on push to master or manual workflow_dispatch
- Monitors changes to docs/, mkdocs.yml, and .md files
- Automatically builds and deploys to gh-pages branch
- Published at: https://hacktoolkit.github.io/expo-htk/

**Developer Tools:**
- requirements-docs.txt for Python dependencies
- docs/BUILD.md with local development instructions
- .gitignore to exclude build artifacts
- .coderabbit.yaml to minimize documentation review noise

The documentation system is now ready for local development and automatic publishing.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant