woot new expressivecode-starlight update!

This commit is contained in:
Adam Matthiesen 2024-01-28 03:07:57 -08:00
parent bddafa4536
commit a40395f369
6 changed files with 48 additions and 42 deletions

View File

@ -1,3 +1,6 @@
{
"editor.defaultFormatter": "biomejs.biome"
"editor.defaultFormatter": "biomejs.biome",
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
}
}

View File

@ -229,8 +229,8 @@ importers:
specifier: ^0.4.1
version: 0.4.1(prettier-plugin-astro@0.13.0)(prettier@3.2.4)(typescript@5.3.3)
'@astrojs/starlight':
specifier: ^0.16.0
version: 0.16.0(astro@4.2.4)
specifier: ^0.17.0
version: 0.17.0(astro@4.2.4)
astro:
specifier: ^4.2.4
version: 4.2.4(sass@1.70.0)(typescript@5.3.3)
@ -391,8 +391,8 @@ packages:
zod: 3.22.4
dev: false
/@astrojs/starlight@0.16.0(astro@4.2.4):
resolution: {integrity: sha512-zwSNiCqzZeiuivUp4Yhx+eMLGww8v8cRYoCYXg9myTXNUwphqPaVG3rp7dbaZ4y1MaejnjYWB444ZRItEgTDcQ==}
/@astrojs/starlight@0.17.0(astro@4.2.4):
resolution: {integrity: sha512-a2s+x/5r0v7S5jERC91IuEqV+PXDUlFNVDJPrcbpjx0xaqvg4TezL1K3gWCptfHO1mUE9ikQ8vaArbNbgFVb/g==}
peerDependencies:
astro: ^4.0.0
dependencies:
@ -402,7 +402,7 @@ packages:
'@types/hast': 3.0.3
'@types/mdast': 4.0.3
astro: 4.2.4(sass@1.70.0)(typescript@5.3.3)
astro-expressive-code: 0.31.0(astro@4.2.4)
astro-expressive-code: 0.32.2(astro@4.2.4)
bcp-47: 2.1.0
hast-util-select: 6.0.2
hastscript: 8.0.0
@ -1199,8 +1199,8 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
/@expressive-code/core@0.31.0:
resolution: {integrity: sha512-zeCuojWRYeFs0UDOhzpKMzpjI/tJPCQna4jcVp5SJLMn4qNtHXgVmz3AngoMFoFcAlK6meE3wxzy//0d6K4NPw==}
/@expressive-code/core@0.32.2:
resolution: {integrity: sha512-b4/LuslONCqyT48eKlcxsbnIqGw4CSe/aW4Co58UvKrtDMXKtr4erpVx/EE2emszotWt0xtkOjCnS6o171+E4A==}
dependencies:
'@ctrl/tinycolor': 3.6.1
hast-util-to-html: 8.0.4
@ -1209,24 +1209,24 @@ packages:
postcss-nested: 6.0.1(postcss@8.4.33)
dev: false
/@expressive-code/plugin-frames@0.31.0:
resolution: {integrity: sha512-eYWfK3i4w2gSpOGBFNnu05JKSXC90APgUNdam8y5i0Ie2CVAwpxDtEp0NRqugvEKC0aMJe6ZmHN5Hu2WAVJmig==}
/@expressive-code/plugin-frames@0.32.2:
resolution: {integrity: sha512-QKoL5jNCjQnz5GpQMBtZ8Gb1bNXxjarIBkMc8CIugdlvniA442latUKsH1fhacG1UQieSiADctSHjIvVH8Qm9A==}
dependencies:
'@expressive-code/core': 0.31.0
'@expressive-code/core': 0.32.2
hastscript: 7.2.0
dev: false
/@expressive-code/plugin-shiki@0.31.0:
resolution: {integrity: sha512-fU5wPPfV1LGcS+Z1wcEkzI1fzBq9IAdt0DN0ni8sT7E+gpkULda4GA4IFD9iWKCGIhSDsBbG+bjc9hrYoJsDIQ==}
/@expressive-code/plugin-shiki@0.32.2:
resolution: {integrity: sha512-ulNi/NAGMnx8qGBlRTGrH7qHeGV6r15MrkjY/AaTQNImnqory05DF4qOF/dqxe7WywawwsHQ2a4BzsoGYLjicA==}
dependencies:
'@expressive-code/core': 0.31.0
'@expressive-code/core': 0.32.2
shikiji: 0.8.7
dev: false
/@expressive-code/plugin-text-markers@0.31.0:
resolution: {integrity: sha512-32o3pPMBq6bVUfRsAfFyqNpHbD1Z3iftoX9yt95F5zakLMsmHzZL4f0jyNr8XpXe7qcTnl0kIijBkUpvS6Pxfg==}
/@expressive-code/plugin-text-markers@0.32.2:
resolution: {integrity: sha512-1fAkWkQ7qcb6DDqV3ILB1uMi7yvSIu6AHFW+bSzNcgXBl/KCudoUtmZ/YRBnNKbUqH8WSYUA41Yr/SeFwEGmbQ==}
dependencies:
'@expressive-code/core': 0.31.0
'@expressive-code/core': 0.32.2
hastscript: 7.2.0
unist-util-visit-parents: 5.1.3
dev: false
@ -1780,7 +1780,7 @@ packages:
/@types/jsonfile@6.1.4:
resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==}
dependencies:
'@types/node': 18.19.10
'@types/node': 20.11.6
dev: true
/@types/mdast@4.0.3:
@ -1852,7 +1852,7 @@ packages:
/@types/tar-stream@3.1.3:
resolution: {integrity: sha512-Zbnx4wpkWBMBSu5CytMbrT5ZpMiF55qgM+EpHzR4yIDu7mv52cej8hTkOc6K+LzpkOAbxwn/m7j3iO+/l42YkQ==}
dependencies:
'@types/node': 18.19.10
'@types/node': 20.11.6
dev: true
/@types/unist@2.0.10:
@ -2318,13 +2318,14 @@ packages:
- supports-color
dev: true
/astro-expressive-code@0.31.0(astro@4.2.4):
resolution: {integrity: sha512-o6eFrRSYLnlM/2FKkO3MgkbmVxT8N6DJcKvbRf1wbUcRXpz7s1KfugbdsaGw3ABEWUBuQIBsRppcGGw2L816Vg==}
/astro-expressive-code@0.32.2(astro@4.2.4):
resolution: {integrity: sha512-uJbgSCl9F9NGjdfTmBHci5Ws0/zMUNk9dWfOl6rvYaOL6NZha+NNjnmB3Aza7GnxP+NvQt3RV8M2vpcZnaudSw==}
peerDependencies:
astro: ^3.3.0 || ^4.0.0-beta
dependencies:
astro: 4.2.4(sass@1.70.0)(typescript@5.3.3)
remark-expressive-code: 0.31.0
hast-util-to-html: 8.0.4
remark-expressive-code: 0.32.2
dev: false
/astro-font@0.0.77:
@ -3783,13 +3784,13 @@ packages:
dev: false
optional: true
/expressive-code@0.31.0:
resolution: {integrity: sha512-rxKGYS8iRwNUbRNfyCyoe3XQvBLTtGdXbNKM+ODDWCn4VL2DVT1gD1M2N2Alg8HQHIWZJsZIMsYbziO0MRjPlw==}
/expressive-code@0.32.2:
resolution: {integrity: sha512-fUwnj9O6/5HKSniD/nXLEGKmcwqL+ipWyZAFjxp9weI9AkTiya3bVAo9gVUquM4jXRHSs8pgsRMQgRtKItlriA==}
dependencies:
'@expressive-code/core': 0.31.0
'@expressive-code/plugin-frames': 0.31.0
'@expressive-code/plugin-shiki': 0.31.0
'@expressive-code/plugin-text-markers': 0.31.0
'@expressive-code/core': 0.32.2
'@expressive-code/plugin-frames': 0.32.2
'@expressive-code/plugin-shiki': 0.32.2
'@expressive-code/plugin-text-markers': 0.32.2
dev: false
/extend-shallow@2.0.1:
@ -6287,10 +6288,10 @@ packages:
- supports-color
dev: false
/remark-expressive-code@0.31.0:
resolution: {integrity: sha512-ZnKXo9lB0kBUHZIlw2NdqMMgXriVVajEhtQfJ+MWeibMpyM1kuOa28jefNfNFd3FAoNPrc/A3M0fDRkYvWw9Gw==}
/remark-expressive-code@0.32.2:
resolution: {integrity: sha512-UnCUlu+Q2FO8glmtlEnjIN6V8IKfbGlYLSTDokbd9VCZHkI0+FeHcCc/5WpzGY2CSSPL02AC5rHUfvAZV7tZzQ==}
dependencies:
expressive-code: 0.31.0
expressive-code: 0.32.2
hast-util-to-html: 8.0.4
unist-util-visit: 4.1.2
dev: false

View File

@ -11,7 +11,7 @@
},
"dependencies": {
"@astrojs/check": "^0.4.1",
"@astrojs/starlight": "^0.16.0",
"@astrojs/starlight": "^0.17.0",
"astro": "^4.2.4",
"astro-font": "^0.0.77",
"sass": "^1.69.5",

View File

@ -3,4 +3,5 @@ npx @matthiesenxyz/create-astro-ghostcms
# Want to pass arguments through to the command? YOU CAN!
# `--install` : Sets Install Dependencies to 'true'
# `--git` : Initiates git Repo
# `--pkg-manager` : Specify your Package manager(i.e. npm, yarn | DEFAULT: pnpm)
# `--pkg-manager` : Specify your Package manager
# ( i.e. `npm`, `yarn` | DEFAULT: `pnpm` )

View File

@ -1,14 +1,15 @@
---
import { Code } from "astro:components"
import { Code } from '@astrojs/starlight/components';
import quickstart from "../assets/quickstart.sh?raw"
const highlights = ['npm', 'yarn', 'pnpm', 2];
---
<div class="quickstart">
<Code
title='Astro-GhostCMS Quickstart'
lang={'sh'}
class='quickstart'
code={quickstart}
mark={highlights}
/>
<center>
<div class="qstart"> /|\ Astro-GhostCMS Quickstart /|\ </div>
</center>
<Code lang={'sh'} code={quickstart}/>
</div>

View File

@ -67,7 +67,7 @@ code {
background-color: #ffffff;
padding-left: 0.5rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
padding-bottom: 1rem;
padding-right: 0.5rem;
@media (prefers-color-scheme: dark) {
color: rgb(170, 170, 170);