Skip to content

Commit 84adfd1

Browse files
committed
chore: cleanup site
1 parent 2fffe69 commit 84adfd1

File tree

14 files changed

+22
-426
lines changed

14 files changed

+22
-426
lines changed

examples/basic/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
assetPrefix: process.env.NODE_ENV === 'production' ? '/examples/basic' : '',
2+
assetPrefix: process.env.NODE_ENV === 'production' ? '/examples/basic' : '/',
33
};

examples/landing/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
assetPrefix: process.env.NODE_ENV === 'production' ? '/examples/landing' : '',
2+
assetPrefix: process.env.NODE_ENV === 'production' ? '/examples/landing' : '/',
33
};

site/docs/api/useEditor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const { connectors, actions, query, ...collected } = useEditor(collector);
5858
"(sourceNodeId: NodeId, targetNodeId: NodeId, pos: {x: number, y: number}, nodesToDOM?: (node: Node) => HTMLElement = node => node.dom)",
5959
"Given the target Node and mouse coordinates on the screen, determine the best possible location to drop the source Node. By default, the Node's DOM property is taken into consideration."
6060
],
61-
["node", "(id: NodeId) => NodeHelpers", "Returns an object containing helper methods to describe the specified Node. Click <a href='/docs/api/helpers/'>here</a> for more information."],
61+
["node", "(id: NodeId) => NodeHelpers", "Returns an object containing helper methods to describe the specified Node. Click <a href='/docs/api/helpers'>here</a> for more information."],
6262
["parseReactElement", "(element: React.ReactElement) => Object", [
6363
["toNodeTree", "(normalize?: (node: Node, jsx: React.ReactElement) => void) => NodeTree", "Parse a given React element into a NodeTree"]
6464
]],

site/docs/concepts/editor-components.md renamed to site/docs/concepts/editor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: editor-components
2+
id: editor
33
title: Interacting with the Editor
44
---
55

site/docs/concepts/nodes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ By default, a non-Canvas Node is created. So, how do we actually create a Canvas
5454
5555
In the above example, using the `<Element />` component with the `canvas` prop, we've created a Canvas node of the type `div`. Since our `div` element is now handled by a Canvas node, therefore it is now a droppable region. On the other hand, since `h1`, `MyComp` and `MyContainerComp` are child Nodes of a Canvas, they are now draggable.
5656

57-
The `<Element />` component can also be used to configure other values of a Node, which is further detailed [here](../api/Element)
57+
The `<Element />` component can also be used to configure other values of a Node, which is further detailed [here](../api/element)
5858

5959
<!-- We could also specify other things with the `<Element />` component, such as we could tell Craft to prevent parsing the children of an element as Nodes:
6060

site/docs/concepts/serializing.md

Lines changed: 0 additions & 57 deletions
This file was deleted.

site/docs/dev.md

Lines changed: 0 additions & 263 deletions
This file was deleted.

site/docs/sponsor.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
id: sponsor
3+
title: Sponsor
4+
---
5+
6+
Craft.js is released under the [MIT license](https://github.com/prevwong/craft.js/blob/master/LICENSE) and is built with 100% love. Since it's first release in early 2020, it has been used by various individuals and companies to power their own page editor solution.
7+
8+
In July 2022, I left my full-time job and in that time to focus on Craft and it's [future](https://github.com/prevwong/craft.js/issues/507). If you found this project useful and would like to ensure its continued development, please consider sponsoring/donating to the project. Your contribution would mean a lot to me!
9+
10+
You can choose to contribute via [Github Sponsors](https://github.com/sponsors/prevwong), [OpenCollective](https://opencollective.com/craftjs), [Patreon](https://patreon.com/imprev) or [Ko-fi](https://ko-fi.com/prevwong).

site/docusaurus.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = {
1818
appId: 'PH8YTBNA7Q',
1919
apiKey: '7a21621f37e010ec9a8c39298d71b045',
2020
indexName: 'craft-js',
21+
contextualSearch: false
2122
},
2223
prism: {
2324
theme: require('prism-react-renderer/themes/shadesOfPurple'),
@@ -38,7 +39,7 @@ module.exports = {
3839
position: 'right',
3940
items: [
4041
{
41-
to: 'pathname:///examples/landing/',
42+
to: 'pathname:///examples/landing',
4243
label: 'Landing',
4344
},
4445
{
@@ -47,7 +48,7 @@ module.exports = {
4748
},
4849
],
4950
},
50-
{ to: 'support', label: 'Support', position: 'right' },
51+
{ to: 'docs/sponsor', label: 'Sponsor', position: 'right' },
5152
{
5253
href: 'https://github.com/prevwong/craft.js',
5354
label: 'GitHub',

0 commit comments

Comments
 (0)