chore: update docusaurus & tweak site (#8111)

This commit is contained in:
Endi
2019-12-11 03:42:30 +07:00
committed by Ian Sutherland
parent b8ff97be72
commit 1f1594d520
5 changed files with 1206 additions and 1076 deletions

View File

@@ -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`

View File

@@ -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,
},

View File

@@ -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"

View File

@@ -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