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

Commit 710919b

Browse files
NoamELBfacebook-github-bot
authored andcommitted
Migrate to Docusaurus - Attempt #2
Summary: This PR continues #1607 (by aadsm) to update the website to https://github.com/facebook/docusaurus. Changes from the original PR: * Removing the `./setup.sh` line in .travis.yml (since the file was removed). * Upgrading to the latest Docusaurus and React. * Adding Google Analytics to Docusaurus config. * Adding cname to Docusaurus config. * Wiring the correct footer links. Live Example: https://noamelb.github.io/draft-js/ Thanks flarnie & yangshun for all the help ☺️ ![screencapture-localhost-3000-2018-05-10-23_18_05](https://user-images.githubusercontent.com/7422547/39892600-d14dc6be-54a9-11e8-953e-51be1cf48637.png) ![screencapture-localhost-3000-docs-getting-started-html-2018-05-10-23_18_26](https://user-images.githubusercontent.com/7422547/39892604-d3d9bdac-54a9-11e8-8306-e878775c1f79.png) <img width="1055" alt="ga" src="https://user-images.githubusercontent.com/7422547/39892610-d6dc2c7e-54a9-11e8-8f58-9d256d2247ee.png"> Co-authored-by: António Afonso <[email protected]> Closes #1759 Reviewed By: flarnie Differential Revision: D8026140 Pulled By: flarnie fbshipit-source-id: 975fcde309a8ab24af90c5363acf1b601dfdcde7
1 parent b2f6ed0 commit 710919b

File tree

71 files changed

+20078
-3347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+20078
-3347
lines changed

.travis.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,15 @@ script:
4343
else
4444
set -e
4545
./node_modules/.bin/gulp
46-
cd website
47-
yarn install
48-
./setup.sh
4946
if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = master ]; then
5047
# Automatically publish the website
5148
git config --global user.name "Travis CI"
5249
git config --global user.email "[email protected]"
53-
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc
54-
./publish.sh
50+
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" > ~/.netrc
51+
cd website && yarn install && GIT_USER=reactjs-bot npm run publish-gh-pages
5552
else
5653
# Make sure the website builds without error
57-
node server/generate.js
54+
cd website && yarn install && yarn build
5855
fi
5956
6057
fi

docs/APIReference-APIMigration.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
id: v0-10-api-migration
33
title: v0.10 API Migration
4-
layout: docs
5-
category: Advanced Topics
6-
next: advanced-topics-decorators
7-
permalink: docs/v0-10-api-migration.html
84
---
95

106
The Draft.js v0.10 release includes a change to the API for managing
@@ -152,4 +148,3 @@ function findLinkEntities(contentBlock, callback, contentState) {
152148
## More Information
153149

154150
For more information see the [updated examples](https://github.com/facebook/draft-js/tree/master/examples/draft-0-10-0).
155-

docs/APIReference-AtomicBlockUtils.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
---
22
id: api-reference-atomic-block-utils
33
title: AtomicBlockUtils
4-
layout: docs
5-
category: API Reference
6-
next: api-reference-key-binding-util
7-
permalink: docs/api-reference-atomic-block-utils.html
84
---
95

10-
The `AtomicBlockUtils` module is a static set of utility functions for atomic
6+
The `AtomicBlockUtils` module is a static set of utility functions for atomic
117
block editing.
128

139
In each case, these methods accept `EditorState` objects with relevant

docs/APIReference-CharacterMetadata.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
id: api-reference-character-metadata
33
title: CharacterMetadata
4-
layout: docs
5-
category: API Reference
6-
next: api-reference-entity
7-
permalink: docs/api-reference-character-metadata.html
84
---
95

106
`CharacterMetadata` is an Immutable
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
id: api-reference-composite-decorator
33
title: CompositeDecorator
4-
layout: docs
5-
category: API Reference
6-
next: api-reference-data-conversion
7-
permalink: docs/api-reference-composite-decorator.html
84
---
95

106
See the [advanced topic article on Decorators](/docs/advanced-topics-decorators.html#compositedecorator).

docs/APIReference-ContentBlock.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
id: api-reference-content-block
33
title: ContentBlock
4-
layout: docs
5-
category: API Reference
6-
next: api-reference-character-metadata
7-
permalink: docs/api-reference-content-block.html
84
---
95

106
`ContentBlock` is an Immutable

docs/APIReference-ContentState.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
id: api-reference-content-state
33
title: ContentState
4-
layout: docs
5-
category: API Reference
6-
next: api-reference-content-block
7-
permalink: docs/api-reference-content-state.html
84
---
95

106
`ContentState` is an Immutable

docs/APIReference-Data-Conversion.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
id: api-reference-data-conversion
33
title: Data Conversion
4-
layout: docs
5-
category: API Reference
6-
next: api-reference-rich-utils
7-
permalink: docs/api-reference-data-conversion.html
84
---
95

106
Because a text editor doesn't exist in a vacuum and it's important to save

docs/APIReference-Editor.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
id: api-reference-editor
33
title: Editor Component
4-
layout: docs
5-
category: API Reference
6-
next: api-reference-editor-change-type
7-
permalink: docs/api-reference-editor.html
84
---
95

106
This article discusses the API and props of the core controlled contentEditable

docs/APIReference-EditorChangeType.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
id: api-reference-editor-change-type
33
title: EditorChangeType
4-
layout: docs
5-
category: API Reference
6-
next: api-reference-editor-state
7-
permalink: docs/api-reference-editor-change-type.html
84
---
95

106
[EditorChangeType](https://github.com/facebook/draft-js/blob/master/src/model/immutable/EditorChangeType.js)

0 commit comments

Comments
 (0)