docusaurus/assets/js/92aa9055.9a209bdf.js

1 line
No EOL
4.4 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[30935],{82778:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>a,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var r=s(24246),t=s(71670);const o={mdx:{format:"md"},date:"2019-11-08T20:00"},i="2.0.0-alpha.33",c={permalink:"/changelog/2.0.0-alpha.33",source:"@site/changelog/source/2.0.0-alpha.33.md",title:"2.0.0-alpha.33",description:"Features",date:"2019-11-08T20:00:00.000Z",tags:[],hasTruncateMarker:!0,authors:[],frontMatter:{mdx:{format:"md"},date:"2019-11-08T20:00"},unlisted:!1,prevItem:{title:"2.0.0-alpha.34",permalink:"/changelog/2.0.0-alpha.34"},nextItem:{title:"2.0.0-alpha.32",permalink:"/changelog/2.0.0-alpha.32"},listPageLink:"/changelog/page/5"},a={authorsImageUrls:[]},l=[{value:"Features",id:"features",level:2},{value:"Fixes",id:"fixes",level:2},{value:"Others",id:"others",level:2}];function d(e){const n={a:"a",code:"code",h2:"h2",li:"li",pre:"pre",strong:"strong",ul:"ul",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"features",children:"Features"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["Table of contents is now highlighted depending on current active headings. (thanks to awesome @SantiagoGdaR) ",(0,r.jsx)(n.a,{href:"https://github.com/facebook/docusaurus/pull/1896",children:"#1896"})]}),"\n",(0,r.jsxs)(n.li,{children:["Official blog plugin can now generate feed for blog posts. (thanks to awesome @moozzyk) ",(0,r.jsx)(n.a,{href:"https://github.com/facebook/docusaurus/pull/1916",children:"#1916"})]}),"\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"BREAKING"})," ",(0,r.jsx)(n.code,{children:"prismTheme"})," is renamed to ",(0,r.jsx)(n.code,{children:"theme"})," as part new ",(0,r.jsx)(n.code,{children:"prism"})," object in ",(0,r.jsx)(n.code,{children:"themeConfig"})," field in your ",(0,r.jsx)(n.code,{children:"docusaurus.config.js"}),". Eg:\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-diff",children:" themeConfig: {\n- prismTheme: require('prism-react-renderer/themes/dracula'),\n+ prism: {\n+ theme: require('prism-react-renderer/themes/dracula'),\n+ },\n},\n"})}),"\n"]}),"\n",(0,r.jsxs)(n.li,{children:["Added new ",(0,r.jsx)(n.code,{children:"prism"})," option ",(0,r.jsx)(n.code,{children:"defaultLanguage"})," that is used if the language is not specified in code blocks. ",(0,r.jsx)(n.a,{href:"https://github.com/facebook/docusaurus/pull/1910",children:"#1910"})]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"fixes",children:"Fixes"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["Fix babel/env not picking the correct browserslist configuration during development. When running ",(0,r.jsx)(n.code,{children:"docusaurus start"}),", ",(0,r.jsx)(n.code,{children:"process.env.NODE_ENV"})," is now consistently set to ",(0,r.jsx)(n.code,{children:"development"}),"."]}),"\n",(0,r.jsxs)(n.li,{children:["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 ",(0,r.jsx)(n.code,{children:"src/pages/docs.js"})," to create custom docs page for ",(0,r.jsx)(n.code,{children:"/docs"})," or even ",(0,r.jsx)(n.code,{children:"src/pages/docs/super.js"})," to create page for ",(0,r.jsx)(n.code,{children:"/docs/super/"}),";"]}),"\n",(0,r.jsx)(n.li,{children:"Fix watcher does not trigger reload on windows."}),"\n",(0,r.jsx)(n.li,{children:"Fix build compilation error if exists only one code tab."}),"\n",(0,r.jsx)(n.li,{children:"Add minor padding to docs container so that hash-link won't be cut off."}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"others",children:"Others"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:"Misc dependency upgrades."}),"\n",(0,r.jsx)(n.li,{children:"Stability improvement (more tests) & refactoring on docs plugin to prevent regression."}),"\n"]})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},71670:(e,n,s)=>{s.d(n,{Z:()=>c,a:()=>i});var r=s(27378);const t={},o=r.createContext(t);function i(e){const n=r.useContext(o);return r.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(t):e.components||t:i(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]);