File tree Expand file tree Collapse file tree 5 files changed +15
-18
lines changed
de-DE/docusaurus-theme-classic
en/docusaurus-theme-classic
pt-BR/docusaurus-theme-classic
zh-CN/docusaurus-theme-classic Expand file tree Collapse file tree 5 files changed +15
-18
lines changed Original file line number Diff line number Diff line change
1
+ import { execSync } from 'child_process' ;
2
+
3
+ function getCommitSha ( ) {
4
+ try {
5
+ return execSync ( 'git rev-parse --short HEAD' ) . toString ( ) . trim ( ) ;
6
+ } catch ( e ) {
7
+ return 'unknown' ;
8
+ }
9
+ }
10
+
1
11
module . exports = {
2
12
title : 'Wokwi Docs' ,
3
13
tagline : 'Online Arduino & Electronics Simulator' ,
@@ -94,13 +104,16 @@ module.exports = {
94
104
] ,
95
105
} ,
96
106
] ,
97
- copyright : `Copyright © ${ new Date ( ) . getFullYear ( ) } CodeMagic LTD. Built with Docusaurus.` ,
107
+ copyright : `
108
+ Copyright © 2021-${ new Date ( ) . getFullYear ( ) } CodeMagic LTD.
109
+ <small>Built with Docusaurus at ${ new Date ( ) . toISOString ( ) } , commit sha ${ getCommitSha ( ) } .</small>
110
+ ` ,
98
111
} ,
99
112
algolia : {
100
113
appId : 'VNOAE1ADJ6' ,
101
114
apiKey : 'cf8c02a00fa23ba42725ac0fc3a10a3d' ,
102
115
indexName : 'wokwi' ,
103
- } ,
116
+ } ,
104
117
prism : {
105
118
additionalLanguages : [ 'rust' ] ,
106
119
} ,
Original file line number Diff line number Diff line change 34
34
"link.item.label.GitHub" : {
35
35
"message" : " GitHub" ,
36
36
"description" : " The label of footer link with label=GitHub linking to https://github.com/wokwi/wokwi-docs"
37
- },
38
- "copyright" : {
39
- "message" : " Copyright © 2021-2023 CodeMagic LTD. Erstellt mit Docusaurus." ,
40
- "description" : " The footer copyright"
41
37
}
42
38
}
Original file line number Diff line number Diff line change 34
34
"link.item.label.GitHub" : {
35
35
"message" : " GitHub" ,
36
36
"description" : " The label of footer link with label=GitHub linking to https://github.com/wokwi/wokwi-docs"
37
- },
38
- "copyright" : {
39
- "message" : " Copyright © 2021-2023 CodeMagic LTD. Built with Docusaurus." ,
40
- "description" : " The footer copyright"
41
37
}
42
38
}
Original file line number Diff line number Diff line change 34
34
"link.item.label.GitHub" : {
35
35
"message" : " GitHub" ,
36
36
"description" : " O rótulo do link do rodapé com rótulo=GitHub com link para https://github.com/wokwi/wokwi-docs"
37
- },
38
- "copyright" : {
39
- "message" : " Copyright © 2021-2023 CodeMagic LTD. Construído com Docusaurus." ,
40
- "description" : " Os direitos autorais do rodapé"
41
37
}
42
38
}
Original file line number Diff line number Diff line change 34
34
"link.item.label.GitHub" : {
35
35
"message" : " GitHub" ,
36
36
"description" : " The label of footer link with label=GitHub linking to https://github.com/wokwi/wokwi-docs"
37
- },
38
- "copyright" : {
39
- "message" : " Copyright © 2021 CodeMagic LTD. Built with Docusaurus." ,
40
- "description" : " The footer copyright"
41
37
}
42
38
}
You can’t perform that action at this time.
0 commit comments