docusaurus/packages/docusaurus
Alexey Pyltsyn 9536ef900d
feat(v2): redesign mobile UX: inline TOC + doc sidebar in main menu (#4273)
* feat(v2): mobile TOC

* Bug fixes and various improvements

* Redesign

* extract TOCCollapsible component

* TS improvements

* Assign sidebar name directly to the doc route => no need for either permalinkToSidebar or GlobalData

* revert changes to useWindowSize, fix FOUC issues

* extract DocSidebarDesktop component

* remove now useless menu infima classes

* TOCHeadings => rename + remove unused onClick prop

* Extract DocSidebarItem

* minor renaming

* replace GlobalData usage by a React teleport system to render in the navbar mobile sidebar menu directly from the DocPage component

* useWindowSize => simulate SSR size in dev to make FOUC issues more obvious

* fix remaining sidebar layout shift

* update docs snapshots

* remove unused code translations

* remove unused code translations

* fix minor update-code-translations bug

* Add more build-size paths to watch

* Restyle back button

* Add  missing`menu` class

* extract useShallowMemoizedObject

* fix routes tests + better routes formatting

* use Translate api for labels

* use Translate api for labels

* Update translations

* Improve dark mode support for back button

* Merge branch 'master' into lex111/inline-color-code

# Conflicts:
#	packages/core/dist/css/default-dark/default-dark-rtl.min.css
#	packages/core/dist/css/default-dark/default-dark.min.css
#	packages/core/dist/css/default/default-rtl.min.css
#	packages/core/dist/css/default/default.min.css

* replace useCollapse by new useCollapsible

* Cleanup and use clean-btn for TOCCollapsible button

* Make TOC links clickable over full width

* Cleanup

* fix uncollapsible sidebar that can be collapsed + create <Collapsible> component

* dependency array typo

* rollback sidebars community commit typo

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-07-09 16:50:38 +02:00
..
bin fix(v2): Fix update-notifier not run at first and not notifying consistently (#5110) 2021-07-01 15:37:54 +02:00
src feat(v2): redesign mobile UX: inline TOC + doc sidebar in main menu (#4273) 2021-07-09 16:50:38 +02:00
.npmignore fix(v2): Simplify styling for classic template landing page (#1528) 2019-05-29 19:41:23 +07:00
copyUntypedFiles.js refactor(v2): Convert docusaurus-core to TypeScript (#2578) 2020-04-13 02:05:46 +08:00
package.json chore(v2): prepare v2.0.0-beta.3 release (#5098) 2021-06-30 16:05:49 +02:00
README.md docs(v1): version page should recommend v2 (bis) (#4049) 2021-01-14 17:58:42 +01:00
tsconfig.client.json chore: json files should be linted (#4462) 2021-03-18 19:39:50 +01:00
tsconfig.json refactor(v2): correct some of type errors reported by eslint (#4382) 2021-03-12 12:24:22 +01:00