Skip to content

Commit

Permalink
fix what I broke
Browse files Browse the repository at this point in the history
  • Loading branch information
holyspiritomb committed Feb 23, 2025
1 parent 5f3fba0 commit 68b21f4
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 28 deletions.
9 changes: 5 additions & 4 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default defineConfig({
lang: "en-US",
lastUpdated: true,
appearance: "dark",
srcDir: "./",
outDir: distDir,
srcExclude: ["**/README.md", "**/LICENSE.md"],
markdown: {
Expand Down Expand Up @@ -65,7 +66,7 @@ export default defineConfig({
externalLinkIcon: true,
editLink: {
text: "Edit",
pattern: "https://github.com/holyspiritomb/autpunk.space/edit/main/src/:path",
pattern: "https://github.com/holyspiritomb/autpunk.space/edit/main/:path",
},
nav: [
{ text: "Home", link: "/" },
Expand Down Expand Up @@ -100,10 +101,10 @@ export default defineConfig({
sidebar: generateSidebar({
capitalizeFirst: true, // {{{
collapsed: true,
// debugPrint: true,
documentRootPath: "/src",
debugPrint: true,
documentRootPath: "./",
excludeFilesByFrontmatterFieldName: "exclude",
excludePattern: ["README", "LICENSE", "vitepress-default", "fragments.md"],
excludePattern: ["README", "LICENSE", "LICENSE.md", "README.md", "vitepress-default", "fragments.md", "dist", "public", "node_modules"],
includeEmptyFolder: false,
// includeFolderIndexFile: true,
includeRootIndexFile: true,
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"@fontsource/zilla-slab": "^5.1.1",
"@infolektuell/noto-color-emoji": "^0.2.0",
"@rose-pine/palette": "^4.0.1",
"@sirenia/markdown-it-label": "^2.0.4",
"@vue/tsconfig": "^0.7.0",
"@vueuse/core": "12.7.0",
"easy-speech": "^2.4.0",
Expand Down Expand Up @@ -39,8 +38,7 @@
"build": "vitepress build",
"lint:config": "eslint .vitepress/config.ts .vitepress/**/*.{ts,js,vue}",
"lint:vue": "eslint .vitepress/theme/components/*.vue .vitepress/**/*.vue",
"lint:pages": "eslint src",
"lint:all": "eslint",
"lint": "eslint",
"preview": "vitepress preview"
},
"packageManager": "[email protected]",
Expand All @@ -49,6 +47,7 @@
"@eslint/markdown": "^6.2.1",
"@iconify-json/carbon": "^1.2.7",
"@iconify-json/devicon": "^1.2.16",
"@iconify-json/mdi": "^1.2.3",
"@stylistic/eslint-plugin": "^3.0.1",
"@types/eslint": "^9.6.1",
"@types/eslint-plugin-markdown": "^2.0.2",
Expand Down
2 changes: 1 addition & 1 deletion projects/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Sometimes I do things.

[Available Reads](forks/available-reads) <Badge type="info">webextension</Badge>

[pyXyzzy](forks/pyxyzzy) <Badge type="info">game</Badge> <i-devicon-react />
[pyXyzzy](forks/pyxyzzy) <Badge type="info">game</Badge>

## Original <Badge type="warning">under construction</Badge>
5 changes: 5 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"vitepress-default/**/*.md",
"components.d.ts"
],
"compilerOptions": {
"types": [
"unplugin-icons/types/vue"
]
},
"vueCompilerOptions": {
"vitePressExtensions": [
".md"
Expand Down
7 changes: 0 additions & 7 deletions uno.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import {
defineConfig,
presetAttributify,
presetIcons,
transformerDirectives,
transformerVariantGroup,
} from "unocss";
import presetTagify from "@unocss/preset-tagify";
import presetWind from "@unocss/preset-wind3";
import { presetCatppuccin } from "unocss-catppuccin";

Expand All @@ -17,11 +15,6 @@ export default defineConfig({
prefix: false,
}),
presetAttributify(),
presetTagify(),
presetIcons({
scale: 1.2,
warn: true,
}),
],
shortcuts: {
"btn": "rounded-full shadow-md py-2 px-4 bg-pink-200 dark:bg-pink-500 font-bold border-pink outline-pink outline-1 shadow-pink-500/50 m-[0.5rem] h-[3rem] focus:shadow-pink-500 active:shadow-lg border-1 p-3",
Expand Down
4 changes: 1 addition & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { NodePackageImporter } from "sass-embedded";
import svgLoader from "vite-svg-loader";
import type { PluginOption } from "vite";
import type { LogsOutput } from "vite-plugin-terminal";
import tsConfigPaths from "vite-tsconfig-paths";

// if (process.env.NODE_ENV === "development") {
// console.debug("Vite env:\n", process.env);
Expand All @@ -23,10 +22,10 @@ const terminalOutputOpts: LogsOutput = process.env.NODE_ENV === "development" ?

const vitePlugins: PluginOption = [
...devOnlyPlugins,
tsConfigPaths(),
UnoCSS(),
groupIconVitePlugin(),
svgLoader(),
Icons(),
Components({
dirs: [".vitepress/theme/components"],
extensions: ["vue", "md"],
Expand All @@ -37,7 +36,6 @@ const vitePlugins: PluginOption = [
IconsResolver(),
],
}),
Icons(),
Terminal({
console: "terminal",
output: terminalOutputOpts,
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,15 @@ __metadata:
languageName: node
linkType: hard

"@iconify-json/mdi@npm:^1.2.3":
version: 1.2.3
resolution: "@iconify-json/mdi@npm:1.2.3"
dependencies:
"@iconify/types": "npm:*"
checksum: 10c0/4d11426abba03464e5ebe4675c87cc39c720e54b7c28265ff9ccd93f229a51f7616bb0a8f1c01412eac3cc9a1ebdc0a122bbaa3395c14d30834d96f8a141e96d
languageName: node
linkType: hard

"@iconify-json/simple-icons@npm:^1.2.21":
version: 1.2.24
resolution: "@iconify-json/simple-icons@npm:1.2.24"
Expand Down Expand Up @@ -1410,15 +1419,6 @@ __metadata:
languageName: node
linkType: hard

"@sirenia/markdown-it-label@npm:^2.0.4":
version: 2.0.4
resolution: "@sirenia/markdown-it-label@npm:2.0.4"
peerDependencies:
markdown-it: ">=5"
checksum: 10c0/3084aa3081d08a5a132890491d3113333c90a0a8d4a31a405a734dd482568117c23faf9c298e673ae21fcef4d87248fe9811fcf4f2bee1110ed76aa341aa9b3a
languageName: node
linkType: hard

"@stylistic/eslint-plugin@npm:^3.0.1":
version: 3.1.0
resolution: "@stylistic/eslint-plugin@npm:3.1.0"
Expand Down Expand Up @@ -2595,9 +2595,9 @@ __metadata:
"@fontsource/zilla-slab": "npm:^5.1.1"
"@iconify-json/carbon": "npm:^1.2.7"
"@iconify-json/devicon": "npm:^1.2.16"
"@iconify-json/mdi": "npm:^1.2.3"
"@infolektuell/noto-color-emoji": "npm:^0.2.0"
"@rose-pine/palette": "npm:^4.0.1"
"@sirenia/markdown-it-label": "npm:^2.0.4"
"@stylistic/eslint-plugin": "npm:^3.0.1"
"@types/eslint": "npm:^9.6.1"
"@types/eslint-plugin-markdown": "npm:^2.0.2"
Expand Down

0 comments on commit 68b21f4

Please sign in to comment.