From 3acf8804113ffca162320fea207cc4bd965a0fa7 Mon Sep 17 00:00:00 2001 From: endiliey Date: Thu, 24 Oct 2019 22:15:39 +0700 Subject: [PATCH] chore(v2): update changelog --- CHANGELOG-2.x.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG-2.x.md b/CHANGELOG-2.x.md index 2d3a3924fd..a90659abea 100644 --- a/CHANGELOG-2.x.md +++ b/CHANGELOG-2.x.md @@ -2,14 +2,17 @@ ## Unreleased -- Add sticky footer. -- Remove empty doc sidebar container -- PostCSS preset env 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. -- Add ability expand all doc items in sidebar (same as `docsSideNavCollapsible` field in v1) +- Footer is now sticky/ pinned to the bottom of the viewport in desktop browsers. +- 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 to `false`, all doc items in sidebar is expanded. Otherwise, it will still be a collapsible sidebar. ## 2.0.0-alpha.30 -- 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 '#'` if your website path contains `docusaurus` word in it. +- 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 '#'`.([#1868](https://github.com/facebook/docusaurus/pull/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. ## 2.0.0-alpha.29