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

Conversation

@NoamELB
Copy link
Contributor

@NoamELB NoamELB commented May 21, 2018

Summary

Fixes #1765

Includes:

  1. Upgrading Docusaurus to 1.1.0, which fix the sticky footer issue.
  2. Using production assets (for react, react-dom, immutable, babel-core) instead of development ones.
  3. Supporting small screens with css.

More details in the issue.

Test Plan

Live site with the fixes: https://noamelb.github.io/draft-js

  • Wide desktop:
    screencapture-noamelb-github-io-draft-js-2018-05-21-22_50_02

  • Mobile:
    screencapture-noamelb-github-io-draft-js-2018-05-21-22_58_13

  • Mobile Docs:
    screencapture-noamelb-github-io-draft-js-docs-getting-started-html-2018-05-21-23_09_18

}

.hero .text,
.hero .minitext,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit - Double space between selectors.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turned off auto-format and forgot to turn it on 🤦🏻‍♂️ Thanks for noticing!

box-sizing: border-box;
padding: 0 15px;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit - Would be good to add a newline here!

"devDependencies": {
"docusaurus": "1.0.15"
"docusaurus": "1.1.0",
"opn": "5.3.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm why do you need to add this? Are you getting an error? It should be installed as part of Docusaurus core.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, agree

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, it's a bug in Docusaurus. Submitted a fix for it in facebook/docusaurus#680

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NoamELB has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR introduces new versions of dependent libraries like React and Immutable, so it's doing more than just fixing Docusaurus issues. Would be good to not include upgrading changes in this diff but the decision is up to you.

If you go ahead and upgrade the libraries in this PR, please check thoroughly before merging!

},
"devDependencies": {
"docusaurus": "1.0.15"
"docusaurus": "1.1.2"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We ran into a problem of npm outage causing 1.1.2 to not be downloadable. We just released 1.1.3 as a workaround even though there aren't much changes. Could you use 1.1.3 just to be safe? Sorry and thanks!

</p>

<div id="rich-example"></div>
<div className="hide-in-mobile" id="rich-example"></div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small nit, I think hide-on-mobile sounds more correct.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NoamELB has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

alicayan008 pushed a commit to alicayan008/draft-js that referenced this pull request Jul 4, 2023
Summary:
**Summary**

Fixes #1765

Includes:
1. Upgrading Docusaurus to 1.1.0, which fix the sticky footer issue.
2. Using production assets (for react, react-dom, immutable, babel-core) instead of development ones.
3. Supporting small screens with css.

More details in the issue.

**Test Plan**

Live site with the fixes: https://noamelb.github.io/draft-js

* Wide desktop:
![screencapture-noamelb-github-io-draft-js-2018-05-21-22_50_02](https://user-images.githubusercontent.com/7422547/40327618-45d38ba4-5d4c-11e8-908a-0f04a30a4d2c.png)

* Mobile:
![screencapture-noamelb-github-io-draft-js-2018-05-21-22_58_13](https://user-images.githubusercontent.com/7422547/40328208-4635f60c-5d4e-11e8-8838-5e2ee125e2a6.png)

* Mobile Docs:
![screencapture-noamelb-github-io-draft-js-docs-getting-started-html-2018-05-21-23_09_18](https://user-images.githubusercontent.com/7422547/40328215-49b5034a-5d4e-11e8-8166-152dfa161dcf.png)
Closes facebookarchive/draft-js#1771

Reviewed By: yangshun

Differential Revision: D8095846

Pulled By: yangshun

fbshipit-source-id: a07720785d787a6455c2704b2f4413b0572af321
aforismesen added a commit to aforismesen/draft-js that referenced this pull request Jul 12, 2024
Summary:
**Summary**

Fixes #1765

Includes:
1. Upgrading Docusaurus to 1.1.0, which fix the sticky footer issue.
2. Using production assets (for react, react-dom, immutable, babel-core) instead of development ones.
3. Supporting small screens with css.

More details in the issue.

**Test Plan**

Live site with the fixes: https://noamelb.github.io/draft-js

* Wide desktop:
![screencapture-noamelb-github-io-draft-js-2018-05-21-22_50_02](https://user-images.githubusercontent.com/7422547/40327618-45d38ba4-5d4c-11e8-908a-0f04a30a4d2c.png)

* Mobile:
![screencapture-noamelb-github-io-draft-js-2018-05-21-22_58_13](https://user-images.githubusercontent.com/7422547/40328208-4635f60c-5d4e-11e8-8838-5e2ee125e2a6.png)

* Mobile Docs:
![screencapture-noamelb-github-io-draft-js-docs-getting-started-html-2018-05-21-23_09_18](https://user-images.githubusercontent.com/7422547/40328215-49b5034a-5d4e-11e8-8166-152dfa161dcf.png)
Closes facebookarchive/draft-js#1771

Reviewed By: yangshun

Differential Revision: D8095846

Pulled By: yangshun

fbshipit-source-id: a07720785d787a6455c2704b2f4413b0572af321
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docusaurus migration issues

3 participants