Skip to content

Commit

Permalink
chore: update docusaurus & tweak site (#8111)
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey authored and iansu committed Dec 10, 2019
1 parent b8ff97b commit 1f1594d
Show file tree
Hide file tree
Showing 5 changed files with 1,217 additions and 1,087 deletions.
2 changes: 1 addition & 1 deletion docusaurus/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion docusaurus/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down
4 changes: 2 additions & 2 deletions docusaurus/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
19 changes: 19 additions & 0 deletions docusaurus/website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Loading

0 comments on commit 1f1594d

Please sign in to comment.