From cf3898e407893b478842d6ed7a620b192a388301 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 5 May 2023 07:52:03 +0000 Subject: [PATCH] chore(deps): bump prism-react-renderer from 1.3.5 to 2.0.3 in /website Bumps [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) from 1.3.5 to 2.0.3. - [Release notes](https://github.com/FormidableLabs/prism-react-renderer/releases) - [Commits](https://github.com/FormidableLabs/prism-react-renderer/compare/v1.3.5...prism-react-renderer@2.0.3) --- updated-dependencies: - dependency-name: prism-react-renderer dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- website/docusaurus.config.js | 225 ++++++++++++++++++----------------- website/package.json | 2 +- website/yarn.lock | 13 ++ 3 files changed, 128 insertions(+), 112 deletions(-) diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index dbd05e966..45e4a7b51 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -1,118 +1,121 @@ -const lightCodeTheme = require("prism-react-renderer/themes/github"); -const darkCodeTheme = require("prism-react-renderer/themes/dracula"); +const { + themes: { github: lightCodeTheme, dracula: darkCodeTheme }, +} = require("prism-react-renderer"); // With JSDoc @type annotations, IDEs can provide config autocompletion /** @type {import('@docusaurus/types').DocusaurusConfig} */ -(module.exports = { - title: "TwbsHelper", - tagline: - "Laminas (formerly Zend Framework) module for easy integration of the Twitter Bootstrap v4+", - url: "https://neilime.github.io", - baseUrl: "/twbs-helper-module/", - trailingSlash: true, - onBrokenLinks: "ignore", - onBrokenMarkdownLinks: "warn", - favicon: "img/favicon.ico", - organizationName: "neilime", - projectName: "twbs-helper-module", - presets: [ - [ - "@docusaurus/preset-classic", - /** @type {import('@docusaurus/preset-classic').Options} */ +( + module.exports = { + title: "TwbsHelper", + tagline: + "Laminas (formerly Zend Framework) module for easy integration of the Twitter Bootstrap v4+", + url: "https://neilime.github.io", + baseUrl: "/twbs-helper-module/", + trailingSlash: true, + onBrokenLinks: "ignore", + onBrokenMarkdownLinks: "warn", + favicon: "img/favicon.ico", + organizationName: "neilime", + projectName: "twbs-helper-module", + presets: [ + [ + "@docusaurus/preset-classic", + /** @type {import('@docusaurus/preset-classic').Options} */ + ({ + docs: { + sidebarPath: require.resolve("./sidebars.js"), + editUrl: "https://neilime/twbs-helper-module/edit/main/website/", + }, + theme: { + customCss: require.resolve("./src/css/custom.css"), + }, + }), + ], + ], + + themeConfig: + /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ - docs: { - sidebarPath: require.resolve("./sidebars.js"), - editUrl: "https://neilime/twbs-helper-module/edit/main/website/", + navbar: { + title: "TwbsHelper", + logo: { + alt: "TwbsHelper Logo", + src: "img/logo.svg", + }, + items: [ + { + type: "doc", + docId: "installation", + position: "left", + label: "Installation", + }, + { + type: "doc", + docId: "usage/intro", + position: "left", + label: "Usage", + }, + { + href: "https://github.com/neilime/twbs-helper-module", + label: "GitHub", + position: "right", + }, + ], }, - theme: { - customCss: require.resolve("./src/css/custom.css"), + footer: { + style: "dark", + links: [ + { + title: "Docs", + items: [ + { + label: "Installation", + to: "/docs/installation", + }, + { + label: "Usage", + to: "/docs/usage", + }, + ], + }, + { + title: "ESCEMI", + items: [ + { + label: "www.escemi.com", + href: "https://www.escemi.com/", + }, + { + label: "Linkedin", + href: "https://www.linkedin.com/company/escemi", + }, + { + label: "Malt", + href: "https://www.malt.fr/profile/emilienescalle", + }, + ], + }, + { + title: "More", + items: [ + { + label: "Github", + href: "https://github.com/escemi-tech", + }, + { + label: "BuildAndRun", + href: "https://www.build-and-run.fr/", + }, + ], + }, + ], + copyright: `Copyright © ${new Date().getFullYear()} TwbsHelper.`, }, - }), - ], - ], - - themeConfig: - /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ - ({ - navbar: { - title: "TwbsHelper", - logo: { - alt: "TwbsHelper Logo", - src: "img/logo.svg", + prism: { + theme: lightCodeTheme, + darkTheme: darkCodeTheme, + additionalLanguages: ["php"], }, - items: [ - { - type: "doc", - docId: "installation", - position: "left", - label: "Installation", - }, - { - type: "doc", - docId: "usage/intro", - position: "left", - label: "Usage", - }, - { - href: "https://github.com/neilime/twbs-helper-module", - label: "GitHub", - position: "right", - }, - ], - }, - footer: { - style: "dark", - links: [ - { - title: "Docs", - items: [ - { - label: "Installation", - to: "/docs/installation", - }, - { - label: "Usage", - to: "/docs/usage", - }, - ], - }, - { - title: "ESCEMI", - items: [ - { - label: "www.escemi.com", - href: "https://www.escemi.com/", - }, - { - label: "Linkedin", - href: "https://www.linkedin.com/company/escemi", - }, - { - label: "Malt", - href: "https://www.malt.fr/profile/emilienescalle", - }, - ], - }, - { - title: "More", - items: [ - { - label: "Github", - href: "https://github.com/escemi-tech", - }, - { - label: "BuildAndRun", - href: "https://www.build-and-run.fr/", - }, - ], - }, - ], - copyright: `Copyright © ${new Date().getFullYear()} TwbsHelper.`, - }, - prism: { - theme: lightCodeTheme, - darkTheme: darkCodeTheme, - additionalLanguages: ["php"], - }, - }), -}); + }), + } +); diff --git a/website/package.json b/website/package.json index adb7b79ef..880849549 100644 --- a/website/package.json +++ b/website/package.json @@ -21,7 +21,7 @@ "@svgr/webpack": "^7.0.0", "clsx": "^1.2.1", "file-loader": "^6.2.0", - "prism-react-renderer": "^1.3.5", + "prism-react-renderer": "^2.0.3", "react": "^18.2.0", "react-dom": "^18.2.0", "url-loader": "^4.1.1" diff --git a/website/yarn.lock b/website/yarn.lock index 5378357ec..49741962e 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -2613,6 +2613,11 @@ resolved "https://registry.yarnpkg.com/@types/parse5/-/parse5-5.0.3.tgz#e7b5aebbac150f8b5fdd4a46e7f0bd8e65e19109" integrity sha512-kUNnecmtkunAoQ3CnjmMkzNU/gtxG8guhi+Fk2U/kOpIKjIMKnXGp4IJCgQJrXSgMsWYimYG4TGjz/UzbGEBTw== +"@types/prismjs@^1.26.0": + version "1.26.0" + resolved "https://registry.yarnpkg.com/@types/prismjs/-/prismjs-1.26.0.tgz#a1c3809b0ad61c62cac6d4e0c56d610c910b7654" + integrity sha512-ZTaqn/qSqUuAq1YwvOFQfVW1AR/oQJlLSZVustdjwI+GZ8kr0MSHBj0tsXPW1EqHubx50gtBEjbPGsdZwQwCjQ== + "@types/prop-types@*": version "15.7.5" resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.5.tgz#5f19d2b85a98e9558036f6a3cacc8819420f05cf" @@ -6502,6 +6507,14 @@ prism-react-renderer@^1.3.5: resolved "https://registry.yarnpkg.com/prism-react-renderer/-/prism-react-renderer-1.3.5.tgz#786bb69aa6f73c32ba1ee813fbe17a0115435085" integrity sha512-IJ+MSwBWKG+SM3b2SUfdrhC+gu01QkV2KmRQgREThBfSQRoufqRfxfHUxpG1WcaFjP+kojcFyO9Qqtpgt3qLCg== +prism-react-renderer@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/prism-react-renderer/-/prism-react-renderer-2.0.3.tgz#251c93af94718991f6d4805bae70ac08c37997ce" + integrity sha512-KhTfMTznJeSqJkoqh9TUDuvRdyaNWXHCii1Z46sqthQXnMiFzCaWapfsmW5kHcFjRwEUJ92iysrgznv0y9XHlQ== + dependencies: + "@types/prismjs" "^1.26.0" + clsx "^1.2.1" + prismjs@^1.28.0: version "1.28.0" resolved "https://registry.yarnpkg.com/prismjs/-/prismjs-1.28.0.tgz#0d8f561fa0f7cf6ebca901747828b149147044b6"