From ea2c74bb4bde501361651ae776531de2a2ba7c7a Mon Sep 17 00:00:00 2001 From: jffarge Date: Tue, 7 Sep 2021 15:39:06 +0200 Subject: [PATCH 1/3] docs: :arrow_up: upgrade docusaurus to 2.0.0-beta.6 Signed-off-by: jffarge --- website/package.json | 6 +- website/src/theme/Heading/index.js | 9 +- website/src/theme/Heading/styles.module.css | 15 +- website/yarn.lock | 355 ++++++++++++-------- 4 files changed, 238 insertions(+), 147 deletions(-) diff --git a/website/package.json b/website/package.json index c7fc3571..2e007643 100644 --- a/website/package.json +++ b/website/package.json @@ -18,8 +18,8 @@ "ci": "start-server-and-test 'yarn start-server' '3000|3001' 'yarn run cypress run'" }, "dependencies": { - "@docusaurus/core": "^2.0.0-beta.5", - "@docusaurus/preset-classic": "^2.0.0-beta.5", + "@docusaurus/core": "^2.0.0-beta.6", + "@docusaurus/preset-classic": "^2.0.0-beta.6", "@mdx-js/react": "^1.6.21", "@svgr/webpack": "^5.5.0", "amplitude-js": "^8.5.0", @@ -30,8 +30,8 @@ "react": "^17.0.1", "react-dom": "^17.0.1", "react-social-login-buttons": "^3.5.1", - "sass": "^1.38.1", "remark-code-import": "^0.3.0", + "sass": "^1.38.1", "url-loader": "^4.1.1" }, "browserslist": { diff --git a/website/src/theme/Heading/index.js b/website/src/theme/Heading/index.js index f2a5d6ed..a338903c 100644 --- a/website/src/theme/Heading/index.js +++ b/website/src/theme/Heading/index.js @@ -20,7 +20,7 @@ export const MainHeading = function MainHeading({...props}) {

+ > {props.children}

@@ -42,8 +42,9 @@ const createAnchorHeading = (Tag) => ); diff --git a/website/src/theme/Heading/styles.module.css b/website/src/theme/Heading/styles.module.css index 3f94fe99..21900cd8 100644 --- a/website/src/theme/Heading/styles.module.css +++ b/website/src/theme/Heading/styles.module.css @@ -5,11 +5,16 @@ * LICENSE file in the root directory of this source tree. */ -.enhancedAnchor { - top: calc(var(--ifm-navbar-height) * -1 - 0.5rem); +/* +When the navbar is sticky, ensure that on anchor click, +the browser does not scroll that anchor behind the navbar +See https://twitter.com/JoshWComeau/status/1332015868725891076 + */ +.anchorWithStickyNavbar { + scroll-margin-top: calc(var(--ifm-navbar-height) + 0.5rem); + /* top: calc(var(--ifm-navbar-height) * -1 - 0.5rem); */ } -.h1Heading { - font-size: 3rem; - margin-bottom: calc(var(--ifm-leading-desktop) * var(--ifm-leading)); +.anchorWithHideOnScrollNavbar { + scroll-margin-top: 0.5rem; } diff --git a/website/yarn.lock b/website/yarn.lock index e184dfe7..212314e0 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -1212,10 +1212,94 @@ "@docsearch/css" "3.0.0-alpha.40" algoliasearch "^4.0.0" -"@docusaurus/core@2.0.0-beta.5", "@docusaurus/core@^2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/core/-/core-2.0.0-beta.5.tgz#a8ccb489d75f777de59fdb698f93de9263928594" - integrity sha512-LERPgERVmui0Fb/aIEsd0/1O8VMWW2+vokoPJFHsCswNkk+63C+Ko6luu2z1QoXhbUGAVEJKTb4Z2NAZ5eSF5Q== +"@docusaurus/core@2.0.0-beta.6", "@docusaurus/core@^2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/core/-/core-2.0.0-beta.6.tgz#9847ae211a04f1d2b057f8e5ba650e76b9c2df83" + integrity sha512-XMeI+lJKeJBGYBNOfO/Tc+5FMf21E5p1xZjfe75cgYcfZdERZ+W7aemXquwReno8xxHb4Rnfmi9dxkbOLDjqDA== + dependencies: + "@babel/core" "^7.12.16" + "@babel/generator" "^7.12.15" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + "@babel/plugin-transform-runtime" "^7.12.15" + "@babel/preset-env" "^7.12.16" + "@babel/preset-react" "^7.12.13" + "@babel/preset-typescript" "^7.12.16" + "@babel/runtime" "^7.12.5" + "@babel/runtime-corejs3" "^7.12.13" + "@babel/traverse" "^7.12.13" + "@docusaurus/cssnano-preset" "2.0.0-beta.6" + "@docusaurus/react-loadable" "5.5.0" + "@docusaurus/types" "2.0.0-beta.6" + "@docusaurus/utils" "2.0.0-beta.6" + "@docusaurus/utils-common" "2.0.0-beta.6" + "@docusaurus/utils-validation" "2.0.0-beta.6" + "@slorber/static-site-generator-webpack-plugin" "^4.0.0" + "@svgr/webpack" "^5.5.0" + autoprefixer "^10.2.5" + babel-loader "^8.2.2" + babel-plugin-dynamic-import-node "2.3.0" + boxen "^5.0.1" + chalk "^4.1.1" + chokidar "^3.5.1" + clean-css "^5.1.2" + commander "^5.1.0" + copy-webpack-plugin "^9.0.0" + core-js "^3.9.1" + css-loader "^5.1.1" + css-minimizer-webpack-plugin "^3.0.1" + cssnano "^5.0.4" + del "^6.0.0" + detect-port "^1.3.0" + escape-html "^1.0.3" + eta "^1.12.1" + express "^4.17.1" + file-loader "^6.2.0" + fs-extra "^10.0.0" + github-slugger "^1.3.0" + globby "^11.0.2" + html-minifier-terser "^5.1.1" + html-tags "^3.1.0" + html-webpack-plugin "^5.3.2" + import-fresh "^3.3.0" + is-root "^2.1.0" + leven "^3.1.0" + lodash "^4.17.20" + mini-css-extract-plugin "^1.6.0" + module-alias "^2.2.2" + nprogress "^0.2.0" + postcss "^8.2.15" + postcss-loader "^5.3.0" + prompts "^2.4.1" + react-dev-utils "^11.0.1" + react-error-overlay "^6.0.9" + react-helmet "^6.1.0" + react-loadable "^5.5.0" + react-loadable-ssr-addon-v5-slorber "^1.0.1" + react-router "^5.2.0" + react-router-config "^5.1.1" + react-router-dom "^5.2.0" + resolve-pathname "^3.0.0" + rtl-detect "^1.0.3" + semver "^7.3.4" + serve-handler "^6.1.3" + shelljs "^0.8.4" + std-env "^2.2.1" + strip-ansi "^6.0.0" + terser-webpack-plugin "^5.1.3" + tslib "^2.2.0" + update-notifier "^5.1.0" + url-loader "^4.1.1" + wait-on "^5.3.0" + webpack "^5.40.0" + webpack-bundle-analyzer "^4.4.2" + webpack-dev-server "^3.11.2" + webpack-merge "^5.8.0" + webpackbar "^5.0.0-3" + +"@docusaurus/core@2.0.0-beta.4": + version "2.0.0-beta.4" + resolved "https://registry.yarnpkg.com/@docusaurus/core/-/core-2.0.0-beta.4.tgz#b41c5064c8737405cfceb1a373c9c5aa3410fd95" + integrity sha512-ITa976MPFl9KbYchMOWCCX6SU6EFDSdGeGOHtpaNcrJ9e9Sj7o77fKmMH/ciShwz1g8brTm3VxZ0FwleU8lTig== dependencies: "@babel/core" "^7.12.16" "@babel/generator" "^7.12.15" @@ -1297,24 +1381,24 @@ webpack-merge "^5.8.0" webpackbar "^5.0.0-3" -"@docusaurus/cssnano-preset@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/cssnano-preset/-/cssnano-preset-2.0.0-beta.5.tgz#9f0e89662ac470cadf78bb1c90ad746ad5f6d5b3" - integrity sha512-qbGj3X5jcAuA/Nr6EKGRFUGYnMXAuuBg0PyJpKGXLi9/wuIGGuuO/FED2L3f9AONWXZmZuwtKQGXeGtVN8sKEg== +"@docusaurus/cssnano-preset@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/cssnano-preset/-/cssnano-preset-2.0.0-beta.6.tgz#0c277854f0262dca7bcb3daf99866e8a49e29118" + integrity sha512-RCizp2NAbADopkX5nUz1xrAbU6hGZzziQk9RdSDGJLzMgVCN6RDotq9odS8VgzNa9x2Lx3WN527UxeEbzc2GVQ== dependencies: cssnano-preset-advanced "^5.1.1" postcss "^8.2.15" postcss-sort-media-queries "^3.10.11" -"@docusaurus/mdx-loader@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/mdx-loader/-/mdx-loader-2.0.0-beta.5.tgz#e2b0678d52878dcbc0227489526996f67000358a" - integrity sha512-6e1SPIIEuXomdpYnP3dkAu/6Y6aInu5vRBBc1GjLvy1RzrX1NTLdQtNdjjaEctP0eyddkyc9tkQwH0p2Wav8Zw== +"@docusaurus/mdx-loader@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/mdx-loader/-/mdx-loader-2.0.0-beta.6.tgz#a5aeee5be0d04bb273752c893366cc6cffeb2b32" + integrity sha512-yO6N+OESR77WZ/pXz7muOJGLletYYksx7s7wrwrr0x+A8tzdSwiHZ9op0NyjjpW5AnItU/WQQfcjv37qv4K6HA== dependencies: "@babel/parser" "^7.12.16" "@babel/traverse" "^7.12.13" - "@docusaurus/core" "2.0.0-beta.5" - "@docusaurus/utils" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" + "@docusaurus/utils" "2.0.0-beta.6" "@mdx-js/mdx" "^1.6.21" "@mdx-js/react" "^1.6.21" chalk "^4.1.1" @@ -1330,16 +1414,16 @@ url-loader "^4.1.1" webpack "^5.40.0" -"@docusaurus/plugin-content-blog@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-blog/-/plugin-content-blog-2.0.0-beta.5.tgz#6f9e47eb72d4169ff36a8d0f26348caf18fa48dc" - integrity sha512-gZmsBKibSE6/0LeGtpPtcRCvbl8XnRwsWhDGVf13CswnKSwmyE7FWq1ymAzgA4xJx//UamaRzZB9449+l2HVCg== +"@docusaurus/plugin-content-blog@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-blog/-/plugin-content-blog-2.0.0-beta.6.tgz#54ae1c96a8e95dbc58484157c259e8aaf47a3fcb" + integrity sha512-ohfMt7+rPiFQImc4Clpvc9m/1yWUQAjpG3e/coJywlJYbDXvi1pmH0VKkDUMBSe/35Wtz9457DYgNFG81lhV7Q== dependencies: - "@docusaurus/core" "2.0.0-beta.5" - "@docusaurus/mdx-loader" "2.0.0-beta.5" - "@docusaurus/types" "2.0.0-beta.5" - "@docusaurus/utils" "2.0.0-beta.5" - "@docusaurus/utils-validation" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" + "@docusaurus/mdx-loader" "2.0.0-beta.6" + "@docusaurus/types" "2.0.0-beta.6" + "@docusaurus/utils" "2.0.0-beta.6" + "@docusaurus/utils-validation" "2.0.0-beta.6" chalk "^4.1.1" escape-string-regexp "^4.0.0" feed "^4.2.2" @@ -1353,16 +1437,16 @@ tslib "^2.2.0" webpack "^5.40.0" -"@docusaurus/plugin-content-docs@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-docs/-/plugin-content-docs-2.0.0-beta.5.tgz#22bf5fc4b6dc91019a9393008b3272c763cf9216" - integrity sha512-9WXa+UK4/oOnGdk2aWLfE/151v6tf4jgxgRSM+V9jH9FQiluG5APDz0lH62wSTZbl8PjflK5BBhl17tCjGvvgQ== +"@docusaurus/plugin-content-docs@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-docs/-/plugin-content-docs-2.0.0-beta.6.tgz#38fd58e42fe39e2a0cc738df077917a6fcd4e7ee" + integrity sha512-cM5WWogWmX+qKPKv332eDWGRVVT5OjskbmFKe2QimwoaON3Cv6XY8Fo2xdYopqGIU0r0z8dVtRmoGS0ji7zB7w== dependencies: - "@docusaurus/core" "2.0.0-beta.5" - "@docusaurus/mdx-loader" "2.0.0-beta.5" - "@docusaurus/types" "2.0.0-beta.5" - "@docusaurus/utils" "2.0.0-beta.5" - "@docusaurus/utils-validation" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" + "@docusaurus/mdx-loader" "2.0.0-beta.6" + "@docusaurus/types" "2.0.0-beta.6" + "@docusaurus/utils" "2.0.0-beta.6" + "@docusaurus/utils-validation" "2.0.0-beta.6" chalk "^4.1.1" combine-promises "^1.1.0" escape-string-regexp "^4.0.0" @@ -1379,76 +1463,77 @@ utility-types "^3.10.0" webpack "^5.40.0" -"@docusaurus/plugin-content-pages@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-pages/-/plugin-content-pages-2.0.0-beta.5.tgz#3aa5e752699fcafe9b59b27fe011b7f86453e2af" - integrity sha512-1amYXgCc+ZqU8KScwG5zXWIGcy9OdrmmhB6LUuE+vfn+jVOdn8oVTkR8JTVMqmvLhyxmL30ixO06UsstQvKAJQ== +"@docusaurus/plugin-content-pages@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/plugin-content-pages/-/plugin-content-pages-2.0.0-beta.6.tgz#254e6ee60a8a2b4d85c4fa8408388d585eea0507" + integrity sha512-N6wARzOA8gTFeBXZSKbAN5s1Ej6R/pVg+J946E8GCYefXTFikTNRQ8+OPhax4MRzgzoOvhTQbLbRCSoAzSmjig== dependencies: - "@docusaurus/core" "2.0.0-beta.5" - "@docusaurus/mdx-loader" "2.0.0-beta.5" - "@docusaurus/types" "2.0.0-beta.5" - "@docusaurus/utils" "2.0.0-beta.5" - "@docusaurus/utils-validation" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" + "@docusaurus/mdx-loader" "2.0.0-beta.6" + "@docusaurus/types" "2.0.0-beta.6" + "@docusaurus/utils" "2.0.0-beta.6" + "@docusaurus/utils-validation" "2.0.0-beta.6" globby "^11.0.2" lodash "^4.17.20" remark-admonitions "^1.2.1" tslib "^2.1.0" webpack "^5.40.0" -"@docusaurus/plugin-debug@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/plugin-debug/-/plugin-debug-2.0.0-beta.5.tgz#649449ccf33209ba0b723361d86459b45e4f760f" - integrity sha512-ITrgRNic+NY9HMzUKzYhh6Mz/tgKQjdJYVizA/kbP5pkjB8FunE+0B12km9UNBzuT4ETGdNKgQGAqzrcrjpnag== +"@docusaurus/plugin-debug@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/plugin-debug/-/plugin-debug-2.0.0-beta.6.tgz#dc5ebc3c5c1c144b924ab3282fedbfc44cc78be0" + integrity sha512-TJXDBR2Gr/mhBrcj+/4+rTShSm/Qg56Jfezbm/2fFvuPgVlUwy6oj08s2/kYSTmkfG7G+c4iX1GBHjtyo1KxZA== dependencies: - "@docusaurus/core" "2.0.0-beta.5" - "@docusaurus/types" "2.0.0-beta.5" - "@docusaurus/utils" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" + "@docusaurus/types" "2.0.0-beta.6" + "@docusaurus/utils" "2.0.0-beta.6" + fs-extra "^9.1.0" react-json-view "^1.21.3" tslib "^2.1.0" -"@docusaurus/plugin-google-analytics@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-2.0.0-beta.5.tgz#a54197e7e60ab785dd14fb4e1a02887fc162d9c1" - integrity sha512-ncG+SCafoqFhtOMJwk9IZbzZCdy1bgmOjNCSfF6mmDp9laYYJBplBtqItIBQTuycIyKCxznKzi2q8l9989uMrA== +"@docusaurus/plugin-google-analytics@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-analytics/-/plugin-google-analytics-2.0.0-beta.6.tgz#fcb8608c09920131e4dd56b5b343f23cd07a7eee" + integrity sha512-AHbMNPN3gkWXYFnmHL9MBcRODByAgzHZoH/5v3xwbSV2FOZo6kx4Hp94I6oFM0o5mp+i6X7slDncgGTWSGxCMg== dependencies: - "@docusaurus/core" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" -"@docusaurus/plugin-google-gtag@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-2.0.0-beta.5.tgz#415a4f98776e0ece17e96ca7e823022b5bf98316" - integrity sha512-FMWAXCLCUwEk7wykOAcM6vs3tHWVIU/T1PElqcoD7fh9521ocZ/5L8yyWWfJ+nX/90TVs+7nOFY0vNl2I2MYZg== +"@docusaurus/plugin-google-gtag@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/plugin-google-gtag/-/plugin-google-gtag-2.0.0-beta.6.tgz#ccde43934d5a193711d118058092d4251965079d" + integrity sha512-uJyQ30sXbVRS3TGtVJFA0s1ozrluuREu6NK2Z3TLtKpeT2NTe5iaqXN0Xp749hr3bjbgpEe6gMixVh//jg503w== dependencies: - "@docusaurus/core" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" -"@docusaurus/plugin-sitemap@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/plugin-sitemap/-/plugin-sitemap-2.0.0-beta.5.tgz#2ab02a85e66e8b5dd8ce5f19023c005be2ec073b" - integrity sha512-QcIIMNmyMnOm5q/zyzidixNIB+yE7/ouUi/62wr5+ZkO/rvvObVe+r9Tdl90SmvsJH17y290EWEy9kunoRyG0w== +"@docusaurus/plugin-sitemap@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/plugin-sitemap/-/plugin-sitemap-2.0.0-beta.6.tgz#5dd74bc8a5845c0e7eac7bfce05a18f57e0b3ed2" + integrity sha512-jpTaODqyCgg+20RtMw8gSvCKQOvH18FpKhIu6FG+z4zgHP33qaJouVM7/1ZKPrfNt4z7xDOyBNUzzdmpssHA8A== dependencies: - "@docusaurus/core" "2.0.0-beta.5" - "@docusaurus/types" "2.0.0-beta.5" - "@docusaurus/utils" "2.0.0-beta.5" - "@docusaurus/utils-common" "2.0.0-beta.5" - "@docusaurus/utils-validation" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" + "@docusaurus/types" "2.0.0-beta.6" + "@docusaurus/utils" "2.0.0-beta.6" + "@docusaurus/utils-common" "2.0.0-beta.6" + "@docusaurus/utils-validation" "2.0.0-beta.6" fs-extra "^10.0.0" sitemap "^7.0.0" tslib "^2.2.0" -"@docusaurus/preset-classic@^2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/preset-classic/-/preset-classic-2.0.0-beta.5.tgz#7594167507ee7ff7aa78c3188bab4dfba6e8b551" - integrity sha512-hcPLYwMEMDuc/lNloDRh3SKpZneQLaz0Zj8CI7jsislp4iBz9QtbWZzruoXsJe7noSfqsBcTJqRlNw7/UwEyTA== +"@docusaurus/preset-classic@^2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/preset-classic/-/preset-classic-2.0.0-beta.6.tgz#528c98939589ae5edfc2a7e01e9f87561e5d5c01" + integrity sha512-riqQRcNssNH7oto8nAjYIO79/ZucidexHTDlgD+trP56ploHLJp4kIlxb44IGOmx3es8/z4egWtM+acY/39N2Q== dependencies: - "@docusaurus/core" "2.0.0-beta.5" - "@docusaurus/plugin-content-blog" "2.0.0-beta.5" - "@docusaurus/plugin-content-docs" "2.0.0-beta.5" - "@docusaurus/plugin-content-pages" "2.0.0-beta.5" - "@docusaurus/plugin-debug" "2.0.0-beta.5" - "@docusaurus/plugin-google-analytics" "2.0.0-beta.5" - "@docusaurus/plugin-google-gtag" "2.0.0-beta.5" - "@docusaurus/plugin-sitemap" "2.0.0-beta.5" - "@docusaurus/theme-classic" "2.0.0-beta.5" - "@docusaurus/theme-search-algolia" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" + "@docusaurus/plugin-content-blog" "2.0.0-beta.6" + "@docusaurus/plugin-content-docs" "2.0.0-beta.6" + "@docusaurus/plugin-content-pages" "2.0.0-beta.6" + "@docusaurus/plugin-debug" "2.0.0-beta.6" + "@docusaurus/plugin-google-analytics" "2.0.0-beta.6" + "@docusaurus/plugin-google-gtag" "2.0.0-beta.6" + "@docusaurus/plugin-sitemap" "2.0.0-beta.6" + "@docusaurus/theme-classic" "2.0.0-beta.6" + "@docusaurus/theme-search-algolia" "2.0.0-beta.6" "@docusaurus/react-loadable@5.5.0": version "5.5.0" @@ -1457,20 +1542,20 @@ dependencies: prop-types "^15.6.2" -"@docusaurus/theme-classic@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/theme-classic/-/theme-classic-2.0.0-beta.5.tgz#1c51cfc953eb7e3e7da8886ab62f99cd2a8cede0" - integrity sha512-AtBifB1mRMI5W0ORlY5M/QEnHUB/wvGLRkLegBbgBAiTy2IGr99GUXRRminQI2AQuFTwYAMLQoSVSeJ0w1q49g== +"@docusaurus/theme-classic@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/theme-classic/-/theme-classic-2.0.0-beta.6.tgz#4ae476e90cf875bb13eba5daedbd71d0cfdd8194" + integrity sha512-fMb6gAKUdaojInZabimIJE+yPWs8dQfmZII7v/LHmgxafh/FylmrBkKhyJfa2ix4QRibo9E01LGX44/aKzemxw== dependencies: - "@docusaurus/core" "2.0.0-beta.5" - "@docusaurus/plugin-content-blog" "2.0.0-beta.5" - "@docusaurus/plugin-content-docs" "2.0.0-beta.5" - "@docusaurus/plugin-content-pages" "2.0.0-beta.5" - "@docusaurus/theme-common" "2.0.0-beta.5" - "@docusaurus/types" "2.0.0-beta.5" - "@docusaurus/utils" "2.0.0-beta.5" - "@docusaurus/utils-common" "2.0.0-beta.5" - "@docusaurus/utils-validation" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" + "@docusaurus/plugin-content-blog" "2.0.0-beta.6" + "@docusaurus/plugin-content-docs" "2.0.0-beta.6" + "@docusaurus/plugin-content-pages" "2.0.0-beta.6" + "@docusaurus/theme-common" "2.0.0-beta.6" + "@docusaurus/types" "2.0.0-beta.6" + "@docusaurus/utils" "2.0.0-beta.6" + "@docusaurus/utils-common" "2.0.0-beta.6" + "@docusaurus/utils-validation" "2.0.0-beta.6" "@mdx-js/mdx" "^1.6.21" "@mdx-js/react" "^1.6.21" chalk "^4.1.1" @@ -1478,7 +1563,7 @@ copy-text-to-clipboard "^3.0.1" fs-extra "^10.0.0" globby "^11.0.2" - infima "0.2.0-alpha.31" + infima "0.2.0-alpha.33" lodash "^4.17.20" parse-numeric-range "^1.2.0" postcss "^8.2.15" @@ -1488,40 +1573,40 @@ react-router-dom "^5.2.0" rtlcss "^3.1.2" -"@docusaurus/theme-common@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/theme-common/-/theme-common-2.0.0-beta.5.tgz#c6376de88bd0ac6f9803da25ab6212d4b5fc3afb" - integrity sha512-6XEM8NzpR2Q42qkhPdI46M/7lLcZcOCgqmQfmj319sGmKkfhPuYPuIUvNqorxldZqLYuV8/9q7WAPjAgj+wawA== +"@docusaurus/theme-common@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/theme-common/-/theme-common-2.0.0-beta.6.tgz#17cbf38400d752e264cdbebbc57a92f2bdfc7052" + integrity sha512-53nFWMjpFdyHEvBfQQQoDm9rNKgGangy7vSp1B/F3+uRyYAItE7O4l8MdOALXFALlddiiPYvCtI1qGx2dnzndA== dependencies: - "@docusaurus/core" "2.0.0-beta.5" - "@docusaurus/plugin-content-blog" "2.0.0-beta.5" - "@docusaurus/plugin-content-docs" "2.0.0-beta.5" - "@docusaurus/plugin-content-pages" "2.0.0-beta.5" - "@docusaurus/types" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" + "@docusaurus/plugin-content-blog" "2.0.0-beta.6" + "@docusaurus/plugin-content-docs" "2.0.0-beta.6" + "@docusaurus/plugin-content-pages" "2.0.0-beta.6" + "@docusaurus/types" "2.0.0-beta.6" clsx "^1.1.1" fs-extra "^10.0.0" tslib "^2.1.0" -"@docusaurus/theme-search-algolia@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.0.0-beta.5.tgz#889a10e3b849cf3d5a17b3cf735ccdc454a71af6" - integrity sha512-+3XG4SHJ4xukvv/WDKRejf3qSTVa3ufOv6hlZ32H8RAmfJmI/Rmsm/oueB86xBw/OkznIXx6M8HzchfYCHWxSA== +"@docusaurus/theme-search-algolia@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/theme-search-algolia/-/theme-search-algolia-2.0.0-beta.6.tgz#c92214a075a23fe9fb87cfbc6f037ca07e83f628" + integrity sha512-GaaYdf6EEKL3jwmt9LRyiMtNvobOhw4vGuYJKbJcgba/M75kOJSbZPRrhALBAe6o4gOYbV44afzFC/jUUp7dsA== dependencies: "@docsearch/react" "^3.0.0-alpha.39" - "@docusaurus/core" "2.0.0-beta.5" - "@docusaurus/theme-common" "2.0.0-beta.5" - "@docusaurus/utils" "2.0.0-beta.5" - "@docusaurus/utils-validation" "2.0.0-beta.5" + "@docusaurus/core" "2.0.0-beta.6" + "@docusaurus/theme-common" "2.0.0-beta.6" + "@docusaurus/utils" "2.0.0-beta.6" + "@docusaurus/utils-validation" "2.0.0-beta.6" algoliasearch "^4.8.4" algoliasearch-helper "^3.3.4" clsx "^1.1.1" eta "^1.12.1" lodash "^4.17.20" -"@docusaurus/types@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/types/-/types-2.0.0-beta.5.tgz#668ddfaa7f23d74522a58aac99d62436b555fbc6" - integrity sha512-WtwR5O67cTK6wo9KnSxqBpgC26M6Z90PgX5Gun/Re8Ix+GVEqIzzev9C/2P2Da2TW0sgSkjWNr1tHaNxNMPLkQ== +"@docusaurus/types@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/types/-/types-2.0.0-beta.6.tgz#f92a61cc42e5921d325114ebc7b30c5e8c368683" + integrity sha512-TrwxyI93XTZEhOmdEI8FPKDbGV61zE9PzXCdE1alwz1NOV+YXwcv+9sRTZEVLqBpr+TIja+IeeS6mxnyen/Ptg== dependencies: commander "^5.1.0" joi "^17.4.0" @@ -1529,30 +1614,30 @@ webpack "^5.40.0" webpack-merge "^5.8.0" -"@docusaurus/utils-common@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/utils-common/-/utils-common-2.0.0-beta.5.tgz#afadd9426372292e0b6d28778613410e3fd58aa4" - integrity sha512-LUHEfZ9QGwBCpmGfLiPz5ENipxicsBlzIu+jUuB6I+ljX4Cd2OFkjDVmL0kjHR80sh0KJzNizpjsVj3l3jN9RA== +"@docusaurus/utils-common@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/utils-common/-/utils-common-2.0.0-beta.6.tgz#afd26a9f67b16479058ead66a310738c21293ae5" + integrity sha512-MKm6bJxvsYWRl072jLR60z+71tTWSxoERh2eTmCYlegFnu3Tby3HOC8I3jDcC6VpVuoDGsBGNoQbOgy2LqQbXQ== dependencies: - "@docusaurus/types" "2.0.0-beta.5" + "@docusaurus/types" "2.0.0-beta.6" tslib "^2.2.0" -"@docusaurus/utils-validation@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/utils-validation/-/utils-validation-2.0.0-beta.5.tgz#fe7efefdb518bc19fb6cb9c79492bd84cfc4a59a" - integrity sha512-VWj1BRYejcGewWP3BKSm3a5dVzQWA9w9MDQUCylR2NxywOxonoUPo9nz5g9bN+C3rwuelfA5u3MORu2q2+rbLw== +"@docusaurus/utils-validation@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/utils-validation/-/utils-validation-2.0.0-beta.6.tgz#7b98216de844138e9606a128c09182185ed84621" + integrity sha512-v0nk9bpawUd2JFDFyiHDmZuMG+/O1UvxtxvcRbvrxrul+rlzD7Q9CGxMgW3Grp2OCKQ4yFXRidBIccwqON5AVw== dependencies: - "@docusaurus/utils" "2.0.0-beta.5" + "@docusaurus/utils" "2.0.0-beta.6" chalk "^4.1.1" joi "^17.4.0" tslib "^2.1.0" -"@docusaurus/utils@2.0.0-beta.5": - version "2.0.0-beta.5" - resolved "https://registry.yarnpkg.com/@docusaurus/utils/-/utils-2.0.0-beta.5.tgz#68859f070ca6bf7875f4a4121e314269211a876b" - integrity sha512-hIzuARFMqXqljTdbF19bYRw+fqqK2gHlzepeC9uJfLLaGmirPFDPjr+BN9oiajBhNx2CgvJVl/66lEx4hrd7uQ== +"@docusaurus/utils@2.0.0-beta.6": + version "2.0.0-beta.6" + resolved "https://registry.yarnpkg.com/@docusaurus/utils/-/utils-2.0.0-beta.6.tgz#1438df9f28b632fe7a4f50663340b463cff07cab" + integrity sha512-S72/o7VDaTvrXJy+NpfuctghGGoMW30m94PMkrL3I6V+o5eE2Uzax7dbM++moclmHvi0/Khv+TXmRIQs6ZvwgQ== dependencies: - "@docusaurus/types" "2.0.0-beta.5" + "@docusaurus/types" "2.0.0-beta.6" "@types/github-slugger" "^1.3.0" chalk "^4.1.1" escape-string-regexp "^4.0.0" @@ -5182,10 +5267,10 @@ indent-string@^4.0.0: resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== -infima@0.2.0-alpha.31: - version "0.2.0-alpha.31" - resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.31.tgz#c5b66ef1797551471c49b636d6ed270f981d276e" - integrity sha512-ggOAeyiQIFKZeYnH9lbhDBHFZhcYOa0LFKSMLgot33X21aJRu7ruwVUVwYg4kJnZRLGLeAjC5BVgLxKoLixuNQ== +infima@0.2.0-alpha.33: + version "0.2.0-alpha.33" + resolved "https://registry.yarnpkg.com/infima/-/infima-0.2.0-alpha.33.tgz#8d1a77ea916bedcebffa60dcd2dffbe382e09abf" + integrity sha512-iLZI8/vGTbbhbeFhlWv1zwvrqfNDLAayuEdqZqNqCyGuh0IW469dRIRm0FLZ98YyLikt2njzuKfy6xUrBWRXcg== inflight@^1.0.4: version "1.0.6" From b73ee74de8f3389091490c4166a9868143e4d804 Mon Sep 17 00:00:00 2001 From: jffarge Date: Wed, 8 Sep 2021 09:34:59 +0200 Subject: [PATCH 2/3] docs: :lipstick: quick css fixes Signed-off-by: jffarge --- website/src/css/custom.scss | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/website/src/css/custom.scss b/website/src/css/custom.scss index 47406518..98b2ec10 100644 --- a/website/src/css/custom.scss +++ b/website/src/css/custom.scss @@ -148,9 +148,13 @@ code { } img { - max-width: 500px; + max-width: 100%; display: block; margin: auto; + + @include desktopWide { + max-width: 500px; + } } } @@ -375,6 +379,10 @@ code[class^="codeBlockLines"] { .token-line { color: var(--ifm-color-primary-light) !important; } + + html[data-theme="dark"] & { + background-color: var(--ifm-color-primary-darker) !important; + } } button[class^="copyButton"] { From ad53d5522b283ade298023ee7b389af42c1b8281 Mon Sep 17 00:00:00 2001 From: jffarge Date: Wed, 8 Sep 2021 09:48:48 +0200 Subject: [PATCH 3/3] docs: :lipstick: one more quick fix Signed-off-by: jffarge --- website/src/css/custom.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/src/css/custom.scss b/website/src/css/custom.scss index 98b2ec10..45e6eca4 100644 --- a/website/src/css/custom.scss +++ b/website/src/css/custom.scss @@ -148,9 +148,10 @@ code { } img { - max-width: 100%; + max-width: 380px; display: block; margin: auto; + width: 100%; @include desktopWide { max-width: 500px;