mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 07:07:25 +02:00
1 line
No EOL
3.8 KiB
JavaScript
1 line
No EOL
3.8 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[19090],{41130:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>r,contentTitle:()=>c,default:()=>u,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var o=s(24246),t=s(71670);const i={mdx:{format:"md"},date:"2019-04-10T20:00"},c="V2 Changelog",l={permalink:"/docusaurus/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:!0,authors:[],frontMatter:{mdx:{format:"md"},date:"2019-04-10T20:00"},unlisted:!1,prevItem:{title:"2.0.0-alpha.19",permalink:"/docusaurus/changelog/2.0.0-alpha.19"},listPageLink:"/docusaurus/changelog/page/5"},r={authorsImageUrls:[]},d=[{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 a(e){const n={a:"a",code:"code",em:"em",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...(0,t.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={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(a,{...e})}):a(e)}},71670:(e,n,s)=>{s.d(n,{Z:()=>l,a:()=>c});var o=s(27378);const t={},i=o.createContext(t);function c(e){const n=o.useContext(i);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),o.createElement(i.Provider,{value:n},e.children)}}}]); |