Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Summary

Convert all docs to .mdx extension and add auto-generation of the models table from source code.

Changes

  • Rename all docs/*.md to docs/*.mdx for consistent MDX parsing
  • Add scripts/gen_docs.ts - Bun CLI that syncs generated content:
    • docs/models.mdx: table generated from knownModels.ts
    • docs/system-prompt.mdx: snippet extracted from systemMessage.ts
  • Replace scripts/sync_system_prompt_docs.sh with TypeScript version
  • Update fmt.mk to run gen_docs.ts on make fmt/make fmt-check
  • Update .prettierrc to use MDX parser for docs/*.mdx

Generated Models Table

The table auto-updates when models in knownModels.ts change, showing:

  • Model display name
  • Full ID (provider:model)
  • Aliases for quick switching
  • Default marker

Custom models can still be used via /model <provider:model_id>.

Validation

  • make fmt-check passes
  • mintlify broken-links passes

Generated with mux

- Rename all docs/*.md to docs/*.mdx for consistent MDX parsing
- Add scripts/gen_docs.ts to sync:
  - docs/models.mdx: generated table from knownModels.ts
  - docs/system-prompt.mdx: snippet from systemMessage.ts
- Replace shell script with TypeScript for better maintainability
- Update fmt.mk to run gen_docs.ts on make fmt/fmt-check
- Update .prettierrc to use mdx parser for docs/*.mdx

The models table now auto-updates when models change, showing:
- Model display name, full ID, aliases, and default marker
- Custom models can still be used via /model <provider:model_id>

_Generated with `mux`_
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@ammario ammario merged commit 3fe4716 into main Dec 6, 2025
18 checks passed
@ammario ammario deleted the generate-models-table-v2 branch December 6, 2025 22:23
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.

2 participants