chore: remove unused dependencies

This commit is contained in:
radishzzz 2025-03-19 22:52:53 +00:00
parent 830c330b3a
commit ec2b4e9ec2
3 changed files with 14 additions and 193 deletions

View file

@ -1,24 +1,13 @@
// Astro integrations
import mdx from '@astrojs/mdx'
import partytown from '@astrojs/partytown'
import sitemap from '@astrojs/sitemap'
import compress from 'astro-compress'
import robotsTxt from 'astro-robots-txt'
// Rehype plugins (HTML processors)
import { defineConfig } from 'astro/config'
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
import rehypeExternalLinks from 'rehype-external-links'
import rehypeKatex from 'rehype-katex'
import rehypeSlug from 'rehype-slug'
// Remark plugins (Markdown processors)
import remarkDirective from 'remark-directive'
import remarkGithubAdmonitionsToDirectives from 'remark-github-admonitions-to-directives'
import remarkMath from 'remark-math'
import remarkSectionize from 'remark-sectionize'
// Project configuration and utilities
import UnoCSS from 'unocss/astro'
import { themeConfig } from './src/config'
import { langMap } from './src/i18n/config'
@ -65,13 +54,10 @@ export default defineConfig({
markdown: {
remarkPlugins: [
remarkMath,
remarkDirective,
remarkGithubAdmonitionsToDirectives,
remarkSectionize,
remarkReadingTime,
],
rehypePlugins: [
rehypeSlug,
rehypeKatex,
[
rehypeExternalLinks,
@ -81,30 +67,6 @@ export default defineConfig({
protocols: ['http', 'https', 'mailto'],
},
],
[
rehypeAutolinkHeadings,
{
behavior: 'append',
properties: {
className: ['anchor'],
},
content: {
type: 'element',
tagName: 'span',
properties: {
'className': ['anchor-icon'],
'data-pagefind-ignore': true,
},
// TODO: Switch # to icon
children: [
{
type: 'text',
value: '#',
},
],
},
},
],
],
},
devToolbar: {

View file

@ -3,16 +3,14 @@
"type": "module",
"version": "0.0.1",
"packageManager": "pnpm@10.6.4",
"repository": "https://github.com/radishzzz/astro-theme-retypeset",
"scripts": {
"dev": "astro check && astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "eslint . --fix",
"typecheck": "astro check && tsc --noEmit",
"prepare": "git init && npx husky install"
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@astrojs/mdx": "^4.2.1",
@ -27,17 +25,11 @@
"markdown-it": "^14.1.0",
"overlayscrollbars": "^2.11.1",
"photoswipe": "^5.4.4",
"rehype-autolink-headings": "^7.1.0",
"rehype-external-links": "^3.0.0",
"rehype-katex": "^7.0.1",
"rehype-slug": "^6.0.0",
"remark-directive": "^4.0.0",
"remark-github-admonitions-to-directives": "^2.1.0",
"remark-math": "^6.0.0",
"remark-sectionize": "^2.1.0",
"sanitize-html": "^2.15.0",
"sharp": "^0.33.5",
"typescript": "~5.8.2"
"sanitize-html": "^2.15.0"
},
"devDependencies": {
"@antfu/eslint-config": "^4.10.1",
@ -55,6 +47,8 @@
"lint-staged": "^15.5.0",
"mdast-util-to-string": "^4.0.0",
"reading-time": "^1.5.0",
"sharp": "^0.33.5",
"typescript": "~5.8.2",
"unocss": "66.1.0-beta.6",
"unocss-preset-theme": "^0.14.1"
},

153
pnpm-lock.yaml generated
View file

@ -8,9 +8,6 @@ importers:
.:
dependencies:
'@astrojs/check':
specifier: ^0.9.4
version: 0.9.4(typescript@5.8.2)
'@astrojs/mdx':
specifier: ^4.2.1
version: 4.2.1(astro@5.5.3(@types/node@22.13.10)(jiti@2.4.2)(lightningcss@1.28.2)(rollup@4.36.0)(terser@5.37.0)(typescript@5.8.2)(yaml@2.7.0))
@ -23,9 +20,6 @@ importers:
'@astrojs/sitemap':
specifier: ^3.3.0
version: 3.3.0
'@rehype-pretty/transformers':
specifier: ^0.13.2
version: 0.13.2
astro:
specifier: ^5.5.3
version: 5.5.3(@types/node@22.13.10)(jiti@2.4.2)(lightningcss@1.28.2)(rollup@4.36.0)(terser@5.37.0)(typescript@5.8.2)(yaml@2.7.0)
@ -41,9 +35,6 @@ importers:
canvaskit-wasm:
specifier: ^0.39.1
version: 0.39.1
hastscript:
specifier: ^9.0.1
version: 9.0.1
markdown-it:
specifier: ^14.1.0
version: 14.1.0
@ -56,27 +47,12 @@ importers:
rehype-autolink-headings:
specifier: ^7.1.0
version: 7.1.0
rehype-components:
specifier: ^0.3.0
version: 0.3.0
rehype-external-links:
specifier: ^3.0.0
version: 3.0.0
rehype-katex:
specifier: ^7.0.1
version: 7.0.1
rehype-pretty-code:
specifier: ^0.14.1
version: 0.14.1(shiki@3.2.1)
rehype-slug:
specifier: ^6.0.0
version: 6.0.0
remark-directive:
specifier: ^4.0.0
version: 4.0.0
remark-github-admonitions-to-directives:
specifier: ^2.1.0
version: 2.1.0
remark-math:
specifier: ^6.0.0
version: 6.0.0
@ -86,25 +62,16 @@ importers:
sanitize-html:
specifier: ^2.15.0
version: 2.15.0
sharp:
specifier: ^0.33.5
version: 0.33.5
typescript:
specifier: ~5.8.2
version: 5.8.2
unist-util-visit:
specifier: ^5.0.0
version: 5.0.0
devDependencies:
'@antfu/eslint-config':
specifier: ^4.10.1
version: 4.10.1(@typescript-eslint/utils@8.26.1(eslint@9.22.0(jiti@2.4.2))(typescript@5.8.2))(@unocss/eslint-plugin@66.1.0-beta.6(eslint@9.22.0(jiti@2.4.2))(typescript@5.8.2))(@vue/compiler-sfc@3.5.13)(astro-eslint-parser@1.2.1)(eslint-plugin-astro@1.3.1(eslint@9.22.0(jiti@2.4.2)))(eslint@9.22.0(jiti@2.4.2))(typescript@5.8.2)
'@astrojs/check':
specifier: ^0.9.4
version: 0.9.4(typescript@5.8.2)
'@types/markdown-it':
specifier: ^14.1.2
version: 14.1.2
'@types/mdast':
specifier: ^4.0.4
version: 4.0.4
'@types/node':
specifier: ^22.13.10
version: 22.13.10
@ -141,6 +108,12 @@ importers:
reading-time:
specifier: ^1.5.0
version: 1.5.0
sharp:
specifier: ^0.33.5
version: 0.33.5
typescript:
specifier: ~5.8.2
version: 5.8.2
unocss:
specifier: 66.1.0-beta.6
version: 66.1.0-beta.6(postcss@8.5.3)(vite@6.2.2(@types/node@22.13.10)(jiti@2.4.2)(lightningcss@1.28.2)(terser@5.37.0)(yaml@2.7.0))(vue@3.5.13(typescript@5.8.2))
@ -727,10 +700,6 @@ packages:
engines: {node: '>=18.0.0'}
hasBin: true
'@rehype-pretty/transformers@0.13.2':
resolution: {integrity: sha512-p2ciQSwqy5Ip8aNUa9q6rdS/hJZXrxHYYfDVOHvKOsBu3t9HDmQ65YX6r9Qbl19vi160OAxmGF7MIoCRDJrRhg==}
engines: {node: '>=18'}
'@rollup/pluginutils@5.1.4':
resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==}
engines: {node: '>=14.0.0'}
@ -2145,9 +2114,6 @@ packages:
hast-util-to-parse5@8.0.0:
resolution: {integrity: sha512-3KKrV5ZVI8if87DVSi1vDeByYrkGzg4mEfeu4alwgmmIeARiBLKCZS2uw5Gb6nU9x9Yufyj3iudm6i7nl52PFw==}
hast-util-to-string@3.0.1:
resolution: {integrity: sha512-XelQVTDWvqcl3axRfI0xSeoVKzyIFPwsAGSLIsKdJKQMXDYJS4WYrBNF/8J7RdhIcFI2BOHgAifggsvsxp/3+A==}
hast-util-to-text@4.0.2:
resolution: {integrity: sha512-KK6y/BN8lbaq654j7JgBydev7wuNMcID54lkRav1P0CaE1e47P72AWWPiGKXTJU271ooYzcvTAn/Zt0REnvc7A==}
@ -2501,9 +2467,6 @@ packages:
mdast-util-definitions@6.0.0:
resolution: {integrity: sha512-scTllyX6pnYNZH/AIp/0ePz6s4cZtARxImwoPJ7kS42n+MnVsI4XbnG6d4ibehRIldYMWM2LD7ImQblVhUejVQ==}
mdast-util-directive@3.1.0:
resolution: {integrity: sha512-I3fNFt+DHmpWCYAT7quoM6lHf9wuqtI+oCOfvILnoicNIqjh5E3dEJWiXuYME2gNe8vl1iMQwyUHa7bgFmak6Q==}
mdast-util-find-and-replace@3.0.2:
resolution: {integrity: sha512-Tmd1Vg/m3Xz43afeNxDIhWRtFZgM2VLyaf4vSTYwudTyeuTneoL3qtWMA5jeLyz/O1vDJmmV4QuScFCA2tBPwg==}
@ -2577,9 +2540,6 @@ packages:
micromark-core-commonmark@2.0.3:
resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==}
micromark-extension-directive@4.0.0:
resolution: {integrity: sha512-/C2nqVmXXmiseSSuCdItCMho7ybwwop6RrrRPk0KbOHW21JKoCldC+8rFOaundDoRBUWBnJJcxeA/Kvi34WQXg==}
micromark-extension-gfm-autolink-literal@2.1.0:
resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==}
@ -2842,9 +2802,6 @@ packages:
parse-latin@7.0.0:
resolution: {integrity: sha512-mhHgobPPua5kZ98EF4HWiH167JWBfl4pvAIXXdbaVohtK7a6YBOy56kvhCqduqyo/f3yrHFWmqmiMg/BkBkYYQ==}
parse-numeric-range@1.3.0:
resolution: {integrity: sha512-twN+njEipszzlMJd4ONUYgSfZPDxgHhT9Ahed5uTigpQn90FggW4SA/AIPq/6a149fTbE9qBEcSwE3FAEp6wQQ==}
parse-srcset@1.0.2:
resolution: {integrity: sha512-/2qh0lav6CmI15FzA3i/2Bzk2zCgQhGMkvhOhKNcBVQ1ldgpbfiNTVslmooUmWJcADi1f1kIeynbDRVzNlfR6Q==}
@ -3025,9 +2982,6 @@ packages:
rehype-autolink-headings@7.1.0:
resolution: {integrity: sha512-rItO/pSdvnvsP4QRB1pmPiNHUskikqtPojZKJPPPAVx9Hj8i8TwMBhofrrAYRhYOOBZH9tgmG5lPqDLuIWPWmw==}
rehype-components@0.3.0:
resolution: {integrity: sha512-yl2bUkZi+sU0gxwVCun7IkjiDLPczSs1SKMKHmjlSLkk4mMryBd/aYba5J8suhJdquBEKSw6ZNxU3MvVQ9xqoQ==}
rehype-external-links@3.0.0:
resolution: {integrity: sha512-yp+e5N9V3C6bwBeAC4n796kc86M4gJCdlVhiMTxIrJG5UHDMh+PJANf9heqORJbt1nrCbDwIlAZKjANIaVBbvw==}
@ -3037,21 +2991,12 @@ packages:
rehype-parse@9.0.1:
resolution: {integrity: sha512-ksCzCD0Fgfh7trPDxr2rSylbwq9iYDkSn8TCDmEJ49ljEUBxDVCzCHv7QNzZOfODanX4+bWQ4WZqLCRWYLfhag==}
rehype-pretty-code@0.14.1:
resolution: {integrity: sha512-IpG4OL0iYlbx78muVldsK86hdfNoht0z63AP7sekQNW2QOTmjxB7RbTO+rhIYNGRljgHxgVZoPwUl6bIC9SbjA==}
engines: {node: '>=18'}
peerDependencies:
shiki: ^1.0.0 || ^2.0.0 || ^3.0.0
rehype-raw@7.0.0:
resolution: {integrity: sha512-/aE8hCfKlQeA8LmyeyQvQF3eBiLRGNlfBJEvWH7ivp9sBqs7TNqBL5X3v157rM4IFETqDnIOO+z5M/biZbo9Ww==}
rehype-recma@1.0.0:
resolution: {integrity: sha512-lqA4rGUf1JmacCNWWZx0Wv1dHqMwxzsDWYMTowuplHF3xH0N/MmrZ/G3BDZnzAkRmxDadujCjaKM2hqYdCBOGw==}
rehype-slug@6.0.0:
resolution: {integrity: sha512-lWyvf/jwu+oS5+hL5eClVd3hNdmwM1kAC0BUvEGD19pajQMIzcNUd/k9GsfQ+FfECvX+JE+e9/btsKH0EjJT6A==}
rehype-stringify@10.0.1:
resolution: {integrity: sha512-k9ecfXHmIPuFVI61B9DeLPN0qFHfawM6RsuX48hoqlaKSF61RskNjSm1lI8PhBEM0MRdLxVVm4WmTqJQccH9mA==}
@ -3062,16 +3007,9 @@ packages:
resolution: {integrity: sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==}
engines: {node: '>= 0.10'}
remark-directive@4.0.0:
resolution: {integrity: sha512-7sxn4RfF1o3izevPV1DheyGDD6X4c9hrGpfdUpm7uC++dqrnJxIZVkk7CoKqcLm0VUMAuOol7Mno3m6g8cfMuA==}
remark-gfm@4.0.1:
resolution: {integrity: sha512-1quofZ2RQ9EWdeN34S79+KExV1764+wCUGop5CPL1WGdD0ocPpu91lzPGbwWMECpEpd42kJGQwzRfyov9j4yNg==}
remark-github-admonitions-to-directives@2.1.0:
resolution: {integrity: sha512-bI3E4Oj1pKY3ym2IQrrVCdORgEu0+mSrWgpCYFNy8QvytfnLs/nAacVPjkWU/JzDMUiQio2k4nTFP7bsIr9TSA==}
engines: {pnpm: '>=9.0.0'}
remark-math@6.0.0:
resolution: {integrity: sha512-MMqgnP74Igy+S3WwnhQ7kqGlEerTETXMvJhrUzDikVZ2/uogJCb+WHUg97hK9/jcfc0dkD73s3LN8zU49cTEtA==}
@ -4444,8 +4382,6 @@ snapshots:
dependencies:
dotenv: 16.4.7
'@rehype-pretty/transformers@0.13.2': {}
'@rollup/pluginutils@5.1.4(rollup@4.36.0)':
dependencies:
'@types/estree': 1.0.6
@ -6274,10 +6210,6 @@ snapshots:
web-namespaces: 2.0.1
zwitch: 2.0.4
hast-util-to-string@3.0.1:
dependencies:
'@types/hast': 3.0.4
hast-util-to-text@4.0.2:
dependencies:
'@types/hast': 3.0.4
@ -6598,20 +6530,6 @@ snapshots:
'@types/unist': 3.0.3
unist-util-visit: 5.0.0
mdast-util-directive@3.1.0:
dependencies:
'@types/mdast': 4.0.4
'@types/unist': 3.0.3
ccount: 2.0.1
devlop: 1.1.0
mdast-util-from-markdown: 2.0.2
mdast-util-to-markdown: 2.1.2
parse-entities: 4.0.2
stringify-entities: 4.0.4
unist-util-visit-parents: 6.0.1
transitivePeerDependencies:
- supports-color
mdast-util-find-and-replace@3.0.2:
dependencies:
'@types/mdast': 4.0.4
@ -6818,16 +6736,6 @@ snapshots:
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.2
micromark-extension-directive@4.0.0:
dependencies:
devlop: 1.1.0
micromark-factory-space: 2.0.1
micromark-factory-whitespace: 2.0.1
micromark-util-character: 2.1.1
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.2
parse-entities: 4.0.2
micromark-extension-gfm-autolink-literal@2.1.0:
dependencies:
micromark-util-character: 2.1.1
@ -7256,8 +7164,6 @@ snapshots:
unist-util-visit-children: 3.0.0
vfile: 6.0.3
parse-numeric-range@1.3.0: {}
parse-srcset@1.0.2: {}
parse5@7.2.1:
@ -7441,11 +7347,6 @@ snapshots:
unified: 11.0.5
unist-util-visit: 5.0.0
rehype-components@0.3.0:
dependencies:
hast-util-is-element: 3.0.0
unist-util-visit: 5.0.0
rehype-external-links@3.0.0:
dependencies:
'@types/hast': 3.0.4
@ -7471,16 +7372,6 @@ snapshots:
hast-util-from-html: 2.0.3
unified: 11.0.5
rehype-pretty-code@0.14.1(shiki@3.2.1):
dependencies:
'@types/hast': 3.0.4
hast-util-to-string: 3.0.1
parse-numeric-range: 1.3.0
rehype-parse: 9.0.1
shiki: 3.2.1
unified: 11.0.5
unist-util-visit: 5.0.0
rehype-raw@7.0.0:
dependencies:
'@types/hast': 3.0.4
@ -7495,14 +7386,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
rehype-slug@6.0.0:
dependencies:
'@types/hast': 3.0.4
github-slugger: 2.0.0
hast-util-heading-rank: 3.0.0
hast-util-to-string: 3.0.1
unist-util-visit: 5.0.0
rehype-stringify@10.0.1:
dependencies:
'@types/hast': 3.0.4
@ -7518,15 +7401,6 @@ snapshots:
relateurl@0.2.7: {}
remark-directive@4.0.0:
dependencies:
'@types/mdast': 4.0.4
mdast-util-directive: 3.1.0
micromark-extension-directive: 4.0.0
unified: 11.0.5
transitivePeerDependencies:
- supports-color
remark-gfm@4.0.1:
dependencies:
'@types/mdast': 4.0.4
@ -7538,15 +7412,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
remark-github-admonitions-to-directives@2.1.0:
dependencies:
'@types/mdast': 4.0.4
mdast-util-directive: 3.1.0
unified: 11.0.5
unist-util-visit: 5.0.0
transitivePeerDependencies:
- supports-color
remark-math@6.0.0:
dependencies:
'@types/mdast': 4.0.4