HOTFIX for 2.0.0-alpha.41.
docusaurus-theme-classic
docusaurus-init
,docusaurus-preset-classic
,docusaurus-theme-classic
- #2224 feat(v2): add remark-admonitions to @docusaurus/preset-classic (@elviswolcott)
docusaurus-theme-classic
,docusaurus
docusaurus-theme-classic
docusaurus-plugin-content-pages
,docusaurus-utils
,docusaurus
- #2221 feat(v2): allow for Typescript pages and components (@jonathanrdelgado)
docusaurus-theme-classic
docusaurus-theme-classic
,docusaurus-theme-live-codeblock
- #2285 fix(v2): fix codeblock copy button not including blank lines (@KohheePeace)
- #2241 fix(v2): make code blocks scrollable (@lex111)
docusaurus-theme-classic
docusaurus-theme-search-algolia
docusaurus-plugin-content-blog
,docusaurus-theme-classic
docusaurus
docusaurus-mdx-loader
docusaurus-theme-live-codeblock
docusaurus-theme-classic
,docusaurus-theme-live-codeblock
- #2281 docs: update windows deploy command (@OndrejNepozitek)
- #2257 docs(v2): require using JSX flavored style objects in mdx (@wgao19)
- #2251 docs(v2): collapsible categories in sidebar (@lex111)
- #2218 docs(v2): update link to available prism themes (@jsjoeio)
- #2216 docs(v2): fix plugin-content-docs config comment typo (@sdowding)
- Other
- #2256 fix(v2): add title for Feedback page (@lex111)
- #2246 docs(v2): add Benthos to showcase (@Jeffail)
- #2242 docs(v1): showcase user Jafar (@galhavivi)
- #2238 docs(v1): showcase Dime (@hbulens)
- #2233 docs(v2): showcase user supabase (@awalias)
- #2226 docs(v1): showcase user Adapt.js (@mterrel)
- #2225 docs(v1): add The Diff Podcast to users (@JoelMarcey)
- #2219 chore(v1): Updated users list, removing sites not using docusaurus (@jjwill)
docusaurus-theme-classic
,docusaurus
- Alexey Pyltsyn (@lex111)
- Ashley Jeffs (@Jeffail)
- Elie Dutheil (@edwandr)
- Elvis Wolcott (@elviswolcott)
- Evan Rubinton (@erubi)
- Gal Havivi (@galhavivi)
- Hanseung Yoo (@trustyoo86)
- Hendrik Bulens (@hbulens)
- JavaScript Joe (@jsjoeio)
- Joel Marcey (@JoelMarcey)
- Jonathan Delgado (@jonathanrdelgado)
- Joshua Williams (@jjwill)
- KohheePeace (@KohheePeace)
- Mark Terrel (@mterrel)
- Ondřej Nepožitek (@OndrejNepozitek)
- Scott Dowding (@sdowding)
- Wei Gao (@wgao19)
- @awalias
docusaurus-theme-classic
docusaurus
docusaurus-mdx-loader
,docusaurus-plugin-content-blog
,docusaurus-plugin-content-docs
docusaurus-theme-classic
docusaurus-theme-classic
docusaurus-theme-classic
,docusaurus
docusaurus-theme-search-algolia
,docusaurus
- Other
- #2135 docs(v1): add space between "out" and "Docusaurus" (@TransmissionsDev)
- #2128 docs(v1): showcase user Shrine (@janko)
- #2110 docs(v2): fix pages routing inaccurate info (@endiliey)
- #2106 fix(v2): add missing hyphen in color generator (@lex111)
- #2104 feat(v2): add color generator for primary colors (@yangshun)
- #2103 docs: mention about moving docs directory into website (@yangshun)
docusaurus-theme-classic
,docusaurus-theme-live-codeblock
- Other
docusaurus-init
docusaurus
docusaurus-1.x
,docusaurus-init
,docusaurus-mdx-loader
,docusaurus-plugin-content-blog
,docusaurus-plugin-content-docs
,docusaurus-plugin-ideal-image
,docusaurus-theme-live-codeblock
,docusaurus
docusaurus
- Alexey Pyltsyn (@lex111)
- Endi (@endiliey)
- Janko Marohnić (@janko)
- Nick McCurdy (@nickmccurdy)
- Yangshun Tay (@yangshun)
- t11s (@TransmissionsDev)
docusaurus
docusaurus-plugin-content-blog
,docusaurus-plugin-content-docs
- Other
docusaurus
- Endi (@endiliey)
docusaurus-plugin-content-blog
,docusaurus-plugin-content-docs
,docusaurus-plugin-content-pages
,docusaurus-theme-classic
,docusaurus-utils
If you have swizzled any Docs/Blog component that depends on metadata, you'll have to update. If you haven't, no action is needed.
For example, if you've swizzled @theme/DocItem
. You'll have to update
- const {metadata, content: DocContent} = props;
+ const {content: DocContent} = props;
+ const {metadata} = DocContent;
docusaurus
docusaurus-plugin-ideal-image
docusaurus-mdx-loader
- #2085 misc(v2): update mdx loader plugin README (@shivangna)
docusaurus-1.x
- #2087 fix(v1): add key to versions.map in versions.js (@FeynmanDNA)
- #2083 refactor(v1): fix props for ProjectTitle (@FeynmanDNA)
docusaurus
docusaurus-utils
docusaurus-theme-search-algolia
- Endi (@endiliey)
- KYY (@FeynmanDNA)
- Shivangna Kaistha (@shivangna)
- kaichu (@qshiwu)
docusaurus-init
,docusaurus-plugin-content-blog
,docusaurus-plugin-content-docs
,docusaurus-plugin-content-pages
,docusaurus-theme-classic
,docusaurus-theme-live-codeblock
,docusaurus-theme-search-algolia
,docusaurus-utils
,docusaurus
docusaurus-theme-classic
,docusaurus
docusaurus-plugin-content-blog
docusaurus-plugin-content-docs
,docusaurus-types
,docusaurus
docusaurus-mdx-loader
,docusaurus-plugin-content-docs
,docusaurus-plugin-sitemap
,docusaurus-theme-classic
,docusaurus
docusaurus-plugin-content-docs
,docusaurus-theme-classic
,docusaurus-types
,docusaurus
docusaurus-theme-classic
,docusaurus
docusaurus-mdx-loader
docusaurus-theme-classic
docusaurus
docusaurus-theme-classic
- Other
- #2068 docs(v2): quick proofread docs (@endiliey)
- #2047 docs(v2): add manual migration guide for versioning (@endiliey)
- #2036 docs(v2): Reorganize migration guide (@wgao19)
- #2052 fix(v2): make proper spelling of Yarn in tabs (@lex111)
- #2040 docs(v2): showcase user vector.dev :) (@binarylogic)
- #2038 docs(v2): add documentation on versioning (@endiliey)
- #2037 docs(v2): display yarn and npm command on website (@endiliey)
- #2051 docs(v2): more examples on lifecycle apis, cleanup (@endiliey)
docusaurus-plugin-content-blog
docusaurus
docusaurus-types
,docusaurus
docusaurus-mdx-loader
,docusaurus-plugin-ideal-image
,docusaurus-types
,docusaurus
docusaurus-init
,docusaurus-mdx-loader
,docusaurus-plugin-content-docs
,docusaurus
docusaurus-plugin-google-analytics
,docusaurus-plugin-google-gtag
docusaurus
docusaurus-plugin-content-docs
- Alexey Pyltsyn (@lex111)
- Binary Logic (@binarylogic)
- Dongwoo Gim (@gimdongwoo)
- Endi (@endiliey)
- Wei Gao (@wgao19)
docusaurus-init
,docusaurus-plugin-content-blog
,docusaurus-theme-classic
docusaurus-plugin-content-docs
,docusaurus-theme-classic
docusaurus
docusaurus-theme-classic
docusaurus-theme-classic
docusaurus
docusaurus-mdx-loader
,docusaurus-plugin-ideal-image
- Other
docusaurus-mdx-loader
,docusaurus-theme-classic
docusaurus-theme-classic
- #1999 fix(v2): remove hashbang when click on category (@lex111)
- #1962 fix(v2): make not clickable post title on post item page (@lex111)
- #1980 fix(v2): remove invalid label attribute of footer links (@lex111)
- #1978 fix(v2): use regular div instead of main tag for wrapper layout page (@lex111)
- #1975 fix(v2): move header inside article tag in doc page (@lex111)
- #1974 fix(v2): remove invalid attributes of nav links (@lex111)
- #1963 fix(v2): remove empty containers when no data in blog pages (@lex111)
- #1966 fix(v2): remove duplicate meta tags (@lex111)
docusaurus-plugin-content-docs
docusaurus-theme-search-algolia
docusaurus-theme-classic
- #1991 fix(v2): remove accessible anchors via keyboard (@lex111)
- #1987 refactor(v2): replace h1 tag with h2 in blog list pages (@lex111)
- #1981 fix(v2): use tag time for showing last update of doc item (@lex111)
- #1977 feat(v2): add aria-label to read more links for a11y (@lex111)
- #1964 fix(v2): use tag time for showing post item date (@lex111)
docusaurus-plugin-content-docs
- Other
docusaurus-init
docusaurus-plugin-content-blog
- Other
- #1988 docs(v2): fix syntax highlighting for YML code blocks (@lex111)
- #1976 docs(v2): Add section to blog document about feed location (@vinnytheviking)
- #1970 docs(v2): update configureWebpack utility functions (@jamiedavenport)
docusaurus-1.x
- #1961 docs(v1): remove exclusive language (@ericcarboni)
- Other
docusaurus-init
docusaurus-1.x
,docusaurus-init-1.x
,docusaurus-init
,docusaurus-plugin-content-docs
,docusaurus-plugin-ideal-image
,docusaurus-types
,docusaurus
- Alexey Pyltsyn (@lex111)
- Endi (@endiliey)
- Eric Carboni (@ericcarboni)
- Jamie Davenport (@jamiedavenport)
- Nick McCormick (@kenning)
- Vincent van der Walt (@vinnytheviking)
docusaurus-plugin-content-docs
docusaurus-theme-classic
docusaurus-plugin-content-docs
,docusaurus
docusaurus-1.x
,docusaurus-plugin-content-blog
,docusaurus-plugin-content-docs
,docusaurus-theme-classic
,docusaurus-theme-search-algolia
,docusaurus-types
,docusaurus-utils
,docusaurus
- Other
docusaurus-plugin-content-docs
,docusaurus-utils
,docusaurus
- Table of contents is now highlighted depending on current active headings. (thanks to awesome @SantiagoGdaR) #1896
- Official blog plugin can now generate feed for blog posts. (thanks to awesome @moozzyk) #1916
- BREAKING
prismTheme
is renamed totheme
as part newprism
object inthemeConfig
field in yourdocusaurus.config.js
. Eg:themeConfig: { - prismTheme: require('prism-react-renderer/themes/dracula'), + prism: { + theme: require('prism-react-renderer/themes/dracula'), + }, },
- Added new
prism
optiondefaultLanguage
that is used if the language is not specified in code blocks. #1910
- Fix babel/env not picking the correct browserslist configuration during development. When running
docusaurus start
,process.env.NODE_ENV
is now consistently set todevelopment
. - Ensure routes config generation to be more consistent in ordering. Nested routes should be placed last in routes.js. This will allow user to create
src/pages/docs.js
to create custom docs page for/docs
or evensrc/pages/docs/super.js
to create page for/docs/super/
; - Fix watcher does not trigger reload on windows.
- Fix build compilation error if exists only one code tab.
- Add minor padding to docs container so that hash-link won't be cut off.
- Misc dependency upgrades.
- Stability improvement (more tests) & refactoring on docs plugin to prevent regression.
- Add
<Redirect>
component for client side redirect. Example Usage:
import React from 'react';
import {Redirect} from '@docusaurus/router';
function Home() {
return <Redirect to="/docs/test" />;
}
- Allow user to add custom HTML to footer items. #1905
- Added code block line highlighting feature (thanks @lex111)! If you have previously swizzled the
CodeBlock
theme component, it is recommended to update your source code to have this feature. (#1860)
- Fix
@theme/Tabs
component to be able to create tabs with only one item. - Fix MDX
@theme/Heading
component. If there is no id, it should not create anchor link. - Fixed a bug in which if
themeConfig.algolia
is not defined, the custom searchbar won't appear. If you've swizzled AlgoliaSearchBar
component before, please update your source code otherwise CSS might break. See #1909 for reference.
- <Fragment>
+ <div className="navbar__search" key="search-box">
- Slightly adjust search icon position to be more aligned on small width device. (#1893)
- Fix algolia styling bug, previously search suggestion result is sometimes hidden. (#1915)
- Changed the way we read the
USE_SSH
env variable during deployment to be the same as in v1. - Fix accessing
docs/
or/docs/xxxx
that does not match any existing doc page should return 404 (Not found) page, not blank page. (#1903) - Prioritize
@docusaurus/core
dependencies/ node_modules over user's node_modules. This fix a bug whereby if user has core-js@3 on its own node_modules but docusaurus depends on core-js@2, we previously encounterModule not found: core-js/modules/xxxx
(because core-js@3 doesn't have that). - Fix a bug where docs plugin add
/docs
route even if docs folder is empty. We also improved docs plugin test coverage to 100% for stability before working on docs versioning. (#1912)
- Reduce memory usage consumption. (#1900)
- Significantly reduce main bundle size and initial HTML payload on production build. Generated files from webpack is also shorter in name. (#1898)
- Simplify blog metadata. Previously, accessing
/blog/post-xxx
will request for next and prev blog post metadata too aside from target post metadata. We should only request target post metadata. (#1908)
- Footer is now sticky/ pinned to the bottom of the viewport in desktop browsers.
- Footer is now also displayed in docs page for consistency.
- Remove empty doc sidebar container if sidebar for a particular doc page does not exist. Otherwise, it will cause an additional empty space.
- Default PostCSS loader now only polyfills stage 3+ features (previously it was stage 2) like Create React App. Stage 2 CSS is considered relatively unstable and subject to change while Stage 3 features will likely become a standard.
- Fix search bar focus bug. When you put the focus on search input, previously the focus will remain although we have clicked to other area outside of the search input.
- New themeConfig option
sidebarCollapsible
. It is on by default. If explicitly set tofalse
, all doc items in sidebar is expanded. Otherwise, it will still be a collapsible sidebar. - Disable adding hashes to the generated class names of CSS modules in dev mode. Generating unique identifiers takes some time, which can be saved since including paths to files in class names is enough to avoid collisions.
- Fix showing sidebar category with empty items.
- Update infima from 0.2.0-alpha.2 to 0.2.0-alpha.3
- Fix pagination nav and right sidebar color contrast ratio
- Fix sidebar arrow color in dark mode
- Fix footer mobile issue
- Increase sidebar width
- etc
- Fix babel transpilation include/exclude logic to be more efficient. This also fix a very weird bug
TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
.(#1868)
If you are still encountering the error. Please check whether you use module.exports
for your .js
file instead of doing export
(mixing CJS and ES). See webpack/webpack#4039 (comment) and webpack/webpack#4039 (comment) for more context.
HOTFIX for 2.0.0-alpha.28.
- Fix missing
core-js
dependencies on@docusaurus/core
. - Fix wrong
@babel/env
preset configuration that causes build compilation error. - New UI for webpack compilation progress bar.
- Further reduce memory usage to avoid heap memory allocation failure.
- Fix
keywords
frontmatter for SEO not working properly. - Fix
swizzle
command not passing context properly to theme packages. - Add
extendCli
api for plugins. This will allow plugin to further extend Docusaurus CLI. - Fix
swizzle
command not being able to swizzle single js file. - Fix logo URL in footer to be appended with baseUrl automatically.
- Add the option
--no-open
forstart
command. - Set
@babel/env
useBuiltins tousage
. This will automatically use browserlist and import polyfills required. - Modified TerserWebpackPlugin
terserOptions
for better cross-browser compatibility. - BREAKING
withBaseUrl
is renamed touseBaseUrl
because its a React Hooks. Make sure you import/rename it correctly. Eg:import useBaseUrl from '@docusaurus/useBaseUrl
; - Fix potential security vulnerability because we're exposing the directory structure of the host machine.
- Upgrade dependencies.
- Add
@theme/Tabs
which can be used to implement multi-language code tabs. - Implement
custom_edit_url
andhide_title
markdown header for docusaurus v1 feature parity. - Reduce memory usage and slightly faster production build.
- Misc dependency upgrades.
- Docs, pages plugin is rewritten in TypeScript
- Docs improvements and tweaks
- Improved metadata which results in smaller bundle size.
- Docs sidebar can now be more than one level deep, theoretically up to infinity
- Collapsible docs sidebar!
- Make doc page title larger
- Add
editUrl
option (URL for editing) to docs plugin. If this field is set, there will be an "Edit this page" link for each doc page. Example: 'https://github.com/facebook/docusaurus/edit/master/docs' - Add
showLastUpdateTime
andshowLastUpdateAuthor
options to docs plugin to further achieve v1 parity of showing last update data for a particular doc
- Slight tweaks to the Blog components - blog title is larger now
- Code Blocks
- Change default theme from Night Owl to Palenight
- Slight tweaks to playground/preview components
- Add
scripts
andstylesheets
field todocusaurus.config.js
- More documentation...
- Blog plugin is rewritten in TypeScript and can now support CJK
- Upgrade key direct dependencies such as webpack, mdx and babel to latest
- Do not escape html and body attributes
- For devices with very small viewport width, the searchbar is replaced with a search icon. On tap of the search icon the searchbar is expanded and the text beside the logo is hidden and remains hidden while the search bar is expanded.
- Add
date
frontMatter support for blog plugin - Add
truncateMarker
option to blog plugin, support string or regex. - Webpack
optimization.removeAvailableModules
is now disabled for performance gain. See https://github.com/webpack/webpack/releases/tag/v4.38.0 for more context.
- Remove unused metadata for pages. This minimize number of http request & smaller bundle size.
- Upgrade dependencies of css-loader from 2.x to 3.x. Css modules localIdentName hash now only use the last 4 characters instead of 8.
- Fix broken markdown linking replacement for mdx files
- Fix potential security vulnerability because we're exposing the directory structure of the host machine. Instead of absolute path, we use relative path from site directory. Resulting in shorter webpack chunk naming and smaller bundle size.
- Use contenthash instead of chunkhash for better long term caching
- Allow user to customize generated heading from MDX. Swizzle
@theme/Heading
- Fix docusaurus route config generation for certain edge case
- Add missing dependencies on
@docusaurus/preset-classic
- New plugin
@docusaurus/plugin-ideal-image
to generate an almost ideal image (responsive, lazy-loading, and low quality placeholder) - Better Twitter/discord image preview. Previously the size is too zoomed
- Allow prism syntax highlighting theme customization. Refer to https://v2.docusaurus.io/docs/markdown-features#syntax-highlighting
- CSS is now autoprefixed using postcss
- Faster, lighter webpack bundle size
@docusaurus/theme-live-codeblock
is now much smaller in size and no longer only load on viewport- Blog markdown files now support using the id field to specify the path
- Fix babel-loader not transpiling docusaurus package
- Add copy codeblock button
- Add Google analytics and Google gtag plugins.
- Move source components to
/src
. Please create awebsite/src
directory and move your/pages
and/theme
code into it. This is to make it easier to integrate your website with external build/static analysis tooling (you can now just pass insrc/**/*.js
as the path to process). - Adde more documentation thanks to @wgao19.
- Deprecate the current docs plugin. The docs plugin as of 2.0.0-alpha.19 is heavily based on V1 specifications and we intend to create a better one that fixes some of the inconsistencies in V1. If you have swizzled any doc components, you will have to update their names. You are highly encourages to not swizzle the legacy doc components until we have completed the new docs plugin.
- Separate v2 init command to new package @docusaurus/init
- Render 404.html page
- Improve SEO
- Clicking on the logo in the mobile sliding navigation will now bring you to the homepage.
- Performance
- Disable webpack output pathinfo. Webpack has the ability to generate path info in the output bundle. However, this puts garbage collection pressure on projects that bundle thousands of modules. Not very useful for our case
- Drop cache-loader in CI and test environment because it has an initial overhead. We always start from scratch in vm instance like CI so cache-loader is useless
- Better splitchunks and babel default webpack config
- Add a sensible default for browserslist config.
- UI
- Add sun and moon emoji to the dark mode toggle.
- Mobile responsive menu.
- Right table of contents for docs is now sticky.
- Plugins
- Change plugin definitions from classes to functions. Refer to the new plugin docs.
- Implement Clients module API.
- Change format within
docusaurus.config.js
to be like presets.
- Deps
- Infima CSS is now locked down to specific versions and not relying upon the CDN which reads from trunk.
- Update dependencies to latest
- Customize/ Override infima CSS variables by passing options into the classic preset.
presets: [
[
'@docusaurus/preset-classic',
{
theme: {
customCss: require.resolve('./css/custom.css'),
},
...
},
],
],
- Allow passing remark and rehype plugins to mdx-loader for docs and blog plugin
- Move themes component of docs and blog to be part of theme-classic
- Use composition style for prism syntax highlighting instead of doing it via rehype plugin
- Pass MDXProvider to docs and blog. To change the provided MDX components, run
docusaurus swizzle @docusaurus/theme-classic MDXComponents
- Add @docusaurus/theme-livecodeblock plugin
- Better run-time code generation & webpack splitchunks optimization
- Minify css for production build
- Fix weird scrolling problem when navigating to a route with a
hash
location
siteConfig.js
renamed todocusaurus.config.js
.- Remove the following config options:
docsUrl
. Use the plugin option ondocusaurus-plugin-content-docs
instead.customDocsPath
. Use the plugin option ondocusaurus-plugin-content-docs
instead.sidebars.json
now has to be explicitly loaded by users and passed into the the plugin option ondocusaurus-plugin-content-docs
.headerLinks
doc, page, blog is deprecated and has been to moved intothemeConfig
under the namenavbar
. The syntax is now:
themeConfig: {
navbar: {
title: 'Docusaurus',
logo: {
alt: 'Docusaurus Logo',
src: 'img/docusaurus.svg',
},
links: [
{to: 'docs/introduction', label: 'Docs', position: 'left'},
{to: 'blog', label: 'Blog', position: 'left'},
{to: 'feedback', label: 'Feedback', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
label: 'GitHub',
position: 'right',
},
],
},
}
Work in Progress
- Add presets for plugins that follow the Babel preset convention.