docusaurus/packages/docusaurus-plugin-content-docs/src
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
..
__tests__ feat(v2): redesign mobile UX: inline TOC + doc sidebar in main menu (#4273) 2021-07-09 16:50:38 +02:00
client feat(v2): docs version banner configuration option (#5052) 2021-06-24 18:04:16 +02:00
markdown refactor(v2): cleanup console output (#4979) 2021-06-16 11:37:28 +02:00
theme/hooks fix(v2): fix useEffect infinite loop in blogOnly mode (#5097) 2021-06-30 12:50:06 +02:00
cli.ts refactor(v2): cleanup console output (#4979) 2021-06-16 11:37:28 +02:00
constants.ts refactor(v2): docs plugin refactor (#3245) 2020-08-17 17:50:22 +02:00
docFrontMatter.ts fix(v2): allow negative sidebar positions (#5074) 2021-06-28 19:59:05 +02:00
docs.ts style(v2): reduce number of ESLint warnings (#4993) 2021-06-24 18:12:48 +02:00
globalData.ts feat(v2): doc navbar item type (#3539) 2020-10-07 14:42:24 +03:00
index.ts feat(v2): redesign mobile UX: inline TOC + doc sidebar in main menu (#4273) 2021-07-09 16:50:38 +02:00
lastUpdate.ts fix(v2): read last update from inner git repositories (#5048) 2021-06-24 15:05:22 +02:00
numberPrefix.ts feat(v2): docs, make numberPrefixParser configurable, better defaults, minor breaking-changes (#4655) 2021-04-21 12:06:06 +02:00
options.ts refactor(v2): remove deprecated docs option excludeNextVersionDocs (#5053) 2021-06-24 18:41:13 +02:00
plugin-content-docs.d.ts feat(v2): redesign mobile UX: inline TOC + doc sidebar in main menu (#4273) 2021-07-09 16:50:38 +02:00
props.ts feat(v2): redesign mobile UX: inline TOC + doc sidebar in main menu (#4273) 2021-07-09 16:50:38 +02:00
sidebarItemsGenerator.ts refactor(v2): cleanup console output (#4979) 2021-06-16 11:37:28 +02:00
sidebars.ts style(v2): reduce number of ESLint warnings (#4993) 2021-06-24 18:12:48 +02:00
slug.ts refactor(v2): cleanup console output (#4979) 2021-06-16 11:37:28 +02:00
translations.ts feat(v2): core v2 i18n support + Docusaurus site Crowdin integration (#3325) 2020-11-26 12:16:46 +01:00
types.ts feat(v2): redesign mobile UX: inline TOC + doc sidebar in main menu (#4273) 2021-07-09 16:50:38 +02:00
versions.ts style(v2): reduce number of ESLint warnings (#4993) 2021-06-24 18:12:48 +02:00