Skip to content

Commit

Permalink
🌈 style: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
bingling-sama committed Jul 27, 2024
1 parent 3c6f751 commit 4ce1cb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ export default withPwa(
},
lineNumbers: true,
config: (md) => {
md.use(
() => BiDirectionalLinks({
md.use(() =>
BiDirectionalLinks({
dir: "docs",
baseDir: "/"
})
baseDir: "/",
}),
),
md.use(() => InlineLinkPreviewElementTransform)
},
Expand Down
7 changes: 4 additions & 3 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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,
Expand Down

0 comments on commit 4ce1cb3

Please sign in to comment.