Repository navigation
Remove legacy Sphinx docs/ and finish the Mintlify cutover - #28964
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 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>
feedcd0 to
3cc1297
Compare
3cc1297 to
c0c0a57
Compare
ee2810c to
e26f55b
Compare
e26f55b to
48de97d
Compare
- 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>
48de97d to
53cde14
Compare
|
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
left a comment
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
This is critical update script. Has this been tested?
There was a problem hiding this comment.
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 @@ | |||
| --- | |||
There was a problem hiding this comment.
Why is this file removed? Does it serve any purpose?
There was a problem hiding this comment.
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 @@ | |||
| --- | |||
There was a problem hiding this comment.
This file seems to have more recent merge history than intro.mdx. Check for diffs?
There was a problem hiding this comment.
This index is a duplicated old long-form cookbook index, it is from the old cookbook repo and should be removed long time ago.
|
Comments LGTM. Thx! |
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>
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>
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>
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>
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>
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>
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 ofdocs_new/docs_migration_plan.md: delete the legacydocs/tree, clean up everything that pointed at it, and set up link-checking fordocs_new/.What's in it (3 layered commits)
docs/and repoint references — delete the 174-filedocs/tree; repoint source-code docstrings (to in-repodocs_new/docs/...mdxpaths),multimodal_gen/ComfyUI/benchmark/mmmuREADMEs (to docs.sglang.io), and.claudeskills; fix therelease-branch-cutworkflow +scripts/release/README.mdto bump version refs in thedocs_newinstall/AMD pages..ipynb+ 4.rstSphinx leftovers (all have.mdxtwins, none in nav), the finished migration plan, and a strayintro copy.mdx; fix all 36 broken internal links/anchors (mint broken-linksnow reports zero); refresh thedocs_newREADME contribution guide.mint@4.2.559), nightly lychee repointed todocs_newexternal links, opt-in manual-stage mint pre-commit hook, ruff now lintsdocs_new/Python, and the now-obsoletecheck-no-docs-changeslegacy guard removed.Link-checking after this PR
mint broken-links --check-anchors --check-redirectsscheme=http/https)README.md+ docs_new external linksNotes
mintis pinned to4.2.559(heading-slug rules are version-sensitive) — bump deliberately after re-verifying.sgl-project/sgl-docsrepo.🤖 Generated with Claude Code
CI States
Latest PR Test (Base): ❌ Run #29284861194
Latest PR Test (Extra): ❌ Run #29284860904