Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Update Docusaurus to 1.3.3 (#1797)
Browse files Browse the repository at this point in the history
Summary:
Docusaurus 1.3.0 brings about some [backwards-incompatible CSS changes](https://github.com/facebook/Docusaurus/blob/master/CHANGELOG.md#breaking-changes). So the team is helping the major users update 😄

The header font weights in Docusuaurs have been changed to bold, so I removed the custom styling that made it bold. Additionally, I made `<a>` have a different color because the primary color in Draft.js is black and users can't easily distinguish it from body text - bad for accessibility.

cc JoelMarcey endiliey

Ran the site locally and visited every page.

<img width="1552" alt="screen shot 2018-06-24 at 8 38 28 pm" src="https://user-images.githubusercontent.com/1315101/41829262-96daa336-77ee-11e8-881a-629297843d34.png">

<img width="1552" alt="screen shot 2018-06-24 at 8 38 32 pm" src="https://user-images.githubusercontent.com/1315101/41829265-9adbee4a-77ee-11e8-89e7-0e95a9d58026.png">
Pull Request resolved: #1797

Reviewed By: flarnie

Differential Revision: D9560933

Pulled By: flarnie

fbshipit-source-id: 4e3938cda818f6d6623ab301b4d8612e80b2f973
  • Loading branch information
yangshun authored and facebook-github-bot committed Aug 29, 2018
1 parent 3306ddf commit d6a0ac0
Show file tree
Hide file tree
Showing 7 changed files with 639 additions and 65 deletions.
2 changes: 1 addition & 1 deletion docs/QuickStart-Rich-Styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class MyEditor extends React.Component {
}
```

> handleKeyCommand
> `handleKeyCommand`
>
> The `command` argument supplied to `handleKeyCommand` is a string value, the
> name of the command to be executed. This is mapped from a DOM key event. The
Expand Down
2 changes: 1 addition & 1 deletion meta/bundle-size-stats/Draft.js.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion meta/bundle-size-stats/Draft.min.js.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"rename-version": "docusaurus-rename-version"
},
"devDependencies": {
"docusaurus": "1.1.3"
"docusaurus": "1.3.3"
},
"dependencies": {
"babel-preset-env": "1.6.0",
Expand Down
5 changes: 4 additions & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ const siteConfig = {
// Google analytics tracking id
gaTrackingId: 'UA-44373548-19',

// Show page Table of Contents
// Show page's Table of Contents
onPageNav: 'separate',

// No .html in the path.
cleanUrl: true,
};

module.exports = siteConfig;
24 changes: 6 additions & 18 deletions website/static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
a {
color: $secondaryColor;
}

.hero {
background: #843131;
padding: 50px 0;
Expand All @@ -17,10 +21,6 @@
text-transform: uppercase;
}

.hero strong {
font-weight: 400;
}

.hero .button {
box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.3);
}
Expand All @@ -45,7 +45,7 @@
background: #C15757;
}

p, .diagram {
.diagram {
margin: 16px 0;
}

Expand Down Expand Up @@ -141,23 +141,11 @@ p, .diagram {
background-color: rgba(75, 145, 80, 0.05);
}

pre code.hljs.css {
border-left-color: #C15757;
}

.docMainWrapper .mainContainer .wrapper .post h1,
.docMainWrapper .mainContainer .wrapper .post h2,
.docMainWrapper .mainContainer .wrapper .post h3,
.docMainWrapper .mainContainer .wrapper .post h5,
.docMainWrapper .mainContainer .wrapper .post h6 {
font-weight: bold;
}

@media screen and (max-width: 767px) {
.hide-on-mobile {
display: none;
}

.home-getting-started {
width: 100%;
}
Expand Down
Loading

0 comments on commit d6a0ac0

Please sign in to comment.