Skip to content

Commit 1f1594d

Browse files
endilieyiansu
authored andcommitted
chore: update docusaurus & tweak site (#8111)
1 parent b8ff97b commit 1f1594d

File tree

5 files changed

+1217
-1087
lines changed

5 files changed

+1217
-1087
lines changed

docusaurus/docs/getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ The page will automatically reload if you make changes to the code. You will see
147147

148148
Runs the test watcher in an interactive mode. By default, runs tests related to files changed since the last commit.
149149

150-
[Read more about testing](https://facebook.github.io/create-react-app/docs/running-tests).
150+
[Read more about testing](running-tests.md).
151151

152152
### `npm run build` or `yarn build`
153153

docusaurus/website/docusaurus.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const siteConfig = {
2121
path: '../docs',
2222
sidebarPath: require.resolve('./sidebars.json'),
2323
editUrl:
24-
'https://github.com/facebook/create-react-app/edit/master/docusaurus/docs/',
24+
'https://github.com/facebook/create-react-app/edit/master/docusaurus/website',
2525
showLastUpdateAuthor: true,
2626
showLastUpdateTime: true,
2727
},

docusaurus/website/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"deploy": "docusaurus deploy"
77
},
88
"dependencies": {
9-
"@docusaurus/core": "^2.0.0-alpha.30",
10-
"@docusaurus/preset-classic": "^2.0.0-alpha.30",
9+
"@docusaurus/core": "^2.0.0-alpha.39",
10+
"@docusaurus/preset-classic": "^2.0.0-alpha.39",
1111
"classnames": "^2.2.6",
1212
"react": "^16.11.0",
1313
"react-dom": "^16.11.0"

docusaurus/website/src/css/custom.css

+19
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,22 @@
77
--ifm-color-primary-lighter: rgb(83, 224, 197);
88
--ifm-color-primary-lightest: rgb(132, 233, 214);
99
}
10+
11+
@media screen and (max-width: 996px) {
12+
:root {
13+
--ifm-font-size-base: 15px;
14+
}
15+
}
16+
17+
@media screen and (min-width: 997px) {
18+
:root {
19+
--ifm-font-size-base: 17px;
20+
}
21+
}
22+
23+
.docusaurus-highlight-code-line {
24+
background-color: rgb(72, 77, 91);
25+
display: block;
26+
margin: 0 calc(-1 * var(--ifm-pre-padding));
27+
padding: 0 var(--ifm-pre-padding);
28+
}

0 commit comments

Comments
 (0)