Skip to content

docs: update docs-site with OpenChat documentation - #507

Merged
leoisadev1 merged 1 commit into
mainfrom
docs/update-openchat-docs
Jan 12, 2026
Merged

docs: update docs-site with OpenChat documentation#507
leoisadev1 merged 1 commit into
mainfrom
docs/update-openchat-docs

Conversation

@leoisadev1

Copy link
Copy Markdown
Member

Summary

Updates the docs-site subtree with comprehensive OpenChat documentation.

This syncs with the docs repo where PR #1 was already merged.

Changes

  • Replace Mintlify starter kit with OpenChat-specific content
  • Add quickstart, architecture, authentication, AI models guides
  • Add self-hosting documentation (Docker, environment variables)
  • Add contributing guide
  • Update navigation in docs.json

- Add introduction, quickstart, and architecture overview
- Add authentication guide (Better Auth + GitHub OAuth)
- Add AI models guide (OpenRouter, BYOK, streaming)
- Add self-hosting guides (Docker, environment variables)
- Add contributing guide
- Update docs.json navigation for OpenChat
- Remove Mintlify starter kit placeholder content
@railway-app

railway-app Bot commented Jan 12, 2026

Copy link
Copy Markdown

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

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

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

Copy link
Copy Markdown
Contributor

🚀 Preview Deployment Ready

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

Convex Preview Backend

  • Cloud URL: https://sincere-schnauzer-634.convex.cloud
  • Site URL: https://sincere-schnauzer-634.convex.site

🤖 Deployed automatically by GitHub Actions

@leoisadev1
leoisadev1 merged commit baa337a into main Jan 12, 2026
5 checks passed
@leoisadev1
leoisadev1 deleted the docs/update-openchat-docs branch January 12, 2026 23:29
@greptile-apps

greptile-apps Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR successfully replaces the Mintlify starter kit with comprehensive OpenChat-specific documentation. The update includes 8 new MDX files covering quickstart, architecture, authentication, AI models, contributing guidelines, and self-hosting instructions, while removing 17 generic starter files.

What Changed

Added Documentation (8 files):

  • Core guides: quickstart, architecture, authentication, AI models, contributing
  • Self-hosting guides: Docker deployment, environment variables reference
  • Updated navigation in docs.json

Removed Starter Content (17 files):

  • AI tools guides (Claude Code, Cursor, Windsurf)
  • Generic API reference examples
  • Mintlify essentials and snippets

Quality Assessment

The documentation is well-written and technically accurate:

  • ✅ Rate limits verified against actual code (30/min for messages, 20/min for chats)
  • ✅ File upload limits correct (10 MB max, 150 files per user)
  • ✅ Code examples reference real Convex functions (api.users.ensure, api.chats.create)
  • ✅ Environment variables match project structure (VITE_ prefix for TanStack Start)
  • ✅ Port numbers accurate (3000 for local dev, 3001 for Docker)

Issues Found

1. Broken Link (Line 317 in docker.mdx) - Score: 5/5

The Docker guide links to /self-hosting/dokploy which doesn't exist. This will result in a 404 error. Either remove this card or create the missing page.

Confidence: Very high - Verified by searching the entire docs-site directory, no dokploy.mdx file exists.

2. Incorrect Environment Variable Prefix (environment.mdx) - Score: 5/5

Lines 104-105, 110-111, 114, and 154 use NEXT_PUBLIC_ prefix for environment variables, but OpenChat uses TanStack Start with Vite, not Next.js. The correct prefix is VITE_.

Confidence: Very high - Confirmed by examining apps/web/src/lib/env.ts which explicitly uses import.meta.env.VITE_* and includes a comment stating "must be prefixed with VITE_".

Overall Assessment

This is a high-quality documentation update with only 2 issues (1 broken link, 1 naming error). The content is comprehensive, accurate, and well-structured. The issues are straightforward to fix and don't affect the majority of the documentation.

Confidence Score: 4/5

  • This PR is safe to merge after fixing the two identified issues (broken link and environment variable prefix)
  • Score of 4 reflects high-quality documentation with only 2 fixable issues. The content is technically accurate (verified against codebase), well-structured, and comprehensive. Issues are minor: 1 broken link to non-existent page and 1 incorrect environment variable prefix. Both are quick fixes that don't require architectural changes.
  • docs-site/self-hosting/environment.mdx requires corrections to environment variable prefixes (4 locations). docs-site/self-hosting/docker.mdx needs broken link removed or replaced

Important Files Changed

File Analysis

Filename Score Overview
docs-site/self-hosting/docker.mdx 3/5 Docker deployment guide with broken link to non-existent /self-hosting/dokploy page (line 317)
docs-site/self-hosting/environment.mdx 2/5 Environment variables reference with incorrect NEXT_PUBLIC_ prefix (should be VITE_) on lines 104-105, 110-111, 114, and 154
docs-site/quickstart.mdx 5/5 Comprehensive quickstart guide with accurate setup instructions, environment variables, and troubleshooting
docs-site/guides/ai-models.mdx 5/5 Detailed AI models guide with accurate technical details, rate limits match codebase, file limits correct
docs-site/guides/architecture.mdx 5/5 Architecture overview with accurate system diagrams, rate limits verified against code, schema documentation correct

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant Repo as OpenChat Repo
    participant Docs as docs-site/
    participant Mint as Mintlify
    
    Dev->>Repo: Clone openchat repository
    Dev->>Docs: Replace Mintlify starter content
    Dev->>Docs: Add OpenChat-specific guides
    
    Note over Docs: New Content Added
    Docs->>Docs: index.mdx (Introduction)
    Docs->>Docs: quickstart.mdx (Setup guide)
    Docs->>Docs: guides/architecture.mdx
    Docs->>Docs: guides/authentication.mdx
    Docs->>Docs: guides/ai-models.mdx
    Docs->>Docs: guides/contributing.mdx
    Docs->>Docs: self-hosting/docker.mdx
    Docs->>Docs: self-hosting/environment.mdx
    
    Note over Docs: Old Content Removed
    Docs->>Docs: ❌ ai-tools/ (Claude, Cursor, Windsurf)
    Docs->>Docs: ❌ api-reference/ (Starter kit examples)
    Docs->>Docs: ❌ essentials/ (Generic Mintlify guides)
    
    Docs->>Docs: Update docs.json navigation
    
    Dev->>Mint: Deploy documentation
    Mint->>Mint: Render OpenChat docs
    
    Note over Mint,Dev: Issues Found
    Mint-->>Dev: ⚠️ Broken link: /self-hosting/dokploy
    Mint-->>Dev: ⚠️ Wrong env prefix: NEXT_PUBLIC_
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.

5 files reviewed, 5 comments

Edit Code Review Agent Settings | Greptile

<Card title="Environment Variables" icon="gear" href="/self-hosting/environment">
Complete environment reference
</Card>
<Card title="Dokploy" icon="cloud" href="/self-hosting/dokploy">

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 link references /self-hosting/dokploy, but this page doesn't exist in the documentation. You should either:

  1. Remove this card if Dokploy documentation isn't planned
  2. Create the missing docs-site/self-hosting/dokploy.mdx file
  3. Update the href to point to an existing alternative deployment guide
Suggested change
<Card title="Dokploy" icon="cloud" href="/self-hosting/dokploy">
<Card title="Environment Variables" icon="gear" href="/self-hosting/environment">

Comment on lines +110 to +111
| `NEXT_PUBLIC_DEV_BYPASS_AUTH` | No | Set to `1` to skip auth (dev only) |
| `NEXT_PUBLIC_DEV_USER_ID` | No | Mock user ID when bypassing auth |

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.

Consistent with the above issue, these environment variable names need to use the VITE_ prefix instead of NEXT_PUBLIC_.

Suggested change
| `NEXT_PUBLIC_DEV_BYPASS_AUTH` | No | Set to `1` to skip auth (dev only) |
| `NEXT_PUBLIC_DEV_USER_ID` | No | Mock user ID when bypassing auth |
| `VITE_DEV_BYPASS_AUTH` | No | Set to `1` to skip auth (dev only) |
| `VITE_DEV_USER_ID` | No | Mock user ID when bypassing auth |


<Step title="Security">
- [ ] All secrets in secure secret manager
- [ ] `NEXT_PUBLIC_DEV_BYPASS_AUTH` removed or set to `0`

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.

Update the checklist item to use the correct VITE_ prefix.

Suggested change
- [ ] `NEXT_PUBLIC_DEV_BYPASS_AUTH` removed or set to `0`
- [ ] `VITE_DEV_BYPASS_AUTH` removed or set to `0`

Comment on lines +104 to +105
NEXT_PUBLIC_DEV_BYPASS_AUTH=0
NEXT_PUBLIC_DEV_USER_ID=dev-user

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 environment variable prefix is incorrect. OpenChat uses TanStack Start with Vite, not Next.js.

According to apps/web/src/lib/env.ts, the project uses import.meta.env.VITE_* for client-side environment variables. These variables should be renamed from NEXT_PUBLIC_DEV_BYPASS_AUTH and NEXT_PUBLIC_DEV_USER_ID to use the VITE_ prefix instead (e.g., VITE_DEV_BYPASS_AUTH and VITE_DEV_USER_ID).

| `NEXT_PUBLIC_DEV_USER_ID` | No | Mock user ID when bypassing auth |

<Warning>
**NEVER** set `NEXT_PUBLIC_DEV_BYPASS_AUTH=1` in production. This completely disables authentication.

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.

Update the variable name in the warning to use the correct VITE prefix instead of NEXT_PUBLIC prefix.

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