docusaurus/website
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
..
blog chore: removal of Docusaurus v1 code from master (it is now available on docusaurus-v1 branch) (#4902) 2021-06-10 10:54:07 +02:00
community docs(v2): document canary releases (#4987) 2021-06-16 16:11:41 +02:00
docs docs(v2): clarify how to disable edit links entirely (#5112) 2021-07-05 12:38:10 +02:00
dogfooding test(v2): dogfooding: add huge sidebar for testing purposes (#5130) 2021-07-08 20:26:55 +02:00
src docs(v2): Add Zowe to Showcase (#5121) 2021-07-08 14:40:59 +02:00
static docs(v2): Docusaurus 2 beta blog post (#4756) 2021-05-12 16:08:07 +02:00
versioned_docs chore(v2): prepare v2.0.0-beta.3 release (#5098) 2021-06-30 16:05:49 +02:00
versioned_sidebars chore(v2): prepare v2.0.0-beta.3 release (#5098) 2021-06-30 16:05:49 +02:00
babel.config.js feat(v2): Allow configuring babel via babel.config.js (#2903) 2020-06-12 11:03:00 +08:00
delayCrowdin.js chore(v2): attempt to fix crowdin dl again (#4746) 2021-05-06 19:12:13 +02:00
docusaurus.config-blog-only.js chore: removal of Docusaurus v1 code from master (it is now available on docusaurus-v1 branch) (#4902) 2021-06-10 10:54:07 +02:00
docusaurus.config.js feat(v2): redesign mobile UX: inline TOC + doc sidebar in main menu (#4273) 2021-07-09 16:50:38 +02:00
netlify.toml feat(v2): Webpack 5, PostCSS 8 (#4089) 2021-04-30 18:06:53 +02:00
package.json chore(v2): prepare v2.0.0-beta.3 release (#5098) 2021-06-30 16:05:49 +02:00
README.md feat(v2): disable optimization.removeAvailableModules for webpack performance (#1711) 2019-07-26 22:42:03 +07:00
sidebars.js docs(v2): New doc page for math equations (#4821) 2021-06-02 14:55:50 +02:00
sidebarsCommunity.js chore(v2): add external link to community sidebar (#4858) 2021-06-02 16:59:20 +02:00
tsconfig.json docs(v2): Document TypeScript support (#2997) 2020-06-26 12:09:21 +02:00
versions.json chore(v2): prepare v2.0.0-beta.3 release (#5098) 2021-06-30 16:05:49 +02:00
versionsArchived.json chore: add archived versions system + archive alpha.73-75 (#5005) 2021-06-18 17:27:13 +02:00
waitForCrowdin.js chore(v2): attempt to fix crowdin dl again (#4746) 2021-05-06 19:12:13 +02:00

Docusaurus 2 Website

Installation

  1. yarn install in the root of the repo (one level above this directory).
  2. In this directory, do yarn start.
  3. A browser window will open up, pointing to the docs.