File tree Expand file tree Collapse file tree 5 files changed +208
-195
lines changed
Expand file tree Collapse file tree 5 files changed +208
-195
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1717 "prepare" : " husky install"
1818 },
1919 "dependencies" : {
20- "@docusaurus/core" : " 2.0.0-beta.3 " ,
21- "@docusaurus/preset-classic" : " 2.0.0-beta.3 " ,
20+ "@docusaurus/core" : " 2.0.0-beta.4 " ,
21+ "@docusaurus/preset-classic" : " 2.0.0-beta.4 " ,
2222 "clsx" : " 1.1.1" ,
2323 "prism-react-renderer" : " 1.2.1" ,
2424 "react" : " 17.0.2" ,
3939 ]
4040 },
4141 "devDependencies" : {
42- "@docusaurus/module-type-aliases" : " 2.0.0-beta.3 " ,
43- "@tsconfig/docusaurus" : " 1.0.2 " ,
42+ "@docusaurus/module-type-aliases" : " 2.0.0-beta.4 " ,
43+ "@tsconfig/docusaurus" : " 1.0.3 " ,
4444 "@types/react" : " 17.0.15" ,
4545 "@typescript-eslint/eslint-plugin" : " 4.29.0" ,
4646 "@typescript-eslint/parser" : " 4.29.0" ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import styles from './styles.module.css';
1515
1616const features = [
1717 {
18- title : < Translate id = "frontpage.sec1.item1.title" > Web 开发</ Translate > ,
18+ title : ' Web 开发' ,
1919 imageUrl : 'img/undraw_version_control.svg' ,
2020 description : (
2121 < Translate
@@ -32,7 +32,7 @@ const features = [
3232 ) ,
3333 } ,
3434 {
35- title : < Translate id = "frontpage.sec1.item2.title" > 算法竞赛</ Translate > ,
35+ title : ' 算法竞赛' ,
3636 imageUrl : 'img/undraw_docusaurus_tree.svg' ,
3737 description : (
3838 < Translate id = "frontpage.sec1.item2" >
@@ -42,7 +42,7 @@ const features = [
4242 ) ,
4343 } ,
4444 {
45- title : < Translate id = "frontpage.sec1.item3.title" > 人工智能探索</ Translate > ,
45+ title : ' 人工智能探索' ,
4646 imageUrl : 'img/undraw_docusaurus_react.svg' ,
4747 description : (
4848 < Translate id = "frontpage.sec1.item3" >
@@ -53,7 +53,7 @@ const features = [
5353 } ,
5454] ;
5555
56- function Home ( ) {
56+ function Home ( ) : JSX . Element {
5757 const context = useDocusaurusContext ( ) ;
5858 const { siteConfig = { } } = context ;
5959 return (
@@ -108,7 +108,11 @@ function Home() {
108108 />
109109 </ div >
110110 ) }
111- < h3 > { title } </ h3 >
111+ < h3 >
112+ < Translate id = { `frontpage.sec1.item${ idx + 1 } .title` } >
113+ { title }
114+ </ Translate >
115+ </ h3 >
112116 < p > { description } </ p >
113117 </ div >
114118 ) ) }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments