Skip to content

Commit aa87b28

Browse files
committed
style: fix indentation and remove debug logs
1 parent e18b4ed commit aa87b28

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

docs/.vitepress/plugins/applyFooterLinkPlugin.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ export function applyFooterLinkPlugin(): Plugin {
2121
enforce: 'pre', // 确保在默认插件前执行
2222

2323
load(id) {
24-
console.log("id", id);
25-
2624
if (!id.endsWith('.md')) return
2725

2826
const rawContent = fs.readFileSync(id, 'utf-8')
@@ -31,8 +29,6 @@ export function applyFooterLinkPlugin(): Plugin {
3129
const { data: frontmatter } = matter(rawContent)
3230
const mapPath = id.replace(process.cwd() + '/docs', '')
3331

34-
console.log("frontmatter", frontmatter);
35-
3632
if (!frontmatter?.map?.path || frontmatter?.source?.show === false) {
3733
return
3834
}

packages/vitepress/vitepress-demo-block/src/Demo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
v-html="decodedHighlightedCode"
6767
:class="`language-${lang} extra-class`"
6868
></div></article
69-
></ClientOnly>
69+
></ClientOnly>
7070
</template>
7171

7272
<style src="./demo.less"></style>

0 commit comments

Comments
 (0)