mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-15 11:12:54 +02:00
chore: remove unused dependencies
This commit is contained in:
parent
830c330b3a
commit
ec2b4e9ec2
3 changed files with 14 additions and 193 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue