Skip to content

Remove legacy Sphinx docs/ and finish the Mintlify cutover - #28964

Merged
wisclmy0611 merged 8 commits into
mainfrom
claude/elastic-stonebraker-fe5149
Jul 13, 2026
Merged

wisclmy0611 merged 8 commits into
mainfrom
claude/elastic-stonebraker-fe5149

Conversation

@zijiexia

@zijiexia zijiexia commented Jun 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The docs have been migrated to docs_new/ (Mintlify, canonical at docs.sglang.io) and the Sphinx build/deploy workflows are already removed. This completes Phase 6 of docs_new/docs_migration_plan.md: delete the legacy docs/ tree, clean up everything that pointed at it, and set up link-checking for docs_new/.

What's in it (3 layered commits)

  1. Remove legacy Sphinx docs/ and repoint references — delete the 174-file docs/ tree; repoint source-code docstrings (to in-repo docs_new/docs/...mdx paths), multimodal_gen/ComfyUI/benchmark/mmmu READMEs (to docs.sglang.io), and .claude skills; fix the release-branch-cut workflow + scripts/release/README.md to bump version refs in the docs_new install/AMD pages.
  2. docs_new: drop migration leftovers and fix internal links — remove 14 .ipynb + 4 .rst Sphinx leftovers (all have .mdx twins, none in nav), the finished migration plan, and a stray intro copy.mdx; fix all 36 broken internal links/anchors (mint broken-links now reports zero); refresh the docs_new README contribution guide.
  3. ci: gate docs_new links; drop legacy docs/ CI — Mintlify broken-links PR gate (pinned mint@4.2.559), nightly lychee repointed to docs_new external links, opt-in manual-stage mint pre-commit hook, ruff now lints docs_new/ Python, and the now-obsolete check-no-docs-changes legacy guard removed.

Link-checking after this PR

Where Tool Scope
PR CI (blocking) mint broken-links --check-anchors --check-redirects docs_new internal links / anchors / redirects
Nightly lychee (scheme=http/https) README.md + docs_new external links
pre-commit mint hook (opt-in, manual stage) local self-check, no forced install

Notes

  • mint is pinned to 4.2.559 (heading-slug rules are version-sensitive) — bump deliberately after re-verifying.
  • Out of scope (separate GitHub admin steps): archiving the standalone sgl-project/sgl-docs repo.

🤖 Generated with Claude Code


CI States

Latest PR Test (Base): ❌ Run #29284861194
Latest PR Test (Extra): ❌ Run #29284860904

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions Bot added documentation Improvements or additions to documentation quant LLM Quantization amd dependencies Pull requests that update a dependency file lora Multi-modal multi-modal language model deepseek speculative-decoding hicache Hierarchical Caching for SGLang npu diffusion SGLang Diffusion mthreads labels Jun 22, 2026
@mintlify

mintlify Bot commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

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

Project Status Preview Updated (UTC)
lmsysorg 🟢 Ready View Preview Jun 22, 2026, 9:42 PM

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

The documentation has been migrated to docs_new/ (Mintlify) and is now the
canonical site at docs.sglang.io; the Sphinx build/deploy workflows are already
gone. Delete the legacy docs/ tree (Phase 6 of docs_new/docs_migration_plan.md)
and repoint every in-repo reference that pointed into it:

- source docstrings: sampling_params.py, lang/api.py, lang/ir.py,
  disaggregation/ascend/transfer_engine.py -> docs.sglang.io/docs/...
- multimodal_gen + ComfyUI + benchmark/mmmu READMEs -> docs.sglang.io/docs/...
- .claude skills (add-jit-kernel, diffusion, profiler source-map) -> docs_new/docs/...
- release-branch-cut.yml + scripts/release/README.md: bump version refs in
  docs_new/docs/get-started/install.mdx and hardware-platforms/amd_gpu.mdx
  instead of the deleted docs/ files

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Remove Sphinx-era leftovers that Mintlify never serves and that no nav entry
references: 14 .ipynb and 4 .rst (each has an .mdx twin), the completed
docs_migration_plan.md, and a stray "intro copy.mdx".

Fix all 36 broken internal links/anchors/redirects reported by
`mint broken-links --check-anchors --check-redirects` (now reports zero):
mostly heading-slug normalization (Mintlify slugs lowercase and map "." -> "-"
while keeping "_" and "+"), plus a few repoints (cpu_server DeepSeek example,
removed glm45 cross-link, multimodal anchor).

Refresh docs_new/README's contribution guide: clone sglang and cd docs_new,
the config-driven recipe flow with DeepSeek-V4 as the example, and accurate
cookbook category paths.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
zijiexia and others added 2 commits June 22, 2026 17:53
- PR gate (lint.yml): run `mint broken-links --check-anchors --check-redirects`
  on docs_new (pinned mint@4.2.559; its heading-slug rules are version-sensitive).
  Mintlify understands its own routes; lychee can't (it errors on root-relative
  /docs/... links), so internal-link checking stays with mint.
- Nightly (nightly-link-check.yml): keep the lychee external-link check on
  README.md only. lychee can't cleanly scan docs_new (chokes on Mintlify routes),
  and the cookbook's many HuggingFace model URLs rate-limit / anti-bot CI bots,
  so an automated docs_new external check is mostly false noise; run
  `mint broken-links --check-external` manually when needed instead.
- pre-commit: add an opt-in, manual-stage mint-broken-links hook (language:
  system) so it never runs on a normal commit and does not force a mint install.
- ruff: lint docs_new/ Python (was docs/) now that the Sphinx tree is gone.
- Remove the legacy-docs guard now that docs/ no longer exists: delete
  scripts/ci/check_no_docs_changes.py and drop its lint.yml job + pre-commit hook.
- Trim now-empty docs/ globs from lychee.toml / lychee-ci.toml.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
None of these are introduced by this PR — they predate it; the new mint gate
(internal) and a one-off lychee external scan surfaced them.

#27893 Ascend NPU restructure (monolithic ascend_npu_best_practice split into
best_practice/* + model-tutorials/*) left dangling cross-links and nav:
- model-tutorials/*.mdx: drop anchors to best_practice sections that don't exist
  under those slugs (link to the model's best_practice page).
- ascend_npu_optimization.mdx: point the DeepSeek-V3.2 reference at
  best_practice/deepseek_v3_2 and the general links at the Ascend NPU landing.
- cookbook DeepSeek-V3.mdx: repoint the deleted ascend_npu_deepseek_example link.
- docs.json: repoint 5 redirects and remove 5 stale nav entries to deleted pages.

Upstream files/pages that moved (each verified 404 in a browser):
- cookbook/diffusion/*: github multimodal_gen/docs/{install,support_matrix,
  openai_api,cache_dit}.md -> the /docs/sglang-diffusion/* pages they became.
- srt/conversation.py -> srt/parser/conversation.py; ollama/README -> README.md.
- ggerganov/llama.cpp -> ggml-org/llama.cpp (+ .md); qwenlm qwen-image-edit-2511
  -> qwen-image-edit; nvidia MLNX_OFED and kubernetes-sigs/lws install-doc URLs.

mint broken-links reports zero; the moved-page links verified 200 in a browser.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

The old Sphinx docs site (sgl-project/sgl-project.github.io) is now archived and frozen. Point the two remaining references at the live Mintlify docs instead (both verified 200):

- cookbook/diffusion/README.mdx: SGLang Documentation -> https://docs.sglang.io
- srt/entrypoints/ollama/README.md: Ollama API doc -> the migrated /docs/basic_usage/ollama_api page

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
cookbook/diffusion/README.mdx is an unreferenced leftover: the diffusion cookbook landing page in the nav is cookbook/diffusion/intro, and this file carries stale content (old sgl-cookbook/docs/diffusion/ tree, issue-style "comment below" wording). It is absent from docs.json nav and redirects and has no inbound links, so removing it keeps mint broken-links green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@yvbbrjdr yvbbrjdr 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.

LGTM other than comments

sed -i "s/git clone -b v[0-9]\+\.[0-9]\+\.[0-9]\+\.\?post\?[0-9]*/git clone -b $VERSION/" docs/get_started/install.md
sed -i "s/git clone -b v[0-9]\+\.[0-9]\+\.[0-9]\+\.\?post\?[0-9]*/git clone -b $VERSION/" docs/platforms/amd_gpu.md
sed -i "s/git clone -b v[0-9]\+\.[0-9]\+\.[0-9]\+\.\?post\?[0-9]*/git clone -b $VERSION/" docs_new/docs/get-started/install.mdx
sed -i "s/git clone -b v[0-9]\+\.[0-9]\+\.[0-9]\+\.\?post\?[0-9]*/git clone -b $VERSION/" docs_new/docs/hardware-platforms/amd_gpu.mdx

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.

This is critical update script. Has this been tested?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes. This change only retargets the paths from the docs/ to docs_new/, the sed regex is unchanged. I verified the regex still matches the version-pin line in both new targets. The full release-branch-cut job only runs during an actual release cut so it can't be exercised in this PR's CI, but the substitution itself is verified locally.

@@ -1,93 +0,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.

Why is this file removed? Does it serve any purpose?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the review, I reverted it back. It serve no purpose regarding to the sglang docs itself but it is a GitHub rendered README for the docs_new/cookbook/diffusion/ directory, we can keep it for this purpose.

@@ -1,228 +0,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.

This file seems to have more recent merge history than intro.mdx. Check for diffs?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This index is a duplicated old long-form cookbook index, it is from the old cookbook repo and should be removed long time ago.

@yvbbrjdr

Copy link
Copy Markdown
Contributor

Comments LGTM. Thx!

@wisclmy0611
wisclmy0611 merged commit 50ed4c0 into main Jul 13, 2026
99 of 115 checks passed
@wisclmy0611
wisclmy0611 deleted the claude/elastic-stonebraker-fe5149 branch July 13, 2026 22:06
zijiexia added a commit that referenced this pull request Jul 22, 2026
The legacy Sphinx docs/ was removed in #28964, freeing the canonical
name. Rename docs_new/ -> docs/ and update all path references across
CI/pre-commit, release scripts, CODEOWNERS/labeler, Python docstrings,
and .claude tooling. Public doc URLs are unaffected (docs.json nav paths
do not include the folder name).

NOTE: the Mintlify hosting dashboard's content directory pointer must be
updated from docs_new/ to docs/ when this merges, or the hosted site
build will fail.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
zijiexia added a commit that referenced this pull request Jul 22, 2026
The legacy Sphinx docs/ was removed in #28964 and docs/ is now the
Mintlify site (with its own docs/.gitignore). The two docs/_build ignore
entries no longer match anything and would wrongly hide a real path
under the reused docs/ name, so remove them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
zijiexia added a commit that referenced this pull request Jul 23, 2026
The legacy Sphinx docs/ was removed in #28964, freeing the canonical
name. Rename docs_new/ -> docs/ and update all path references across
CI/pre-commit, release scripts, CODEOWNERS/labeler, Python docstrings,
and .claude tooling. Public doc URLs are unaffected (docs.json nav paths
do not include the folder name).

NOTE: the Mintlify hosting dashboard's content directory pointer must be
updated from docs_new/ to docs/ when this merges, or the hosted site
build will fail.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
zijiexia added a commit that referenced this pull request Jul 23, 2026
The legacy Sphinx docs/ was removed in #28964 and docs/ is now the
Mintlify site (with its own docs/.gitignore). The two docs/_build ignore
entries no longer match anything and would wrongly hide a real path
under the reused docs/ name, so remove them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
zijiexia added a commit that referenced this pull request Aug 3, 2026
The legacy Sphinx docs/ was removed in #28964, freeing the canonical
name. Rename docs_new/ -> docs/ and update all path references across
CI/pre-commit, release scripts, CODEOWNERS/labeler, Python docstrings,
and .claude tooling. Public doc URLs are unaffected (docs.json nav paths
do not include the folder name).

NOTE: the Mintlify hosting dashboard's content directory pointer must be
updated from docs_new/ to docs/ when this merges, or the hosted site
build will fail.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
zijiexia added a commit that referenced this pull request Aug 3, 2026
The legacy Sphinx docs/ was removed in #28964 and docs/ is now the
Mintlify site (with its own docs/.gitignore). The two docs/_build ignore
entries no longer match anything and would wrongly hide a real path
under the reused docs/ name, so remove them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026

This branch was successfully deployed

1 active deployment
staging - docs_new — eec43d3d Deployed Jul 13, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amd apple-silicon deepseek dependencies Pull requests that update a dependency file diffusion SGLang Diffusion documentation Improvements or additions to documentation hicache Hierarchical Caching for SGLang lora mthreads Multi-modal multi-modal language model npu quant LLM Quantization speculative-decoding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants