From 19d7ba49057209c2d5bbbedcc0c5b059776389c0 Mon Sep 17 00:00:00 2001 From: radishzzz Date: Thu, 13 Mar 2025 22:53:31 +0000 Subject: [PATCH] chore: add abbrlink --- astro.config.ts | 3 +++ src/components/Widgets/ThemeToggle.astro | 2 +- src/content/posts/Markdown Style Guide-en.md | 1 + src/content/posts/Markdown Style Guide-zh.md | 1 + src/content/posts/Theme Guide-en.md | 1 + src/content/posts/Theme Guide-zh.md | 1 + 6 files changed, 8 insertions(+), 1 deletion(-) diff --git a/astro.config.ts b/astro.config.ts index 5f21446..34f10ae 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -5,6 +5,7 @@ import { transformerCopyButton } from '@rehype-pretty/transformers' import compress from 'astro-compress' import robotsTxt from 'astro-robots-txt' import { defineConfig } from 'astro/config' + // Rehype plugins import rehypeAutolinkHeadings from 'rehype-autolink-headings' import rehypeComponents from 'rehype-components' @@ -12,6 +13,7 @@ import rehypeExternalLinks from 'rehype-external-links' import rehypeKatex from 'rehype-katex' import rehypePrettyCode from 'rehype-pretty-code' import rehypeSlug from 'rehype-slug' + // Remark plugins import remarkDirective from 'remark-directive' import remarkGithubAdmonitionsToDirectives from 'remark-github-admonitions-to-directives' @@ -19,6 +21,7 @@ import remarkMath from 'remark-math' import remarkSectionize from 'remark-sectionize' import UnoCSS from 'unocss/astro' import { themeConfig } from './src/config.js' + // Local plugins import { AdmonitionComponent } from './src/plugins/rehype-component-admonition.js' import { GithubCardComponent } from './src/plugins/rehype-component-github-card.js' diff --git a/src/components/Widgets/ThemeToggle.astro b/src/components/Widgets/ThemeToggle.astro index 032b659..21f870c 100644 --- a/src/components/Widgets/ThemeToggle.astro +++ b/src/components/Widgets/ThemeToggle.astro @@ -1,7 +1,7 @@