Skip to content

Commit f14e620

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

File tree

11 files changed

+21
-141
lines changed

11 files changed

+21
-141
lines changed

examples/basic/next.config.js

+1-1
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

+1-1
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

+1-1
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

+1-1
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

+1-1
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

-57
This file was deleted.

site/docs/sponsor.md

+10
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = {
3838
position: 'right',
3939
items: [
4040
{
41-
to: 'pathname:///examples/landing/',
41+
to: 'pathname:///examples/landing',
4242
label: 'Landing',
4343
},
4444
{
@@ -47,7 +47,7 @@ module.exports = {
4747
},
4848
],
4949
},
50-
{ to: 'support', label: 'Support', position: 'right' },
50+
{ to: 'docs/sponsor', label: 'Sponsor', position: 'right' },
5151
{
5252
href: 'https://github.com/prevwong/craft.js',
5353
label: 'GitHub',

site/sidebars.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
module.exports = {
99
docs: {
1010
Migrating: ['migrating/migrating-0.1.x'],
11-
Introduction: ['overview', 'acknowledgements'],
11+
Introduction: ['overview', 'acknowledgements', 'sponsor'],
1212
'Core Concepts': [
1313
'concepts/nodes',
1414
'concepts/user-components',
15-
'concepts/editor-components',
15+
'concepts/editor',
1616
],
1717
Guides: ['guides/basic-tutorial', 'guides/save-load-state'],
1818
'API Reference': [

site/src/css/custom.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ html {
2929
--ifm-color-primary-light: rgb(70, 203, 174);
3030
--ifm-color-primary-lighter: rgb(102, 212, 189);
3131
--ifm-color-primary-lightest: rgb(146, 224, 208);
32-
--ifm-navbar-background-color: #39423e;
32+
--ifm-navbar-background-color: #1e1e1e;
3333
--ifm-navbar-link-color: rgba(255, 255, 255, 0.85);
3434
--ifm-font-family-base: 'acumin-pro', 'Source Sans Pro', system-ui,
3535
-apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif,
@@ -63,7 +63,7 @@ html {
6363
}
6464

6565
.navbar__title {
66-
font-size: 20px;
66+
font-size: 1.3rem;
6767
font-weight: 200;
6868
color: #fff;
6969
margin-top: -2px;

site/src/pages/support.js

-73
This file was deleted.

0 commit comments

Comments
 (0)