@docusaurus/plugin-content-docs
Advanced tools
Changelog
2.0.0-alpha.38 (2019-12-06)
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
docusaurus-1.x
docusaurus
docusaurus-utils
docusaurus-theme-search-algolia
Changelog
2.0.0-alpha.37 (2019-12-01)
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
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
Changelog
2.0.0-alpha.36 (2019-11-22)
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
Changelog
2.0.0-alpha.35 (2019-11-17)
docusaurus-mdx-loader
, docusaurus-theme-classic
docusaurus-theme-classic
docusaurus-plugin-content-docs
docusaurus-theme-search-algolia
docusaurus-theme-classic
docusaurus-plugin-content-docs
docusaurus-init
docusaurus-plugin-content-blog
docusaurus-1.x
docusaurus-init
docusaurus-1.x
, docusaurus-init-1.x
, docusaurus-init
, docusaurus-plugin-content-docs
, docusaurus-plugin-ideal-image
, docusaurus-types
, docusaurus
Changelog
2.0.0-alpha.34 (2019-11-11)
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
docusaurus-plugin-content-docs
, docusaurus-utils
, docusaurus
Changelog
2.0.0-alpha.33 (2019-11-08)
prismTheme
is renamed to theme
as part new prism
object in themeConfig
field in your docusaurus.config.js
. Eg:
themeConfig: {
- prismTheme: require('prism-react-renderer/themes/dracula'),
+ prism: {
+ theme: require('prism-react-renderer/themes/dracula'),
+ },
},
prism
option defaultLanguage
that is used if the language is not specified in code blocks. #1910docusaurus start
, process.env.NODE_ENV
is now consistently set to development
.src/pages/docs.js
to create custom docs page for /docs
or even src/pages/docs/super.js
to create page for /docs/super/
;Changelog
2.0.0-alpha.32 (2019-11-04)
<Redirect>
component for client side redirect. Example Usage:import React from 'react';
import {Redirect} from '@docusaurus/router';
function Home() {
return <Redirect to="/docs/test" />;
}
CodeBlock
theme component, it is recommended to update your source code to have this feature. (#1860)@theme/Tabs
component to be able to create tabs with only one item.@theme/Heading
component. If there is no id, it should not create anchor link.themeConfig.algolia
is not defined, the custom searchbar won't appear. If you've swizzled Algolia SearchBar
component before, please update your source code otherwise CSS might break. See #1909 for reference.- <Fragment>
+ <div className="navbar__search" key="search-box">
USE_SSH
env variable during deployment to be the same as in v1.docs/
or /docs/xxxx
that does not match any existing doc page should return 404 (Not found) page, not blank page. (#1903)@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 encounter Module not found: core-js/modules/xxxx
(because core-js@3 doesn't have that)./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)/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)Changelog
2.0.0-alpha.31 (2019-10-26)
sidebarCollapsible
. It is on by default. If explicitly set to false
, all doc items in sidebar is expanded. Otherwise, it will still be a collapsible sidebar.Changelog
2.0.0-alpha.30 (2019-10-22)
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 https://github.com/webpack/webpack/issues/4039#issuecomment-477779322 and https://github.com/webpack/webpack/issues/4039#issuecomment-273804003 for more context.