diff --git a/config/index.d.ts b/config/index.d.ts deleted file mode 100644 index 9e2bba08..00000000 --- a/config/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export const coreConfig: ({ - dtsBanner, -}: - | { - dtsBanner?: string; - } - | undefined) => ReturnType; diff --git a/config/package.json b/config/package.json deleted file mode 100644 index 6173545e..00000000 --- a/config/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "@neodrag/tsup-config", - "version": "1.0.0", - "main": "index.js", - "type": "module", - "exports": { - ".": { - "import": "./index.js", - "types": "./index.d.ts" - } - } -} diff --git a/docs/astro.config.ts b/docs/astro.config.ts index a6032634..63b20708 100644 --- a/docs/astro.config.ts +++ b/docs/astro.config.ts @@ -1,7 +1,6 @@ // @ts-check import mdx from '@astrojs/mdx'; import sitemap from '@astrojs/sitemap'; -import prefetch from '@astrojs/prefetch'; import svelte from '@astrojs/svelte'; import serviceWorker from 'astrojs-service-worker'; import { rehypeHeadingIds } from '@astrojs/markdown-remark'; @@ -32,7 +31,7 @@ const AnchorLinkIcon = h( fillRule: 'evenodd', fill: 'currentcolor', d: 'M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z', - }) + }), ); // https://astro.build/config @@ -42,7 +41,6 @@ export default defineConfig({ svelte({ preprocess: sequential([autoPreprocess(), fastDimension()]) }), mdx(), sitemap(), - prefetch(), serviceWorker(), // critters(), AutoImport({ @@ -64,8 +62,16 @@ export default defineConfig({ }), ], + prefetch: true, + markdown: { extendDefaultPlugins: true, + shikiConfig: { + experimentalThemes: { + light: 'github-light', + dark: 'github-dark', + }, + }, // @ts-ignore remarkPlugins: [container], rehypePlugins: [ @@ -86,7 +92,7 @@ export default defineConfig({ { ariaHidden: 'true', }, - AnchorLinkIcon + AnchorLinkIcon, ), ], } as Options, diff --git a/docs/package.json b/docs/package.json index 203cb4cc..6ede8a90 100644 --- a/docs/package.json +++ b/docs/package.json @@ -5,51 +5,48 @@ "private": true, "scripts": { "dev": "astro dev", - "start": "astro dev", "build": "astro build", "preview": "astro preview", "astro": "astro" }, "dependencies": { - "@fontsource/jetbrains-mono": "^4.5.12", - "@fontsource/plus-jakarta-sans": "^4.5.11", + "@fontsource/jetbrains-mono": "^5.0.18", + "@fontsource/plus-jakarta-sans": "^5.0.18", "@neodrag/svelte": "workspace:*", - "astro-seo": "^0.7.1", - "open-props": "^1.5.3", + "astro-seo": "^0.8.0", + "open-props": "^1.6.16", "popmotion": "^11.0.5", - "slugify": "^1.6.5", - "svelte-body": "^1.3.6", - "svelte-copy": "^1.3.0", - "svelte-inview": "^3.0.2", - "svelte-local-storage-store": "^0.4.0", + "slugify": "^1.6.6", + "svelte-body": "^1.4.0", + "svelte-copy": "^1.4.1", + "svelte-inview": "^4.0.1", + "svelte-local-storage-store": "^0.6.4", "throttle-debounce": "^5.0.0" }, "devDependencies": { - "@astrojs/mdx": "^0.17.0", - "@astrojs/prefetch": "^0.1.2", - "@astrojs/sitemap": "^1.0.1", - "@astrojs/svelte": "^2.0.2", - "@iconify/json": "^2.2.25", - "@types/throttle-debounce": "^5.0.0", - "astro": "^2.0.14", - "astrojs-service-worker": "^0.0.9", - "autoprefixer": "^10.4.13", - "hast-util-to-string": "^2.0.0", - "hastscript": "^7.2.0", - "postcss": "^8.4.21", - "postcss-jit-props": "^1.0.11", - "prettier": "^2.8.4", - "prettier-plugin-astro": "^0.8.0", - "rehype-autolink-headings": "^6.1.1", + "@astrojs/mdx": "^2.0.1", + "@astrojs/sitemap": "^3.0.3", + "@astrojs/svelte": "^5.0.1", + "@iconify/json": "^2.2.159", + "@types/throttle-debounce": "^5.0.2", + "astro": "^4.0.6", + "astrojs-service-worker": "^2.0.0", + "autoprefixer": "^10.4.16", + "hast-util-to-string": "^3.0.0", + "hastscript": "^8.0.0", + "postcss": "^8.4.32", + "postcss-jit-props": "^1.0.14", + "prettier": "^3.1.1", + "prettier-plugin-astro": "^0.12.2", + "rehype-autolink-headings": "^7.1.0", "remark-custom-container": "^1.2.0", - "rollup": "^3.17.2", - "sass": "^1.58.3", - "svelte": "^3.55.1", - "svelte-fast-dimension": "^0.0.3", - "svelte-sequential-preprocessor": "^0.0.7", - "typescript": "^4.9.5", - "unplugin-auto-import": "^0.14.3", - "unplugin-icons": "^0.15.3", - "vite": "^4.1.3" + "sass": "^1.69.5", + "svelte": "^4.2.8", + "svelte-fast-dimension": "^1.1.0", + "svelte-sequential-preprocessor": "^2.0.1", + "typescript": "^5.3.3", + "unplugin-auto-import": "^0.17.2", + "unplugin-icons": "^0.18.1", + "vite": "^5.0.10" } } diff --git a/docs/src/auto-imports.d.ts b/docs/src/auto-imports.d.ts index e6f9d245..44087c62 100644 --- a/docs/src/auto-imports.d.ts +++ b/docs/src/auto-imports.d.ts @@ -1,10 +1,11 @@ /* eslint-disable */ /* prettier-ignore */ // @ts-nocheck +// noinspection JSUnusedGlobalSymbols // Generated by unplugin-auto-import export {} declare global { - const Code: typeof import('$components/options/OptionsCode.astro')['default'] - const Example: typeof import('$components/options/OptionsExample.astro')['default'] - const Examples: typeof import('$components/options/OptionsExamples.svelte')['default'] + const Code: typeof import('$components/options/OptionsCode')['default'] + const Example: typeof import('$components/options/OptionsExample')['default'] + const Examples: typeof import('$components/options/OptionsExamples')['default'] } diff --git a/docs/src/components/PawCursor.svelte b/docs/src/components/PawCursor.svelte index bae646ec..2a09b37a 100644 --- a/docs/src/components/PawCursor.svelte +++ b/docs/src/components/PawCursor.svelte @@ -1,5 +1,5 @@ @@ -64,7 +64,7 @@ - +