Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update docusaurus & tweak site #8111

Merged
merged 1 commit into from
Dec 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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