Docusaurus v2.2.0 Release Notes

Release Date: 2022-10-29 // 3 months ago
  • :rocket: New Feature

    • 🔌 docusaurus-plugin-client-redirects
      • #8227 feat(plugin-client-redirects): keep the query string + hash (@Xabilahu)
    • docusaurus
      • #8210 feat(core): add --config param to swizzle command (@e-im)
    • 🔌 docusaurus-mdx-loader, docusaurus-plugin-content-blog, docusaurus-plugin-content-docs, docusaurus-plugin-content-pages, docusaurus-theme-classic, docusaurus-theme-mermaid, docusaurus-types, docusaurus
      • #7490 feat: support mermaid code blocks in Markdown (@sjwall)
    • docusaurus-types, docusaurus
      • #8151 feat(core): siteConfig.headTags API to render extra tags in document head (@johnnyreilly)

    :bug: Bug Fix

    • 🔌 docusaurus-plugin-ideal-image
      • #8250 fix(ideal-image): do not pass down img prop (@lex111)
    • docusaurus-theme-common
      • #8246 fix(mdx-loader): properly unwrap mdxAdmonitionTitle placeholder (@Josh-Cena)
    • 🔌 docusaurus-plugin-content-docs
      • #8234 fix(plugin-content-docs): fix error message context (error cause) when doc processing fails (@shanpriyan)
    • 🌐 docusaurus-theme-classic, docusaurus-theme-translations
      • #8207 fix(theme-classic): hamburger menu control navigation by keyboard (@jeferson-sb)
    • docusaurus-theme-classic, docusaurus-theme-common
      • #8204 fix(theme-classic): fix SkipToContent without JS , refactor, make it public theming API (@mturoci)
      • #8059 fix(theme): preserve url ?search#hash on navbar version/locale dropdowns navigations (@slorber)
    • docusaurus
      • #8192 fix(core): throw error for invalid URL in config file (@forgeRW)
    • docusaurus-theme-classic
    • docusaurus-utils
      • #8137 fix(utils): remove non-ASCII limitation for path normalization (@birjj)
      • #8158 fix(content-blog): make RSS feed generation work with slugs with .html extension (@Pranav2612000)
    • 🌐 docusaurus-theme-translations
    • 🔌 docusaurus-plugin-client-redirects
      • #8067 fix(redirect): tolerate trailing slash difference if config is undefined (@Josh-Cena)

    💅 :nail_care: Polish

    • 🌐 docusaurus-theme-translations
      • #8253 chore(theme-translations): complete ru translations (@lex111)
      • #8243 chore(theme-translations): complete French translations (@forresst)
      • #8075 fix(theme-translation): complete Japanese theme default translation (@pasora)
    • docusaurus
    • docusaurus-theme-classic
      • #8161 fix(theme): do not show tab content when tabbing over it; show after selection only (@mturoci)
      • #8062 refactor(theme): remove hard-coded tag border-radius (@homotechsual)
    • docusaurus-utils-validation, docusaurus
      • #8066 fix(core): normalize slashes for url/baseUrl instead of throwing (@Josh-Cena)

    Committers: 22


Previous changes from v2.1.0

  • :rocket: New Feature

    • docusaurus-theme-classic, docusaurus-theme-common
      • #8008 feat(theme): ability to use <DocCardList> without items prop, on any doc page (@slorber)
    • 🔌 docusaurus-plugin-content-docs, docusaurus-theme-classic
      • #7963 feat(docs): allow to configure noIndex per doc version (@slorber)
      • #7949 feat(plugin-docs): docs sidebar item link: support "autoAddBaseUrl" attribute (@slorber)
    • 🌐 docusaurus-theme-translations

    :bug: Bug Fix

    • create-docusaurus
      • #8032 fix(create-docusaurus): tutorial and init template improvements (@slorber)
    • docusaurus-preset-classic
      • #8029 fix(preset-classic): broken link in "unrecognized keys" error message (@mdubus)
    • docusaurus
      • #7977 fix(core): preload should support encoded page links (@adventure-yunfei)
      • #7996 fix(core): CLI command write-translations should extract translations from @docu… (@slorber)
      • #7952 fix(core): allow overriding ssr/dev template meta tags (@slorber)
    • 🔌 docusaurus-plugin-sitemap
      • #7964 fix(sitemap): filter all routes with robots meta containing noindex (@slorber)
    • docusaurus-theme-classic
      • #7910 fix(theme-classic): code block line number display with line wrapping (@yzhe819)
      • #7786 fix: collapse siblings when first category is selected (@whiteand)

    💅 :nail_care: Polish

    • docusaurus-theme-classic
      • #7982 fix(theme): add aria-label to skip to content link region (@YoniChechik)
      • #7940 refactor(theme-classic): split AnnouncementBar, increase z-index, use shadow (@slorber)
      • #7876 refactor(theme-classic): make tag text visually certered (@Kosai106)
    • docusaurus-utils
      • #7941 feat(core): add new Webpack file-loader extensions: avif, mov, mkv, mpg, avi... (@slorber)
    • docusaurus-theme-classic, docusaurus-types
      • #7942 feat(theme-classic): use lang attribute in navbar locale dropdown items (@slorber)
    • 🌐 docusaurus-theme-translations

    📚 :memo: Documentation

    • create-docusaurus
      • #8032 fix(create-docusaurus): tutorial and init template improvements (@slorber)
    • 📈 docusaurus-plugin-content-blog, docusaurus-plugin-content-docs, docusaurus-plugin-content-pages, docusaurus-plugin-debug, docusaurus-plugin-google-analytics, docusaurus-plugin-google-gtag, docusaurus-plugin-ideal-image, docusaurus-plugin-sitemap, docusaurus-theme-classic

    Committers: 10