Repository navigation
fix: escape titles, keep preserved components, scope logLevel per instance - #86
Merged
Merged
Conversation
…tance
- preserveComponents keeps HTML-named components (<Table>) and TabItem;
HTML tag stripping matches lowercase element names only
- TabItem label: anchor attribute names on whitespace (data-label is not
label) and unwrap string literals in braces (label={"x"})
- collapse titles to one line in llms.txt links and headings, and escape
\, [, ] in link text
- join a hard-wrapped first-paragraph description before TOC truncation;
normalize whitespace in TOC descriptions
- group blog posts under a Blog heading on multi-section sites
- validate useRelativeUrls, rewriteImageUrls, warnOnIgnoredFiles as booleans
- run each instance's postBuild under its own logLevel (AsyncLocalStorage),
since Docusaurus runs postBuild hooks concurrently
- put a space before duplicate-heading suffixes: 'Guide (Install)'
- rewriteImageUrls: handle paths without ./, angle-bracket destinations,
and percent-encoded paths
Joining hard-wrapped first paragraphs made long body descriptions reach the 150-character cut more often, and the cut could land inside a link or an inline code span. Body descriptions now keep link text only, and a cut that would leave a `[` or backtick open moves before it. Descriptions with nothing open keep the same 147-character cut.
rachfop
added a commit
that referenced
this pull request
Oct 2, 2026
…tance (#86) * fix: escape titles, keep preserved components, scope logLevel per instance - preserveComponents keeps HTML-named components (<Table>) and TabItem; HTML tag stripping matches lowercase element names only - TabItem label: anchor attribute names on whitespace (data-label is not label) and unwrap string literals in braces (label={"x"}) - collapse titles to one line in llms.txt links and headings, and escape \, [, ] in link text - join a hard-wrapped first-paragraph description before TOC truncation; normalize whitespace in TOC descriptions - group blog posts under a Blog heading on multi-section sites - validate useRelativeUrls, rewriteImageUrls, warnOnIgnoredFiles as booleans - run each instance's postBuild under its own logLevel (AsyncLocalStorage), since Docusaurus runs postBuild hooks concurrently - put a space before duplicate-heading suffixes: 'Guide (Install)' - rewriteImageUrls: handle paths without ./, angle-bracket destinations, and percent-encoded paths * fix: keep truncated TOC descriptions from leaving links or code open Joining hard-wrapped first paragraphs made long body descriptions reach the 150-character cut more often, and the cut could land inside a link or an inline code span. Body descriptions now keep link text only, and a cut that would leave a `[` or backtick open moves before it. Descriptions with nothing open keep the same 147-character cut.
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.
Smaller output and configuration bugs:
preserveComponentscouldn't keep components named like HTML tags (<Table>) orTabItem. HTML tags now match lowercase names only, and theTabItemrewrite honors the list.TabItemlabels kept braces' quotes (label={"Python"}) and readdata-labelaslabel.], newlines, or link syntax brokellms.txtlines. Link text is escaped and collapsed to one line, and##headings stay on one line.## Blogheading when there are several sections.useRelativeUrls,rewriteImageUrls, andwarnOnIgnoredFilesweren't type-checked, so'false'counted as true.logLevelapplied to both. EachpostBuildnow runs with its own level.## Install (Api), not## Install(Api)../, in angle brackets, or percent-encoded weren't rewritten.tests/test-small-fixes.jscovers each case.tests/test-output-assembly.jsnow expects the spaced heading suffix. The docs site build output is unchanged; on a 3,461-page docs site, the differences are the heading suffix space and longer descriptions, with no prose lost.