Skip to content

[FR] Fix malformed AutoTrain link and untranslated heading in chapter2 quiz - #1328

Open
AxelNoun wants to merge 1 commit into
huggingface:mainfrom
AxelNoun:fr-chapter2-quiz-autotrain-link
Open

AxelNoun wants to merge 1 commit into
huggingface:mainfrom
AxelNoun:fr-chapter2-quiz-autotrain-link

Conversation

@AxelNoun

@AxelNoun AxelNoun commented Oct 7, 2026

Copy link
Copy Markdown

This PR fixes question 5 of the French end-of-chapter quiz, chapters/fr/chapter2/8.mdx (4 lines changed, none added or removed).

  • AutoTrain link (lines 113 and 134, one per framework branch): the href attribute lacked its closing quote (<a href='https://huggingface.co/autotrain>AutoTrain</a>). The doc-builder Question component inserts the explanation with {@html}; when the string is parsed as HTML, the unclosed attribute absorbs the rest of it, so the explanation reads Vous confondez cela avec notre produit with neither the link nor the word "AutoTrain". The English quiz (chapters/en/chapter2/9.mdx) has the correct link.
  • Untranslated heading (line 128, TensorFlow branch): ### 5. What is an AutoModel? was still in English, and it appears in the table of contents of the page next to the French heading (checked in the HTML served at https://huggingface.co/learn/llm-course/fr/chapter2/8). It becomes ### 5. Qu'est-ce qu'un TFAutoModel ?: the last English version with a TensorFlow branch (92c615d) used TFAutoModel in this heading, and the French answer below it already names TFAutoModel.
  • Spacing (line 107): Qu'est-ce qu'un AutoModel? becomes Qu'est-ce qu'un AutoModel ?, consistent with the other headings of this quiz.

Verification:

  • Both explanation strings were parsed with html5lib (an implementation of the HTML parsing specification) before and after the change. Before, the link and the word "AutoTrain" are lost; after, the string parses to a link to https://huggingface.co/autotrain with the text "AutoTrain". The JS bundle of the page, as served on 2026-10-07, still contains the malformed string.
  • python utils/code_formatter.py --check_only (the command run by make quality) passes with black 24.8.0. No code block is modified.
  • The page was not previewed with doc-builder (the README notes that preview does not work on Windows).

#1294 also edits this file (lines 31 and 198). The hunks do not overlap, and git merge-tree reports no conflict between the two branches.

Related to #44.

@stevhliu, for review, as suggested in the README.

…2 quiz

- Add the missing closing quote of the AutoTrain href in question 5
  (both framework branches). Without it the anchor tag is never
  closed and the word "AutoTrain" is dropped from the explanation.
- Translate the TensorFlow-branch heading of question 5, which was
  still in English. The last English version with a TensorFlow branch
  (92c615d) titled it after TFAutoModel, which the French answer
  already uses.
- Use the same spacing before "?" as the other headings of the quiz.
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

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