mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 04:37:28 +02:00
1 line
No EOL
4 KiB
JavaScript
1 line
No EOL
4 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["22214"],{86064:function(e,n,s){s.r(n),s.d(n,{assets:function(){return l},contentTitle:function(){return c},default:function(){return u},frontMatter:function(){return r},metadata:function(){return t},toc:function(){return a}});var t=s(55166),o=s(85893),i=s(80980);let r={mdx:{format:"md"},date:"2019-04-10T20:00"},c="V2 Changelog",l={authorsImageUrls:[]},a=[{value:"<code>siteConfig.js</code> changes",id:"siteconfigjs-changes",level:3},{value:"Migration Guide",id:"migration-guide",level:3},{value:"Presets",id:"presets",level:3}];function d(e){let n={a:"a",code:"code",em:"em",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(n.h3,{id:"siteconfigjs-changes",children:[(0,o.jsx)(n.code,{children:"siteConfig.js"})," changes"]}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.code,{children:"siteConfig.js"})," renamed to ",(0,o.jsx)(n.code,{children:"docusaurus.config.js"}),"."]}),"\n",(0,o.jsxs)(n.li,{children:["Remove the following config options:\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.code,{children:"docsUrl"}),". Use the plugin option on ",(0,o.jsx)(n.code,{children:"docusaurus-plugin-content-docs"})," instead."]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.code,{children:"customDocsPath"}),". Use the plugin option on ",(0,o.jsx)(n.code,{children:"docusaurus-plugin-content-docs"})," instead."]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.code,{children:"sidebars.json"})," now has to be explicitly loaded by users and passed into the plugin option on ",(0,o.jsx)(n.code,{children:"docusaurus-plugin-content-docs"}),"."]}),"\n",(0,o.jsxs)(n.li,{children:[(0,o.jsx)(n.code,{children:"headerLinks"})," doc, page, blog is deprecated and has been to moved into ",(0,o.jsx)(n.code,{children:"themeConfig"})," under the name ",(0,o.jsx)(n.code,{children:"navbar"}),". The syntax is now:"]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:"themeConfig: {\n navbar: {\n title: 'Docusaurus',\n logo: {\n alt: 'Docusaurus Logo',\n src: 'img/docusaurus.svg',\n },\n links: [\n {to: 'docs/introduction', label: 'Docs', position: 'left'},\n {to: 'blog', label: 'Blog', position: 'left'},\n {to: 'feedback', label: 'Feedback', position: 'left'},\n {\n href: 'https://github.com/facebook/docusaurus',\n label: 'GitHub',\n position: 'right',\n },\n ],\n },\n}\n"})}),"\n",(0,o.jsx)(n.h3,{id:"migration-guide",children:"Migration Guide"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.em,{children:"Work in Progress"})}),"\n",(0,o.jsx)(n.h3,{id:"presets",children:"Presets"}),"\n",(0,o.jsxs)(n.ul,{children:["\n",(0,o.jsxs)(n.li,{children:["Add presets for plugins that follow the ",(0,o.jsx)(n.a,{href:"https://babeljs.io/docs/en/presets",children:"Babel preset convention"}),"."]}),"\n"]})]})}function u(e={}){let{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},80980:function(e,n,s){s.d(n,{Z:function(){return c},a:function(){return r}});var t=s(67294);let o={},i=t.createContext(o);function r(e){let n=t.useContext(i);return t.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),t.createElement(i.Provider,{value:n},e.children)}},55166:function(e){e.exports=JSON.parse('{"permalink":"/changelog/V2 Changelog","source":"@site/changelog/source/V2 Changelog.md","title":"V2 Changelog","description":"siteConfig.js changes","date":"2019-04-10T20:00:00.000Z","tags":[],"hasTruncateMarker":true,"authors":[],"frontMatter":{"mdx":{"format":"md"},"date":"2019-04-10T20:00"},"unlisted":false,"prevItem":{"title":"2.0.0-alpha.19","permalink":"/changelog/2.0.0-alpha.19"},"listPageLink":"/changelog/page/6"}')}}]); |