From 4ce1cb39aa6e493147525504994872a2696ef5dd Mon Sep 17 00:00:00 2001 From: bingling-sama Date: Sat, 27 Jul 2024 20:48:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=88=20style:=20format=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/config.ts | 8 ++++---- .vitepress/theme/index.ts | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.vitepress/config.ts b/.vitepress/config.ts index d99f35d..db4c3ad 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -298,11 +298,11 @@ export default withPwa( }, lineNumbers: true, config: (md) => { - md.use( - () => BiDirectionalLinks({ + md.use(() => + BiDirectionalLinks({ dir: "docs", - baseDir: "/" - }) + baseDir: "/", + }), ), md.use(() => InlineLinkPreviewElementTransform) }, diff --git a/.vitepress/theme/index.ts b/.vitepress/theme/index.ts index cc42464..893b6ee 100644 --- a/.vitepress/theme/index.ts +++ b/.vitepress/theme/index.ts @@ -14,6 +14,7 @@ import Contributors from "./components/Contributors.vue" import giscusTalk from "vitepress-plugin-comment-with-giscus" import vitepressNprogress from "@andatoshiki/vitepress-plugin-nprogress" import imageViewer from "vitepress-plugin-image-viewer" +// TODO: edit this after https://github.com/T-miracle/vitepress-plugin-image-viewer/issues/4 is fixed import vImageViewer from "vitepress-plugin-image-viewer/lib/vImageViewer.vue" import codeblocksFold from "vitepress-plugin-codeblocks-fold" // import method import vitepressBackToTop from "vitepress-plugin-back-to-top" @@ -32,9 +33,9 @@ import "@andatoshiki/vitepress-plugin-nprogress/lib/css/index.css" import "viewerjs/dist/viewer.min.css" import "@nolebase/vitepress-plugin-enhanced-readabilities/client/style.css" -function generateAvatarUrl(username: string) { - return `https://cdn.crashmc.com/https://github.com/${username}.png` -} +// function generateAvatarUrl(username: string) { +// return `https://cdn.crashmc.com/https://github.com/${username}.png` +// } export default { extends: DefaultTheme,