File tree 5 files changed +172
-205
lines changed
5 files changed +172
-205
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <Layout >
3
+ <template #doc-footer-before >
4
+ <div
5
+ style ="
6
+ margin-top : 40px ;
7
+ padding : 2em 0 ;
8
+ text-align : center ;
9
+ border-top : 1px solid #e2e2e2 ;
10
+ "
11
+ >
12
+ <table style =" margin : 0 auto " >
13
+ <tbody >
14
+ <tr >
15
+ <td align =" center" style =" width : 260px " >
16
+ <img
17
+ src =" https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/images/qrcode-for-doocs.png"
18
+ style =" width : 200px "
19
+ /><br />
20
+ </td >
21
+ <td align =" center" style =" width : 260px " >
22
+ <img
23
+ src =" https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/images/qrcode-for-yanglbme.png"
24
+ style =" width : 200px "
25
+ /><br />
26
+ </td >
27
+ </tr >
28
+ </tbody >
29
+ </table >
30
+ </div >
31
+ </template >
32
+ </Layout >
33
+ </template >
34
+
35
+ <script setup>
36
+ import DefaultTheme from ' vitepress/theme' ;
37
+ const { Layout } = DefaultTheme;
38
+ </script >
Original file line number Diff line number Diff line change
1
+ import DefaultTheme from "vitepress/theme" ;
2
+ import giscusTalk from "vitepress-plugin-comment-with-giscus" ;
3
+ import { useData , useRoute } from "vitepress" ;
4
+ import { toRefs } from "vue" ;
5
+ import Layout from "./Layout.vue" ;
6
+
7
+ export default {
8
+ extends : DefaultTheme ,
9
+ Layout : Layout ,
10
+ enhanceApp ( ctx ) {
11
+ DefaultTheme . enhanceApp ( ctx ) ;
12
+ } ,
13
+ setup ( ) {
14
+ const { frontmatter } = toRefs ( useData ( ) ) ;
15
+ const route = useRoute ( ) ;
16
+
17
+ giscusTalk (
18
+ {
19
+ repo : "doocs/source-code-hunter" ,
20
+ category : "Announcements" ,
21
+ categoryId : "DIC_kwDODP2NQc4CpG9T" ,
22
+ repoId : "MDEwOlJlcG9zaXRvcnkyMTc5NDMzNjE=" ,
23
+ mapping : "pathname" ,
24
+ inputPosition : "top" ,
25
+ lang : "zh-CN" ,
26
+ homePageShowComment : true ,
27
+ term : "9" ,
28
+ strict : "0" ,
29
+ reactionsEnabled : "1" ,
30
+ loading : "lazy" ,
31
+ lightTheme : "light" ,
32
+ darkTheme : "transparent_dark" ,
33
+ } ,
34
+ {
35
+ frontmatter,
36
+ route,
37
+ } ,
38
+ true
39
+ ) ;
40
+ } ,
41
+ } ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments