Skip to content

feat: integrate docs repository as git subtree - #506

Merged
leoisadev1 merged 3 commits into
mainfrom
feat/add-docs-subtree
Jan 12, 2026
Merged

feat: integrate docs repository as git subtree#506
leoisadev1 merged 3 commits into
mainfrom
feat/add-docs-subtree

Conversation

@leoisadev1

Copy link
Copy Markdown
Member

Summary

  • Adds the external docs repository (tryosschat/docs) as a git subtree at docs-site/
  • Updates AGENTS.md with subtree documentation and commands

What's Included

  • docs-site/: Mintlify documentation site (MDX content, API reference, guides)
  • AGENTS.md: Added section documenting subtree usage and sync commands

Why Subtree?

  • Works like normal git for day-to-day development
  • No special CI/CD configuration needed
  • Can pull updates from docs repo: git subtree pull --prefix=docs-site https://github.com/tryosschat/docs.git main --squash
  • Can push local changes back: git subtree push --prefix=docs-site https://github.com/tryosschat/docs.git main

Notes

  • docs-site/ is NOT a Turborepo workspace (Mintlify handles build/deploy)
  • Don't confuse with docs/ (internal deployment guides)

@railway-app

railway-app Bot commented Jan 12, 2026

Copy link
Copy Markdown

🚅 Deployed to the openchat-pr-506 environment in OpenChat

Service Status Web Updated (UTC)
web ✅ Success (View Logs) Web Jan 12, 2026 at 10:10 pm

@railway-app
railway-app Bot temporarily deployed to OpenChat / openchat-pr-506 January 12, 2026 22:05 Destroyed
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview Deployment Ready

Environment URL
Frontend https://web-openchat-pr-506.up.railway.app
Convex Dashboard Dashboard

Convex Preview Backend

  • Cloud URL: https://mellow-cod-693.convex.cloud
  • Site URL: https://mellow-cod-693.convex.site

🤖 Deployed automatically by GitHub Actions

@greptile-apps

greptile-apps Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR integrates the external docs repository (tryosschat/docs) as a git subtree at docs-site/, establishing the infrastructure for maintaining OpenChat's documentation separately while keeping it accessible in the main repository.

What Works Well

The git subtree integration itself is technically sound. The AGENTS.md documentation clearly explains:

  • How to pull updates from the upstream docs repo
  • How to push local changes back
  • Important warnings about not confusing docs-site/ with docs/
  • That it's not a Turborepo workspace (Mintlify handles its own build/deploy)

The subtree commands are correct, well-documented, and follow git subtree best practices.

Critical Issues

However, the actual documentation content is completely unprepared for production:

1. Unmodified Mintlify Starter Template

The entire docs-site/ directory is the default Mintlify starter kit with zero customization for OpenChat. This includes:

  • Homepage still says "Welcome to the new home for your documentation" (generic Mintlify intro)
  • Quickstart guides users through setting up Mintlify CLI, not OpenChat
  • All example content references Mintlify, not OpenChat features

2. Wrong Branding Throughout

  • Site name: Still "Mint Starter Kit" instead of "OpenChat"
  • Support email: hi@mintlify.com (not OpenChat)
  • Social links: Point to Mintlify's Twitter, GitHub, LinkedIn
  • Navigation anchors: Link to mintlify.com/docs and mintlify.com/blog

3. Irrelevant API Documentation

The entire API reference section documents a "Plant Store API" (create/get/delete plants) running on http://sandbox.mintlify.com - completely unrelated to OpenChat's actual API surface.

4. Syntax Error

Line 54 of development.mdx contains npm mint update which is invalid npm syntax.

Impact Assessment

While the git subtree mechanism is correctly implemented, the content would mislead users trying to learn about OpenChat. If deployed as-is, visitors would encounter:

  • Instructions for a different product (Mintlify)
  • Contact information for the wrong company
  • API documentation for a non-existent plant store
  • No information about what OpenChat actually is or how to use it

Recommendation

The subtree integration strategy is sound, but the docs repo needs substantial work before this should be merged. At minimum:

  1. Customize docs.json with OpenChat branding and correct links
  2. Rewrite index.mdx to introduce OpenChat (what it is, key features)
  3. Replace quickstart.mdx with actual OpenChat installation/setup steps
  4. Either document OpenChat's real API or remove the API reference section entirely
  5. Fix the syntax error in development.mdx

Consider whether the upstream docs repo is ready for integration, or if this PR should wait until actual OpenChat documentation content is written.

Confidence Score: 1/5

  • This PR should not be merged as-is - while the git subtree integration is technically correct, the documentation content is completely generic and would confuse users
  • Score of 1/5 reflects that the git subtree mechanism itself is implemented correctly (AGENTS.md documentation is excellent), but the actual documentation content has critical issues: wrong branding (still says "Mint Starter Kit"), Mintlify-specific links throughout, completely unrelated API examples (Plant Store), a syntax error, and zero OpenChat-specific content. The technical integration works, but the content would actively mislead users about what OpenChat is and how to use it.
  • Critical attention needed: docs-site/docs.json (wrong branding/links), docs-site/index.mdx (generic content), docs-site/quickstart.mdx (wrong product), docs-site/development.mdx (syntax error), docs-site/api-reference/openapi.json (unrelated API). Acceptable: AGENTS.md (well-documented subtree setup)

Important Files Changed

File Analysis

Filename Score Overview
AGENTS.md 5/5 Properly documents git subtree integration with clear commands and warnings; well-structured additions
docs-site/docs.json 1/5 Critical branding issues: still named "Mint Starter Kit" with Mintlify links/emails/socials instead of OpenChat
docs-site/index.mdx 0/5 Completely generic Mintlify template content with zero OpenChat-specific information or context
docs-site/quickstart.mdx 0/5 Guides users through Mintlify setup instead of OpenChat installation and usage
docs-site/development.mdx 1/5 Contains critical syntax error (npm mint update) and focuses on Mintlify CLI, not OpenChat development
docs-site/api-reference/openapi.json 0/5 Entire Plant Store API example is completely unrelated to OpenChat's actual API
docs-site/README.md 2/5 Default Mintlify starter README with no customization for OpenChat project context

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant Main as Main Repo (openchat)
    participant Docs as Docs Repo (tryosschat/docs)
    participant Subtree as docs-site/ directory
    
    Note over Dev,Subtree: Initial Integration (This PR)
    Dev->>Docs: git subtree add --prefix=docs-site
    Docs->>Subtree: Copy all files (Mintlify starter template)
    Dev->>Main: Commit subtree content
    Dev->>Main: Update AGENTS.md with subtree docs
    
    Note over Dev,Subtree: Future Workflow - Pull Updates
    Dev->>Docs: git subtree pull --prefix=docs-site
    Docs->>Subtree: Sync changes from upstream
    Subtree->>Main: Update docs-site/ in main repo
    
    Note over Dev,Subtree: Future Workflow - Push Changes
    Dev->>Subtree: Edit files in docs-site/
    Dev->>Docs: git subtree push --prefix=docs-site
    Subtree->>Docs: Push changes back to docs repo
    
    Note over Subtree: ⚠️ Current State Issue
    Note over Subtree: Contains unmodified Mintlify<br/>starter template with no<br/>OpenChat customization
Loading

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

9 files reviewed, 9 comments

Edit Code Review Agent Settings | Greptile

Comment thread docs-site/development.mdx
Please note that each CLI release is associated with a specific version of Mintlify. If your local preview does not align with the production version, please update the CLI:

```bash
npm mint update

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The command npm mint update has incorrect syntax. The correct command should be npm install -g mint to update the Mintlify CLI globally, or potentially mint update if that's a CLI subcommand.

Suggested change
npm mint update
npm install -g mint

Comment thread docs-site/docs.json
{
"$schema": "https://mintlify.com/docs.json",
"theme": "mint",
"name": "Mint Starter Kit",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The documentation site name is still set to "Mint Starter Kit" (the default Mintlify template name) instead of "OpenChat". This should be updated to reflect the actual project name for proper branding and user clarity.

Suggested change
"name": "Mint Starter Kit",
"name": "OpenChat",

Comment thread docs-site/docs.json
Comment on lines +90 to +96
"navbar": {
"links": [
{
"label": "Support",
"href": "mailto:hi@mintlify.com"
}
],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The navbar contains Mintlify-specific links (support email "hi@mintlify.com" and dashboard at "dashboard.mintlify.com"). These should be updated to OpenChat-specific links or removed entirely if not applicable to this project.

Comment thread docs-site/docs.json
Comment on lines +115 to +121
"footer": {
"socials": {
"x": "https://x.com/mintlify",
"github": "https://github.com/mintlify",
"linkedin": "https://linkedin.com/company/mintlify"
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The footer social links still point to Mintlify's social media accounts (Twitter: @mintlify, GitHub: mintlify, LinkedIn: mintlify). These should be updated to point to OpenChat's or tryosschat's social media accounts instead.

Comment thread docs-site/docs.json
Comment on lines +72 to +84
"anchors": [
{
"anchor": "Documentation",
"href": "https://mintlify.com/docs",
"icon": "book-open-cover"
},
{
"anchor": "Blog",
"href": "https://mintlify.com/blog",
"icon": "newspaper"
}
]
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The global navigation anchors point to Mintlify's documentation and blog (mintlify.com/docs and mintlify.com/blog). For OpenChat documentation, these should either link to OpenChat-specific resources or be removed entirely if not applicable.

Comment on lines +1 to +217
{
"openapi": "3.1.0",
"info": {
"title": "OpenAPI Plant Store",
"description": "A sample API that uses a plant store as an example to demonstrate features in the OpenAPI specification",
"license": {
"name": "MIT"
},
"version": "1.0.0"
},
"servers": [
{
"url": "http://sandbox.mintlify.com"
}
],
"security": [
{
"bearerAuth": []
}
],
"paths": {
"/plants": {
"get": {
"description": "Returns all plants from the system that the user has access to",
"parameters": [
{
"name": "limit",
"in": "query",
"description": "The maximum number of results to return",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "Plant response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Plant"
}
}
}
}
},
"400": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
},
"post": {
"description": "Creates a new plant in the store",
"requestBody": {
"description": "Plant to add to the store",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewPlant"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "plant response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Plant"
}
}
}
},
"400": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/plants/{id}": {
"delete": {
"description": "Deletes a single plant based on the ID supplied",
"parameters": [
{
"name": "id",
"in": "path",
"description": "ID of plant to delete",
"required": true,
"schema": {
"type": "integer",
"format": "int64"
}
}
],
"responses": {
"204": {
"description": "Plant deleted",
"content": {}
},
"400": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
}
},
"webhooks": {
"/plant/webhook": {
"post": {
"description": "Information about a new plant added to the store",
"requestBody": {
"description": "Plant added to the store",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewPlant"
}
}
}
},
"responses": {
"200": {
"description": "Return a 200 status to indicate that the data was received successfully"
}
}
}
}
},
"components": {
"schemas": {
"Plant": {
"required": [
"name"
],
"type": "object",
"properties": {
"name": {
"description": "The name of the plant",
"type": "string"
},
"tag": {
"description": "Tag to specify the type",
"type": "string"
}
}
},
"NewPlant": {
"allOf": [
{
"$ref": "#/components/schemas/Plant"
},
{
"required": [
"id"
],
"type": "object",
"properties": {
"id": {
"description": "Identification number of the plant",
"type": "integer",
"format": "int64"
}
}
}
]
},
"Error": {
"required": [
"error",
"message"
],
"type": "object",
"properties": {
"error": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer"
}
}
}
} No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The entire OpenAPI specification is for a "Plant Store" example API (http://sandbox.mintlify.com), which is completely unrelated to OpenChat. This should be replaced with actual OpenChat API documentation if this section is intended to document OpenChat's API endpoints. If OpenChat doesn't have a public API yet, this entire api-reference section should be removed from the navigation in docs.json.

@greptile-apps

greptile-apps Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor
Additional Comments (3)

docs-site/index.mdx
The homepage contains generic Mintlify documentation content ("Welcome to the new home for your documentation", "Setting up", "Make it yours") with no mention of OpenChat whatsoever. This should be completely rewritten to introduce OpenChat, explain what it is (an open-source AI chat workspace), how to get started with it, and link to relevant OpenChat-specific guides rather than generic Mintlify setup instructions.


docs-site/quickstart.mdx
The quickstart guide is entirely about setting up Mintlify documentation ("Start building awesome documentation in minutes", instructions for cloning docs and running the Mintlify CLI). This should instead provide a quickstart guide for OpenChat itself - how to install dependencies, configure environment variables, start the development server, and create your first chat, which are covered in the main README.md but should be adapted for end-user documentation here.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!


docs-site/README.md
The README still contains the default Mintlify Starter Kit instructions with no customization for OpenChat. Since this is being integrated as a subtree for OpenChat's documentation, this README should explain what this documentation site is for (OpenChat project documentation), how to work with it locally, and how the subtree synchronization works with the upstream docs repository.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@leoisadev1
leoisadev1 merged commit 48fe74e into main Jan 12, 2026
12 checks passed
@leoisadev1
leoisadev1 deleted the feat/add-docs-subtree branch January 12, 2026 22: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.

1 participant