mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-19 05:03:23 +08:00
chore: update docusaurus & tweak site (#8111)
This commit is contained in:
@@ -147,7 +147,7 @@ The page will automatically reload if you make changes to the code. You will see
|
||||
|
||||
Runs the test watcher in an interactive mode. By default, runs tests related to files changed since the last commit.
|
||||
|
||||
[Read more about testing](https://facebook.github.io/create-react-app/docs/running-tests).
|
||||
[Read more about testing](running-tests.md).
|
||||
|
||||
### `npm run build` or `yarn build`
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ const siteConfig = {
|
||||
path: '../docs',
|
||||
sidebarPath: require.resolve('./sidebars.json'),
|
||||
editUrl:
|
||||
'https://github.com/facebook/create-react-app/edit/master/docusaurus/docs/',
|
||||
'https://github.com/facebook/create-react-app/edit/master/docusaurus/website',
|
||||
showLastUpdateAuthor: true,
|
||||
showLastUpdateTime: true,
|
||||
},
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
"deploy": "docusaurus deploy"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "^2.0.0-alpha.30",
|
||||
"@docusaurus/preset-classic": "^2.0.0-alpha.30",
|
||||
"@docusaurus/core": "^2.0.0-alpha.39",
|
||||
"@docusaurus/preset-classic": "^2.0.0-alpha.39",
|
||||
"classnames": "^2.2.6",
|
||||
"react": "^16.11.0",
|
||||
"react-dom": "^16.11.0"
|
||||
|
||||
@@ -7,3 +7,22 @@
|
||||
--ifm-color-primary-lighter: rgb(83, 224, 197);
|
||||
--ifm-color-primary-lightest: rgb(132, 233, 214);
|
||||
}
|
||||
|
||||
@media screen and (max-width: 996px) {
|
||||
:root {
|
||||
--ifm-font-size-base: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 997px) {
|
||||
:root {
|
||||
--ifm-font-size-base: 17px;
|
||||
}
|
||||
}
|
||||
|
||||
.docusaurus-highlight-code-line {
|
||||
background-color: rgb(72, 77, 91);
|
||||
display: block;
|
||||
margin: 0 calc(-1 * var(--ifm-pre-padding));
|
||||
padding: 0 var(--ifm-pre-padding);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user