From f7d6d2c2ea79daaac7d47cd5064307d6d389c487 Mon Sep 17 00:00:00 2001 From: Chris Swithinbank Date: Sun, 27 Oct 2024 20:29:47 +0100 Subject: [PATCH] Add color chips Expressive Code plugin to docs --- docs/ec.config.mjs | 5 +++++ docs/package.json | 1 + package-lock.json | 49 +++++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 docs/ec.config.mjs diff --git a/docs/ec.config.mjs b/docs/ec.config.mjs new file mode 100644 index 0000000..45e8b6c --- /dev/null +++ b/docs/ec.config.mjs @@ -0,0 +1,5 @@ +import { pluginColorChips } from 'expressive-code-color-chips'; + +export default { + plugins: [pluginColorChips()], +}; diff --git a/docs/package.json b/docs/package.json index bec4aa7..df82ec3 100644 --- a/docs/package.json +++ b/docs/package.json @@ -14,6 +14,7 @@ "@astrojs/starlight": "^0.24.0", "astro": "^4.16.3", "astro-og-canvas": "^0.4.2", + "expressive-code-color-chips": "^0.1.0", "sharp": "^0.32.5", "starlight-package-managers": "^0.4.0" } diff --git a/package-lock.json b/package-lock.json index 2f00cc9..4f33872 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,10 +49,53 @@ "@astrojs/starlight": "^0.24.0", "astro": "^4.16.3", "astro-og-canvas": "^0.4.2", + "expressive-code-color-chips": "^0.1.0", "sharp": "^0.32.5", "starlight-package-managers": "^0.4.0" } }, + "docs/node_modules/@expressive-code/core": { + "version": "0.37.1", + "resolved": "https://registry.npmjs.org/@expressive-code/core/-/core-0.37.1.tgz", + "integrity": "sha512-nYgsK3uxK4W46v0IolHdB5+T6MQfy5weTpyB3kbzr11ur2UKUy2oHGhbWa+hRThfYEF1PM+TFxMtWU7amcjF8A==", + "peer": true, + "dependencies": { + "@ctrl/tinycolor": "^4.0.4", + "hast-util-select": "^6.0.2", + "hast-util-to-html": "^9.0.1", + "hast-util-to-text": "^4.0.1", + "hastscript": "^9.0.0", + "postcss": "^8.4.38", + "postcss-nested": "^6.0.1", + "unist-util-visit": "^5.0.0", + "unist-util-visit-parents": "^6.0.1" + } + }, + "docs/node_modules/expressive-code-color-chips": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/expressive-code-color-chips/-/expressive-code-color-chips-0.1.0.tgz", + "integrity": "sha512-dZFaIpVGjayiyI1YN5j+f8FFGVOo3nlPFSWJMTLsPDf1YNMrq1wbeF5rmb090wi4m97zOj7rR5dNrnzKkzTJSQ==", + "peerDependencies": { + "@expressive-code/core": "^0.37.1" + } + }, + "docs/node_modules/hastscript": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-9.0.0.tgz", + "integrity": "sha512-jzaLBGavEDKHrc5EfFImKN7nZKKBdSLIdGvCwDZ9TfzbF2ffXiov8CKE445L2Z1Ek2t/m4SKQ2j6Ipv7NyUolw==", + "peer": true, + "dependencies": { + "@types/hast": "^3.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-parse-selector": "^4.0.0", + "property-information": "^6.0.0", + "space-separated-tokens": "^2.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/@aashutoshrathi/word-wrap": { "version": "1.2.6", "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", @@ -12564,10 +12607,10 @@ } }, "packages/astro-embed": { - "version": "0.7.4", + "version": "0.8.0", "license": "MIT", "dependencies": { - "@astro-community/astro-embed-baseline-status": "^0.0.1", + "@astro-community/astro-embed-baseline-status": "^0.1.0", "@astro-community/astro-embed-integration": "^0.7.2", "@astro-community/astro-embed-link-preview": "^0.2.2", "@astro-community/astro-embed-twitter": "^0.5.6", @@ -12580,7 +12623,7 @@ }, "packages/astro-embed-baseline-status": { "name": "@astro-community/astro-embed-baseline-status", - "version": "0.0.1", + "version": "0.1.1", "license": "MIT", "dependencies": { "@astro-community/astro-embed-utils": "^0.1.0"