File tree 5 files changed +407
-140
lines changed
5 files changed +407
-140
lines changed Original file line number Diff line number Diff line change 42
42
${{ runner.os }}-pnpm-store-
43
43
- name : Install dependencies
44
44
run : pnpm install
45
- - name : Fetch plugins data
46
- run : node scripts/fetchPlugins.js
45
+ - name : Run scripts
46
+ run : |
47
+ node scripts/fetchPlugins.js
48
+ node scripts/fetchStars.js
49
+ node scripts/contributor.js
50
+
47
51
- name : build
48
52
run : pnpm run build
49
53
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import clsx from 'clsx';
5
5
import Translate from '@docusaurus/Translate' ;
6
6
import Icon from '@site/src/components/Icon' ;
7
7
import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
8
-
8
+ import data from '@site/static/data/stars.json' ;
9
9
import styles from './index.module.css' ;
10
10
11
11
const list = [
@@ -131,7 +131,7 @@ const HomeHead: FC = () => {
131
131
>
132
132
< Icon name = "github" size = "24px" className = "me-2" />
133
133
{ ` Star ` }
134
- 14k
134
+ { numWord ( data . stars ) }
135
135
</ Button >
136
136
</ div >
137
137
</ Col >
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Layout from '@theme/Layout';
6
6
7
7
import HeaderSlogan from '../components/HeaderSlogan' ;
8
8
9
- import pluginList from '../.. /static/data/plugin.json' ;
9
+ import pluginList from '@site /static/data/plugin.json' ;
10
10
11
11
12
12
export default function Plugins ( ) : JSX . Element {
Original file line number Diff line number Diff line change
1
+ {
2
+ "stars" : 13962
3
+ }
You can’t perform that action at this time.
0 commit comments