Skip to content

fix: resolve HTML minifier warnings in strict build#2384

Open
poissoncorp wants to merge 1 commit intoravendb:mainfrom
poissoncorp:minifier-fix
Open

fix: resolve HTML minifier warnings in strict build#2384
poissoncorp wants to merge 1 commit intoravendb:mainfrom
poissoncorp:minifier-fix

Conversation

@poissoncorp
Copy link
Copy Markdown
Contributor

Additional description

Resolves all build warnings emitted during DOCUSAURUS_STRICT=true builds.

Changes

"Unexpected question mark instead of tag name"

  • Removed <?xml ...?> declarations from 15 SVG files in static/icons/
  • Added a defensive .replace() in Icon.tsx's getSvg() to strip XML
    declarations before injecting SVG content via dangerouslySetInnerHTML

"Control character in input stream"

  • Replaced vertical tab characters (0x0B) with spaces in
    guides/the-ravendb-kubernetes-operator-way.mdx

"No p element in scope but a p end tag seen"

  • Removed 5 standalone <TabItem> wrappers per file in
    certificate-configuration.mdx (current, 6.2, 7.1) — these were used
    without any <Tabs> parent, so they were not rendering as tabs
  • Removed unused Tabs/TabItem imports
  • Separated an inline <Admonition> from preceding paragraph text with a
    blank line to prevent the block-level element from breaking <p> scope

Type of change

  • Content - docs
  • Content - cloud
  • Content - guides
  • Content - start pages/other
  • New docs feature (consider updating /templates or readme)
  • Bug fix
  • Optimization
  • Other

Changes in docs URLs

  • No changes in docs URLs
  • Articles are restructured, URLs will change, mapping is required (update /scripts/redirects.json file, set Documents Moved PR label)

Changes in UX/UI

  • No changes in UX/UI
  • Changes in UX/UI (include screenshots and description)

- Strip <?xml?> declarations from 15 SVG icons and add defensive
  strip in Icon component's getSvg() to prevent future occurrences
- Remove control characters (0x0B) from Kubernetes operator guide
- Fix invalid <p> nesting in certificate-configuration by removing
  standalone <TabItem> wrappers (used without <Tabs>) and separating
  inline <Admonition> from surrounding text
@poissoncorp poissoncorp marked this pull request as ready for review April 7, 2026 10:23
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.

1 participant