diff --git a/examples/basic/next.config.js b/examples/basic/next.config.js index 819d9006a..3f8252f79 100644 --- a/examples/basic/next.config.js +++ b/examples/basic/next.config.js @@ -1,3 +1,3 @@ module.exports = { - assetPrefix: process.env.NODE_ENV === 'production' ? '/examples/basic' : '', + assetPrefix: process.env.NODE_ENV === 'production' ? '/examples/basic' : '/', }; diff --git a/examples/landing/next.config.js b/examples/landing/next.config.js index 7cc91936a..d7b8e340a 100644 --- a/examples/landing/next.config.js +++ b/examples/landing/next.config.js @@ -1,3 +1,3 @@ module.exports = { - assetPrefix: process.env.NODE_ENV === 'production' ? '/examples/landing' : '', + assetPrefix: process.env.NODE_ENV === 'production' ? '/examples/landing' : '/', }; diff --git a/site/docs/api/useEditor.md b/site/docs/api/useEditor.md index 22e1d4b45..b97c1cc80 100644 --- a/site/docs/api/useEditor.md +++ b/site/docs/api/useEditor.md @@ -58,7 +58,7 @@ const { connectors, actions, query, ...collected } = useEditor(collector); "(sourceNodeId: NodeId, targetNodeId: NodeId, pos: {x: number, y: number}, nodesToDOM?: (node: Node) => HTMLElement = node => node.dom)", "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." ], - ["node", "(id: NodeId) => NodeHelpers", "Returns an object containing helper methods to describe the specified Node. Click here for more information."], + ["node", "(id: NodeId) => NodeHelpers", "Returns an object containing helper methods to describe the specified Node. Click here for more information."], ["parseReactElement", "(element: React.ReactElement) => Object", [ ["toNodeTree", "(normalize?: (node: Node, jsx: React.ReactElement) => void) => NodeTree", "Parse a given React element into a NodeTree"] ]], diff --git a/site/docs/concepts/editor-components.md b/site/docs/concepts/editor.md similarity index 99% rename from site/docs/concepts/editor-components.md rename to site/docs/concepts/editor.md index 3ba31a6d7..ce77f692d 100755 --- a/site/docs/concepts/editor-components.md +++ b/site/docs/concepts/editor.md @@ -1,5 +1,5 @@ --- -id: editor-components +id: editor title: Interacting with the Editor --- diff --git a/site/docs/concepts/nodes.md b/site/docs/concepts/nodes.md index 0a0041d67..f54f8847b 100755 --- a/site/docs/concepts/nodes.md +++ b/site/docs/concepts/nodes.md @@ -54,7 +54,7 @@ By default, a non-Canvas Node is created. So, how do we actually create a Canvas In the above example, using the `` 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. -The `` component can also be used to configure other values of a Node, which is further detailed [here](../api/Element) +The `` component can also be used to configure other values of a Node, which is further detailed [here](../api/element)