Skip to content

Swastika/mint docs/mdx fixes#2075

Open
swstica wants to merge 6 commits into
mainfrom
swastika/mint-docs/mdx-fixes
Open

Swastika/mint docs/mdx fixes#2075
swstica wants to merge 6 commits into
mainfrom
swastika/mint-docs/mdx-fixes

Conversation

@swstica
Copy link
Copy Markdown

@swstica swstica commented May 13, 2026

Merge order: 2/3- Merge after #2071

Problem

Existing markdown files syntax is incompatible with Mintlify's MDX parser- HTML comments, raw image syntax, unclosed tags, and duplicate H1 headings cause parsing errors during build.

Solution

  • Converted HTML comments (<!-- -->) to MDX comments ({/* */})
  • Replaced markdown image syntax (![alt](src)) with JSX <img /> tags
  • Added required blank lines around <details>/<summary> blocks
  • Self-closed void HTML elements (<img><img />)
  • Escaped bare angle brackets parsed as JSX (e.g. <10ms&lt;10ms)
  • Removed duplicate H1 headings (Mintlify auto-generates page titles from the first heading)
  • No content changes- only formatting fixes

How to Test

cd docs 
npm i -g mintlify
mintlify dev

Contributor License Agreement

  • I have read and approved the CLA.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 13, 2026

Greptile Summary

This PR fixes Mintlify MDX parsing incompatibilities across 55 documentation files and introduces a new docs.json site config plus introduction.mdx and quickstart.mdx landing pages. All changes are docs-only with no runtime code touched.

  • MDX syntax fixes (55 files): HTML comments (<!-- -->) converted to JSX comments ({/* */}), <details><summary> blocks reformatted with required blank lines, duplicate H1 headings removed, and markdown images converted to self-closing <img /> tags.
  • New Mintlify config (docs.json): Introduces full navigation structure, theme, logo, and contextual options — but 14 nav entries reference page paths that don't correspond to any file on disk, which will cause broken navigation when mintlify dev runs.
  • doclinks-ignore markers in doclinks.md: Converted from HTML comment syntax to JSX, silently breaking doclinks.py which uses a hardcoded HTML-comment regex to identify ignore regions.

Confidence Score: 3/5

Not ready to merge — the new docs.json navigation config references 14 pages that don't exist, and the doclinks tool's ignore markers are broken.

The bulk of the changes (MDX comment conversions, details/summary reformatting, H1 removal) are mechanical and correct. However, the newly introduced docs.json has 14 navigation entries pointing to file paths with no matching file on disk, meaning the Mintlify site will display broken nav items or fail to build for those sections. Additionally, converting the doclinks-ignore HTML comment markers to JSX comments breaks the doclinks.py tool. The dead link to /troubleshooting/replay in quickstart.mdx is a lesser but additional gap.

docs/docs.json (navigation path mismatches) and docs/agents/docs/doclinks.md (broken tool markers) need attention before merge.

Important Files Changed

Filename Overview
docs/docs.json New Mintlify config file; 14 navigation entries reference files that don't exist on disk, and one indentation inconsistency in the Platforms group.
docs/introduction.mdx New landing page with capability cards; links to capabilities/agents, capabilities/navigation/overview, capabilities/memory/overview — all of which currently have no matching file.
docs/quickstart.mdx New quickstart page; contains a dead link to /troubleshooting/replay and cards pointing to usage/concepts and platforms/quadruped-go2, neither of which exist yet.
docs/agents/docs/doclinks.md HTML comment doclinks-ignore markers converted to JSX syntax, breaking the doclinks.py tool that uses a regex matching only HTML comment syntax.
docs/agents/docs/codeblocks.md HTML comments converted to MDX JSX comments and H1 title removed — straightforward MDX compatibility fixes.
docs/usage/data_streams/reactivex.md All markers replaced with {/* Result: */} and duplicate H1 removed; no content changes.
docs/usage/transforms.md HTML comment result markers and duplicate H1 removed; details/summary blocks reformatted with blank lines — correct MDX fixes.
docs/capabilities/memory/index.md details/summary blocks split onto separate lines and HTML comments converted to JSX; no content changes.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["docs.json\n(Mintlify config)"] -->|references| B["✅ Existing pages\n(introduction, quickstart,\ninstallation/*, usage/*, etc.)"]
    A -->|broken refs| C["❌ Missing pages\n(usage/concepts, capabilities/agents,\nplatforms/quadruped-go2,\nnavigation/overview, etc. ×14)"]
    D["quickstart.mdx"] -->|dead link| E["❌ /troubleshooting/replay\n(no file)"]
    D -->|broken card links| C
    F["doclinks.md"] -->|old HTML markers| G["<!-- doclinks-ignore-start -->\n<!-- doclinks-ignore-end -->"]
    F -->|new JSX markers| H["{/* doclinks-ignore-start */}\n{/* doclinks-ignore-end */}"]
    H -->|not matched by| I["doclinks.py regex\n(expects HTML comment syntax)"]
    G -.->|was recognized by| I
Loading

Reviews (1): Last reviewed commit: "Remove duplicate headings from all the p..." | Re-trigger Greptile

Comment thread docs/docs.json
Comment on lines +38 to +144
"usage/concepts",
"usage/blueprints",
"usage/modules",
"usage/native_modules",
"usage/configuration",
"usage/cli",
"usage/python-api",
"usage/lcm",
"usage/transforms",
"usage/tool_streams",
"usage/visualization",
{
"group": "Data Streams",
"pages": [
"usage/data_streams/overview",
"usage/data_streams/reactivex",
"usage/data_streams/advanced_streams",
"usage/data_streams/quality_filter",
"usage/data_streams/temporal_alignment",
"usage/data_streams/storage_replay"
]
},
{
"group": "Sensor Streams",
"pages": [
"usage/sensor_streams/overview",
"usage/sensor_streams/reactivex",
"usage/sensor_streams/advanced_streams",
"usage/sensor_streams/quality_filter",
"usage/sensor_streams/temporal_alignment",
"usage/sensor_streams/storage_replay"
]
},
{
"group": "Transports",
"pages": [
"usage/transports/overview",
"usage/transports/dds"
]
}
]
},
{
"group": "Capabilities",
"pages": [
"capabilities/agents",
{
"group": "Navigation",
"pages": [
"capabilities/navigation/overview",
"capabilities/navigation/native-go2"
]
},
{
"group": "Manipulation",
"pages": [
"capabilities/manipulation/overview",
"capabilities/manipulation/adding_a_custom_arm",
"capabilities/manipulation/openarm_integration"
]
},
{
"group": "Memory",
"pages": [
"capabilities/memory/overview",
"capabilities/memory/plot",
"capabilities/memory/algo_comparison"
]
},
"capabilities/perception"
]
},
{
"group": "Platforms",
"pages": [
"platforms/quadruped-go2",
"platforms/humanoid-g1"
]
},
{
"group": "Development",
"pages": [
"development/docker",
"development/testing",
"development/grid_testing",
"development/large_file_management",
"development/profiling_dimos",
"development/writing_docs"
]
},
{
"group": "For Agents",
"pages": [
"agents/overview",
"agents/style",
"agents/testing",
{
"group": "Writing Docs",
"pages": [
"agents/docs/overview",
"agents/docs/codeblocks",
"agents/docs/doclinks"
]
}
]
}
]
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.

P1 Multiple navigation entries reference non-existent files

docs.json is introduced in this PR with 14 page paths that have no matching file on disk, so every one of these nav items will either throw a Mintlify build error or render as a broken page. The mismatches are:

  • usage/concepts — actual file is usage/README.md
  • usage/data_streams/overview — actual file is usage/data_streams/README.md
  • usage/sensor_streams/overview — actual file is usage/sensor_streams/README.md
  • usage/transports/overview — actual file is usage/transports/index.md
  • capabilities/agents — actual file is capabilities/agents/readme.md
  • capabilities/navigation/overview — actual file is capabilities/navigation/readme.md
  • capabilities/navigation/native-go2 — actual file is capabilities/navigation/native/index.md
  • capabilities/manipulation/overview — actual file is capabilities/manipulation/readme.md
  • capabilities/memory/overview — actual file is capabilities/memory/index.md
  • capabilities/perception — actual file is capabilities/perception/readme.md
  • platforms/quadruped-go2 — actual file is platforms/quadruped/go2/index.md
  • platforms/humanoid-g1 — actual file is platforms/humanoid/g1/index.md
  • agents/overview — actual file is agents/index.md
  • agents/docs/overview — actual file is agents/docs/index.md

Either the nav entries need to be updated to match the existing file paths, or the files need to be renamed/relocated to match the nav entries before this is merged.

Comment on lines +7 to +13
{/* doclinks-ignore-start */}
| Pattern | Example |
|-------------|-----------------------------------------------------|
| Code file | `[`service/spec.py`]()` → resolves path |
| With symbol | `Configurable` in `[`spec.py`]()` → adds `#L<line>` |
| Doc link | `[Configuration](.md)` → resolves to doc |
<!-- doclinks-ignore-end -->
{/* doclinks-ignore-end */}
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.

P1 doclinks-ignore markers changed to JSX syntax, breaking the doclinks tool

dimos/utils/docs/doclinks.py uses re.compile(r"<!--\s*doclinks-ignore-start\s*-->") to identify regions to skip. Changing these markers from <!-- doclinks-ignore-start/end --> to {/* doclinks-ignore-start/end */} means the regex will no longer match, so the doclinks tool will attempt to resolve the example patterns inside the table as real file references and likely fail or produce incorrect output when run against this file.

Comment thread docs/quickstart.mdx
Comment on lines +82 to +83
First replay failing? Most issues are network or LFS related. See [Replay troubleshooting](/troubleshooting/replay).
</Note>
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.

P2 Link to non-existent troubleshooting page

/troubleshooting/replay is referenced here but there is no troubleshooting/ directory or replay.md file anywhere in the docs/ tree, so this link will 404. Either the page needs to be created or the note should point to an existing help resource.

Comment thread docs/docs.json
Comment on lines +113 to +114
"platforms/quadruped-go2",
"platforms/humanoid-g1"
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.

P2 Indentation is inconsistent — "platforms/quadruped-go2" is not indented to match the surrounding entries.

Suggested change
"platforms/quadruped-go2",
"platforms/humanoid-g1"
"platforms/quadruped-go2",
"platforms/humanoid-g1"

@codecov
Copy link
Copy Markdown

codecov Bot commented May 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

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