Skip to content

Commit 7f83c9b

Browse files
authored
Merge pull request facebookarchive#1026 from Daniel15/draftjsorg-updates
Updates to move the site to draftjs.org
2 parents f69cf95 + f8f9400 commit 7f83c9b

30 files changed

Lines changed: 45 additions & 45 deletions

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
/examples/draft-0-10-0/tex/node_modules/
77
/website/build/
88
/website/node_modules/
9-
/website/src/draft-js/lib/
10-
/website/src/draft-js/docs/
9+
/website/src/lib/
10+
/website/src/docs/
1111
npm-debug.log

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Draft.js](https://facebook.github.io/draft-js/) [![Build Status](https://img.shields.io/travis/facebook/draft-js/master.svg?style=flat)](https://travis-ci.org/facebook/draft-js) [![npm version](https://img.shields.io/npm/v/draft-js.svg?style=flat)](https://www.npmjs.com/package/draft-js)
1+
# [Draft.js](http://draftjs.org/) [![Build Status](https://img.shields.io/travis/facebook/draft-js/master.svg?style=flat)](https://travis-ci.org/facebook/draft-js) [![npm version](https://img.shields.io/npm/v/draft-js.svg?style=flat)](https://www.npmjs.com/package/draft-js)
22

33
Draft.js is a JavaScript rich text editor framework, built for React and
44
backed by an immutable model.
@@ -15,7 +15,7 @@ with [immutable-js](https://facebook.github.io/immutable-js/), offering
1515
an API with functional state updates and aggressively leveraging data persistence
1616
for scalable memory usage.
1717

18-
[Learn how to use Draft.js in your own project.](https://facebook.github.io/draft-js/docs/overview.html)
18+
[Learn how to use Draft.js in your own project.](http://draftjs.org/docs/overview.html)
1919

2020
## API Notice
2121

@@ -72,7 +72,7 @@ Further examples of how Draft.js can be used are provided below.
7272

7373
### Examples
7474

75-
Visit https://facebook.github.io/draft-js/ to try out a simple rich editor example.
75+
Visit http://draftjs.org/ to try out a simple rich editor example.
7676

7777
The repository includes a variety of different editor examples to demonstrate
7878
some of the features offered by the framework.

docs/APIReference-CharacterMetadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ operations are already implemented and available via utility modules. The getter
2525
methods, however, may come in handy at render time.
2626

2727
See the API reference on
28-
[ContentBlock](/draft-js/docs/api-reference-content-block.html#representing-styles-and-entities)
28+
[ContentBlock](/docs/api-reference-content-block.html#representing-styles-and-entities)
2929
for information on how `CharacterMetadata` is used within `ContentBlock`.
3030

3131
## Overview

docs/APIReference-CompositeDecorator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ next: api-reference-data-conversion
77
permalink: docs/api-reference-composite-decorator.html
88
---
99

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

docs/APIReference-ContentBlock.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ any styling, decoration, or HTML information.
171171
getCharacterList(): List<CharacterMetadata>
172172
```
173173
Returns an immutable `List` of `CharacterMetadata` objects, one for each
174-
character in the `ContentBlock`. (See [CharacterMetadata](/draft-js/docs/api-reference-character-metadata.html)
174+
character in the `ContentBlock`. (See [CharacterMetadata](/docs/api-reference-character-metadata.html)
175175
for details.)
176176

177177
This `List` contains all styling and entity information for the block.

docs/APIReference-Editor.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ component itself, `Editor`. Props are defined within
1515

1616
### Basics
1717

18-
See [API Basics](/draft-js/docs/quickstart-api-basics.html) for an introduction.
18+
See [API Basics](/docs/quickstart-api-basics.html) for an introduction.
1919

2020
#### editorState
2121
```
@@ -62,7 +62,7 @@ the editor, on a per-block basis.
6262
blockRendererFn?: (block: ContentBlock) => ?Object
6363
```
6464
Optionally set a function to define custom block rendering. See
65-
[Advanced Topics: Block Components](/draft-js/docs/advanced-topics-block-components.html)
65+
[Advanced Topics: Block Components](/docs/advanced-topics-block-components.html)
6666
for details on usage.
6767

6868
#### blockStyleFn
@@ -71,7 +71,7 @@ blockStyleFn?: (block: ContentBlock) => string
7171
```
7272
Optionally set a function to define class names to apply to the given block
7373
when it is rendered. See
74-
[Advanced Topics: Block Styling](/draft-js/docs/advanced-topics-block-styling.html)
74+
[Advanced Topics: Block Styling](/docs/advanced-topics-block-styling.html)
7575
for details on usage.
7676

7777
#### customStyleMap
@@ -80,7 +80,7 @@ customStyleMap?: Object
8080
```
8181
Optionally define a map of inline styles to apply to spans of text with the specified
8282
style. See
83-
[Advanced Topics: Inline Styles](/draft-js/docs/advanced-topics-inline-styles.html)
83+
[Advanced Topics: Inline Styles](/docs/advanced-topics-inline-styles.html)
8484
for details on usage.
8585

8686
#### customStyleFn
@@ -89,7 +89,7 @@ customStyleFn?: (style: DraftInlineStyle, block: ContentBlock) => ?Object
8989
```
9090
Optionally define a function to transform inline styles to CSS objects that are applied
9191
to spans of text. See
92-
[Advanced Topics: Inline Styles](/draft-js/docs/advanced-topics-inline-styles.html)
92+
[Advanced Topics: Inline Styles](/docs/advanced-topics-inline-styles.html)
9393
for details on usage.
9494

9595
### Behavior (Optional)
@@ -102,7 +102,7 @@ Set whether the editor should be rendered as static DOM, with all editability
102102
disabled.
103103

104104
This is useful when supporting interaction within
105-
[custom block components](/draft-js/docs/advanced-topics-block-components.html)
105+
[custom block components](/docs/advanced-topics-block-components.html)
106106
or if you just want to display content for a static use case.
107107

108108
Default is `false`.
@@ -156,7 +156,7 @@ rendered list of results to trigger applying the mention entity to your content.
156156
handleKeyCommand?: (command: string) => DraftHandleValue
157157
```
158158
Handle the named editor command. See
159-
[Advanced Topics: Key Bindings](/draft-js/docs/advanced-topics-key-bindings.html)
159+
[Advanced Topics: Key Bindings](/docs/advanced-topics-key-bindings.html)
160160
for details on usage.
161161

162162
#### handleBeforeInput

docs/APIReference-Entity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ updating entity objects, which are used for annotating text ranges with metadata
1212
This module also houses the single store used to maintain entity data.
1313

1414
This article is dedicated to covering the details of the API. See the
15-
[advanced topics article on entities](/draft-js/docs/advanced-topics-entities.html)
15+
[advanced topics article on entities](/docs/advanced-topics-entities.html)
1616
for more detail on how entities may be used.
1717

1818
Please note that the API for entity storage and management has changed recently;
1919
for details on updating your application
20-
[see our v0.10 API Migration Guide](/draft-js/docs/v0-10-api-migration.html#content).
20+
[see our v0.10 API Migration Guide](/docs/v0-10-api-migration.html#content).
2121

2222
Entity objects returned by `Entity` methods are represented as
2323
[DraftEntityInstance](https://github.com/facebook/draft-js/blob/master/src/model/entity/DraftEntityInstance.js) immutable records. These have a simple set of getter functions and should

docs/Advanced-Topics-Custom-Block-Render.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The block rendering is used to define supported block types and their respective
1212
renderers, as well as converting pasted content to known Draft block types.
1313

1414
When pasting content or when using the
15-
[convertFromHTML](https://facebook.github.io/draft-js/docs/api-reference-data-conversion.html#convertfromhtml)
15+
[convertFromHTML](/docs/api-reference-data-conversion.html#convertfromhtml)
1616
Draft will then convert the pasted content to the respective block rendering type
1717
by matching the Draft block render map with the matched tag.
1818

@@ -116,7 +116,7 @@ By default the html element is used to wrap block types however a react componen
116116
can also be provided to the _blockRenderMap_ to wrap the EditorBlock.
117117

118118
During pasting or when using the
119-
[convertFromHTML](https://facebook.github.io/draft-js/docs/api-reference-data-conversion.html#convertfromhtml)
119+
[convertFromHTML](/docs/api-reference-data-conversion.html#convertfromhtml)
120120
the html will be scanned for matching tag elements. A wrapper will be used when there is a definition for
121121
it on the _blockRenderMap_ to wrap that particular block type. For example:
122122

docs/Advanced-Topics-Decorators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ offers a live example of decorators in action.
1818
## CompositeDecorator
1919

2020
The decorator concept is based on scanning the contents of a given
21-
[ContentBlock](/draft-js/docs/api-reference-content-block.html)
21+
[ContentBlock](/docs/api-reference-content-block.html)
2222
for ranges of text that match a defined strategy, then rendering them
2323
with a specified React component.
2424

docs/Advanced-Topics-Entities.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ and
1919
provide live code examples to help clarify how entities can be used, as well
2020
as their built-in behavior.
2121

22-
The [Entity API Reference](/draft-js/docs/api-reference-entity.html) provides
22+
The [Entity API Reference](/docs/api-reference-entity.html) provides
2323
details on the static methods to be used when creating, retrieving, or updating
2424
entity objects.
2525

2626
For information about recent changes to the Entity API, and examples of how to
2727
update your application,
28-
[see our v0.10 API Migration Guide](/draft-js/docs/v0-10-api-migration.html#content).
28+
[see our v0.10 API Migration Guide](/docs/v0-10-api-migration.html#content).
2929

3030
## Introduction
3131

@@ -49,8 +49,8 @@ issue
4949
[#839](https://github.com/facebook/draft-js/issues/839)
5050
.)
5151

52-
Using [decorators](/draft-js/docs/advanced-topics-decorators.html) or
53-
[custom block components](/draft-js/docs/advanced-topics-block-components.html), you can
52+
Using [decorators](/docs/advanced-topics-decorators.html) or
53+
[custom block components](/docs/advanced-topics-block-components.html), you can
5454
add rich rendering to your editor based on entity metadata.
5555

5656
## Creating and Retrieving Entities

0 commit comments

Comments
 (0)