From 3f1ee22bbc8978886ccc7c36d1d7366f03a3cbf5 Mon Sep 17 00:00:00 2001 From: Sander Spies Date: Mon, 9 Mar 2020 18:19:31 +0100 Subject: [PATCH 1/6] Refactor Switch component to be a plugin. --- gitlab-pages/website/docusaurus.config.js | 8 +- gitlab-pages/website/package.json | 9 +- .../website/src/@ligo/syntax/output/index.js | 12 + .../output/theme/Syntax/SyntaxContext.js | 3 + .../output/theme/Syntax/SyntaxSwitch.js | 18 + .../@ligo/syntax/output/theme/Syntax/index.js | 15 + .../output}/theme/Syntax/styles.module.css | 0 .../src/@ligo/syntax/package-lock.json | 3449 +++++++++++++++++ .../website/src/@ligo/syntax/package.json | 28 + .../website/src/@ligo/syntax/src/index.js | 11 + .../syntax/src}/theme/Syntax/SyntaxContext.js | 1 - .../syntax/src}/theme/Syntax/SyntaxSwitch.js | 2 +- .../syntax/src}/theme/Syntax/index.js | 2 + .../syntax/src/theme/Syntax/styles.module.css | 37 + .../website/src/theme/DocSidebar/index.js | 2 +- 15 files changed, 3589 insertions(+), 8 deletions(-) create mode 100644 gitlab-pages/website/src/@ligo/syntax/output/index.js create mode 100644 gitlab-pages/website/src/@ligo/syntax/output/theme/Syntax/SyntaxContext.js create mode 100644 gitlab-pages/website/src/@ligo/syntax/output/theme/Syntax/SyntaxSwitch.js create mode 100644 gitlab-pages/website/src/@ligo/syntax/output/theme/Syntax/index.js rename gitlab-pages/website/src/{ => @ligo/syntax/output}/theme/Syntax/styles.module.css (100%) create mode 100644 gitlab-pages/website/src/@ligo/syntax/package-lock.json create mode 100644 gitlab-pages/website/src/@ligo/syntax/package.json create mode 100644 gitlab-pages/website/src/@ligo/syntax/src/index.js rename gitlab-pages/website/src/{ => @ligo/syntax/src}/theme/Syntax/SyntaxContext.js (99%) rename gitlab-pages/website/src/{ => @ligo/syntax/src}/theme/Syntax/SyntaxSwitch.js (92%) rename gitlab-pages/website/src/{ => @ligo/syntax/src}/theme/Syntax/index.js (93%) create mode 100644 gitlab-pages/website/src/@ligo/syntax/src/theme/Syntax/styles.module.css diff --git a/gitlab-pages/website/docusaurus.config.js b/gitlab-pages/website/docusaurus.config.js index 5fd7c6ddd..9cab1f4ea 100644 --- a/gitlab-pages/website/docusaurus.config.js +++ b/gitlab-pages/website/docusaurus.config.js @@ -99,7 +99,6 @@ const siteConfig = { },*/ // Add custom scripts here that would be placed in