-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.vuepress/.cache | ||
.vuepress/.temp | ||
node_modules | ||
node_modules | ||
update.bat |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,29 +5,20 @@ import { viteBundler } from '@vuepress/bundler-vite' | |
import { katex } from '@mdit/plugin-katex' | ||
|
||
export default defineUserConfig({ | ||
head: [ | ||
['link', { rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css' }] | ||
], | ||
locales: { | ||
// 键名是该语言所属的子路径 | ||
// 作为特例,默认语言可以使用 '/' 作为其路径。 | ||
'/': { | ||
lang: 'zh-CN', | ||
//首页左上角的文字 | ||
title: 'DUT-TIC', | ||
description: 'Welcome to TIC', | ||
}, | ||
}, | ||
bundler: viteBundler({}), | ||
theme: recoTheme(themeConfig), | ||
// 扩展markdown ---> 显示latex公式 | ||
extendsMarkdown: (md) => { | ||
md.use(katex); | ||
md.linkify.set({ fuzzyEmail: false }); | ||
}, | ||
// markdown: { | ||
// lineNumbers: true, | ||
// anchor: { permalink: false }, | ||
// toc: {includeLevel: [1,2]}, | ||
// extendMarkdown: md => { | ||
// md.use(require('markdown-it-texmath')) | ||
// } | ||
// } | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ export const themeConfig = { | |
|
||
head: [ | ||
// 配置网站的图标(显示在浏览器的 tab 上) | ||
['link', { rel: 'icon', href: '/qq.ico' }], | ||
['link', { rel: 'icon', href: '/favicon.ico' }], | ||
// 扩展markdown ---> 显示latex公式 | ||
['link', {rel:'stylesheet', href:'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css'}], | ||
['link', {rel:'stylesheet', href:'https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js'}], | ||
|
@@ -36,11 +36,11 @@ export const themeConfig = { | |
|
||
// 根据blog文件中md的categories自动生成分类和标签 | ||
autoSetBlogCategories: true, | ||
autoAddCategoryToNavbar: { | ||
location: 5, // 默认 0 | ||
categoryText: '务虚笔记', // 默认 categories | ||
tagText: '标签' // 默认 tags | ||
}, | ||
// autoAddCategoryToNavbar: { | ||
// location: 5, // 默认 0 | ||
// categoryText: '务虚笔记', // 默认 categories | ||
// tagText: '标签' // 默认 tags | ||
// }, | ||
|
||
base: "/TIC/", | ||
} |
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.