Fix local preview guidance for course chapters#1185
Merged
stevhliu merged 1 commit intohuggingface:mainfrom Feb 17, 2026
Merged
Fix local preview guidance for course chapters#1185stevhliu merged 1 commit intohuggingface:mainfrom
stevhliu merged 1 commit intohuggingface:mainfrom
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Contributor
Author
|
@stevhliu If you have time please take a look, have a wonderful day 😎 |
Member
|
nice, thanks for this! 🤗 |
stevhliu
approved these changes
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
When contributors preview translated course content locally,
doc-builder previewmay start successfully but still return runtime404for valid routes.Root Cause
The issue came from a dependency/version skew in the local tooling:
hf-doc-builderinstalled from PyPI (v0.5.0) which generates.mdxfile for preview.doc-builderkit from a newer revision which requires+page.sveltefile per path.Because of this mismatch, route generation behavior was inconsistent and local preview could boot while serving unresolved routes as
404.What Changed
README.mdto:hf-doc-builderfrom the current GitHub source;--language LANG-ID.404that clearly points to re-installinghf-doc-builderand restarting preview.Why This Helps
Contributors now get deterministic setup steps that keep the Python CLI and SvelteKit template in sync, which prevents route-generation mismatch and avoids false-negative

404previews.Verification Notes
doc-builderdependency source.Things To Note
References