Skip to content

Commit 87576bc

Browse files
aforismesenfacebook-github-bot
authored andcommitted
Update Docusaurus to 1.3.3 (#1797)
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: facebookarchive/draft-js#1797 Reviewed By: flarnie Differential Revision: D9560933 Pulled By: flarnie fbshipit-source-id: 4e3938cda818f6d6623ab301b4d8612e80b2f973
1 parent 127fd64 commit 87576bc

File tree

7 files changed

+639
-65
lines changed

7 files changed

+639
-65
lines changed

docs/QuickStart-Rich-Styling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class MyEditor extends React.Component {
6969
}
7070
```
7171

72-
> handleKeyCommand
72+
> `handleKeyCommand`
7373
>
7474
> The `command` argument supplied to `handleKeyCommand` is a string value, the
7575
> name of the command to be executed. This is mapped from a DOM key event. The

meta/bundle-size-stats/Draft.js.json

+1-1
Large diffs are not rendered by default.

meta/bundle-size-stats/Draft.min.js.json

+1-1
Large diffs are not rendered by default.

website/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"rename-version": "docusaurus-rename-version"
1010
},
1111
"devDependencies": {
12-
"docusaurus": "1.1.3"
12+
"docusaurus": "1.3.3"
1313
},
1414
"dependencies": {
1515
"babel-preset-env": "1.6.0",

website/siteConfig.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ const siteConfig = {
4242
// Google analytics tracking id
4343
gaTrackingId: 'UA-44373548-19',
4444

45-
// Show page Table of Contents
45+
// Show page's Table of Contents
4646
onPageNav: 'separate',
47+
48+
// No .html in the path.
49+
cleanUrl: true,
4750
};
4851

4952
module.exports = siteConfig;

website/static/css/custom.css

+6-18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
a {
2+
color: $secondaryColor;
3+
}
4+
15
.hero {
26
background: #843131;
37
padding: 50px 0;
@@ -17,10 +21,6 @@
1721
text-transform: uppercase;
1822
}
1923

20-
.hero strong {
21-
font-weight: 400;
22-
}
23-
2424
.hero .button {
2525
box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.3);
2626
}
@@ -45,7 +45,7 @@
4545
background: #C15757;
4646
}
4747

48-
p, .diagram {
48+
.diagram {
4949
margin: 16px 0;
5050
}
5151

@@ -141,23 +141,11 @@ p, .diagram {
141141
background-color: rgba(75, 145, 80, 0.05);
142142
}
143143

144-
pre code.hljs.css {
145-
border-left-color: #C15757;
146-
}
147-
148-
.docMainWrapper .mainContainer .wrapper .post h1,
149-
.docMainWrapper .mainContainer .wrapper .post h2,
150-
.docMainWrapper .mainContainer .wrapper .post h3,
151-
.docMainWrapper .mainContainer .wrapper .post h5,
152-
.docMainWrapper .mainContainer .wrapper .post h6 {
153-
font-weight: bold;
154-
}
155-
156144
@media screen and (max-width: 767px) {
157145
.hide-on-mobile {
158146
display: none;
159147
}
160-
148+
161149
.home-getting-started {
162150
width: 100%;
163151
}

0 commit comments

Comments
 (0)