Skip to content

DX-2659#696

Merged
enesakar merged 4 commits into
mainfrom
DX-2659
May 11, 2026
Merged

DX-2659#696
enesakar merged 4 commits into
mainfrom
DX-2659

Conversation

@CahidArda
Copy link
Copy Markdown
Contributor

No description provided.

@linear
Copy link
Copy Markdown

linear Bot commented May 11, 2026

DX-2659

@mintlify
Copy link
Copy Markdown

mintlify Bot commented May 11, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
upstash 🟢 Ready View Preview May 11, 2026, 3:56 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

CahidArda added 2 commits May 11, 2026 19:06
Refactor the builder to emit llms-full.txt in upstream's per-page format:

    # <title>
    Source: <url>             # no .md suffix
    <blank lines>             # 3 for MDX pages, 1 for OpenAPI ops
    <body>
    <blank lines>             # 2 before the next page

OpenAPI operations now carry a synthesized metadata line
(`<spec> <method> <api-path>`) followed by the description, matching
how Mintlify renders spec-driven pages. `expandOpenApi` now returns
the method and API path alongside the existing fields.

Apply the high-frequency content transforms Mintlify does at build
time so MDX bodies look closer to the published markdown:

  - bullet `- ` → `* `
  - horizontal rule `---` → `***`
  - code fence ``` ```lang ``` → ``` ```lang theme={"system"} ```
  - internal links `/foo` → `/docs/foo`
  - link-URL `\&` → `&`
  - trailing whitespace trimmed on every line

Known divergences from upstream llms-full.txt (~53K of 87K lines):

  - JSX component children (`<Tabs>`, `<Tab>`, `<Accordion>`, `<Steps>`)
    are re-indented by 4 spaces per nesting level in upstream. We emit
    them verbatim from the source MDX, because correct re-indentation
    requires a real MDX/JSX parser (remark-mdx + remark-stringify with
    component-aware rules).
  - Markdown tables are column-padded in upstream so cell boundaries
    align vertically. We emit tables verbatim.
  - Some `<img>` tags get `src=` attributes injected from external data
    (e.g. shields.io badge URLs). We can't reproduce these without
    Mintlify's component resolution data.
  - Blank-line spacing around components occasionally differs because
    of the above re-indentation pass.

llms.txt remains byte-identical to upstream. Closing the llms-full.txt
gap fully would require implementing a Mintlify-compatible MDX
serializer; tracked as future work.
@enesakar enesakar merged commit a0181dd into main May 11, 2026
3 checks passed
@enesakar enesakar deleted the DX-2659 branch May 11, 2026 16:47
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