LLM-friendly Markdown conversion of the official Trongate v1 HTML documentation
This repository provides the complete Trongate v1 documentation converted from HTML to a clean, well-structured Markdown format. Designed for seamless integration with AI tools, vector databases, static site generators, and modern documentation workflows.
- Overview
- Features
- Repository Structure
- Getting Started
- Use Cases
- Conversion Process
- Contributing
- Status
- Resources
- License
The Trongate framework's official documentation is maintained in HTML format. This project converts those HTML files into Markdown, making the documentation more accessible for:
- AI/LLM Integration: RAG (Retrieval-Augmented Generation) systems, vector databases, and semantic search
- Documentation Platforms: GitHub Pages, MkDocs, Docusaurus, VuePress, and other static site generators
- Custom Tooling: MCPs, search indexing, and custom documentation systems
Note: This repository focuses on Trongate v1 documentation, while the official Trongate v2 documentation can be found here.
- Complete Coverage: All major Trongate v1 documentation sections converted
- Structured Collections: Organised by logical groupings matching the official documentation structure
- Clean Formatting: Proper heading hierarchy, code blocks, and markdown conventions
- LLM-Optimised: Formatted for optimal consumption by language models and AI tools
trongate-docs-md/
βββ php_framework/ # Core PHP framework documentation
βββ reference/ # API reference and technical specifications
βββ trongate_css/ # CSS framework and styling documentation
βββ trongate_mx/ # Trongate MX (HTMX-style) JavaScript library docs
βββ LICENSE # MIT License
βββ README.md # This file
Each directory contains converted Markdown files organised by topic, maintaining the same logical structure as the official documentation.
- Git for cloning the repository
- A Markdown viewer or editor (VS Code, Obsidian, Typora, etc.)
- Optional: Static site generator (MkDocs, Docusaurus) for publishing
# Clone the repository
git clone https://github.com/DaFa66/trongate-docs-md.git
# Navigate to the directory
cd trongate-docs-md
# Browse the documentation
ls -laFor Reading:
- Open any
.mdfile right here on GitHub, or in your preferred Markdown viewer - Navigate through directories to find specific topics
For Integration:
- Import into your vector database for RAG applications
- Use with MCP servers like Context 7
For Development:
- Reference while building Trongate applications
- Integrate into IDE documentation systems
- Use for offline development reference
- Vector Databases: Embed documentation for semantic search and RAG systems
- LLM Context: Provide framework knowledge to AI coding assistants
- Training Data: Use as training material for Trongate-specific models
- Static Sites: Deploy with MkDocs, Docusaurus, or VuePress
- GitHub Pages: Publish directly from this repository
- Custom Platforms: Integrate with any Markdown-based documentation system
- Offline Reference: Access documentation without internet connection
- IDE Integration: Link documentation directly in your development environment
- Version Tracking: Monitor documentation changes alongside code
The conversion pipeline follows these steps:
- Source Extraction: HTML files retrieved from the Trongate docs repository
- Collection Mapping: Files organised using
docs_collections.jsonstructure - HTML to Markdown: Automated conversion with custom transformations for:
- Code blocks and syntax highlighting
- Alert boxes and callouts
- Tables and lists
- Images and embedded media
- Internal and external links
- Post-Processing:
- Heading normalisation
- Acronym casing corrections
- Link validation
- Formatting consistency checks
- Quality Review: Manual verification of complex pages
Note
The conversion emphasises automation with minimal manual editing. However, complex pages with multi-column layouts, interactive content, or embedded examples may require human review for optimal results.
Contributions are welcome! Here's how you can help:
- Conversion Improvements: Fix edge cases in tables, code blocks, or embedded assets
- Automation: Build CI/CD pipelines for automatic conversion
- Documentation: Improve this README or add usage examples
- Quality Assurance: Review converted files and report issues
- Tooling: Create scripts for validation, formatting, or publishing
- Fork this repository
- Create a feature branch (
git checkout -b feature/improvement) - Make your changes
- Test thoroughly
- Commit with clear messages (
git commit -m 'Fix: table conversion in API reference') - Push to your fork (
git push origin feature/improvement) - Open a Pull Request
| Component | Status | Notes |
|---|---|---|
| PHP Framework Docs | β Complete | Base conversion finished |
| API Reference | β Complete | Base conversion finished |
| Trongate CSS | β Complete | Base conversion finished |
| Trongate MX | β Complete | Base conversion finished |
| Manual Cleanup | Complex pages need review | |
| Automated Pipeline | π Planned | Scheduled for future release |
Warning
Some pages with complex HTML structures, screenshots, or non-standard markup may still require manual cleanup. Please report any formatting issues you encounter.
- Website: trongate.io
- Official Documentation: trongate.io/documentation
- Framework Repository: github.com/trongate/trongate-framework
- HTML Docs Source: github.com/trongate/trongate-docs
- HTML Docs Viewer: dafadev.net/a1/tgdocs
- may not always be available to view online
- MkDocs Implementation: ums.myds.me/tg_docs/
- Chat with the docs or use via an API or MCP: Context 7
- Repository: github.com/DaFa66/trongate-docs-md
- Issues: Report bugs or request features
This repository is released under the MIT License. See LICENSE for full details.
The original Trongate documentation and framework are subject to their own licensing terms. Please refer to the official Trongate repository for more information.
- Trongate Team: For creating and maintaining the excellent framework and documentation
- Community Contributors: For feedback, bug reports, and improvements
- Original HTML Docs: Sourced from the Trongate docs repository
Questions or suggestions? Open an issue or contribute to the project!
Made with β€οΈ for the Trongate community