Skip to content

Commit 889f85e

Browse files
committed
feat: switched to vitepress
1 parent b3caf8e commit 889f85e

File tree

111 files changed

+7137
-18236
lines changed

Some content is hidden

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

111 files changed

+7137
-18236
lines changed

.github/workflows/deploy-website.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Deploy Website to Cloudflare Workers
1+
name: Deploy Website to Cloudflare Pages
22

33
on:
44
push:
55
branches:
66
- main
77
paths:
88
- 'website/**'
9-
workflow_dispatch: # Allow manual triggering
9+
workflow_dispatch:
1010

1111
jobs:
1212
deploy:
@@ -38,13 +38,13 @@ jobs:
3838
- name: Install dependencies
3939
run: pnpm install --frozen-lockfile
4040

41-
- name: Build for Cloudflare Workers
42-
run: pnpm exec opennextjs-cloudflare build
41+
- name: Build VitePress
42+
run: pnpm build
4343

44-
- name: Deploy to Cloudflare Workers
44+
- name: Deploy to Cloudflare Pages
4545
uses: cloudflare/wrangler-action@v3
4646
with:
4747
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4848
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
4949
workingDirectory: website
50-
command: deploy
50+
command: pages deploy .vitepress/dist --project-name=vyuh-node-flow-website

website/.gitignore

Lines changed: 18 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
1-
# deps
2-
/node_modules
1+
# Dependencies
2+
node_modules/
33

4-
# generated content
5-
.source
4+
# Build output
5+
.vitepress/dist/
6+
.vitepress/cache/
67

7-
# test & build
8-
/coverage
9-
/.next/
10-
/out/
11-
/build
12-
*.tsbuildinfo
8+
# Logs
9+
*.log
1310

14-
# misc
15-
.DS_Store
16-
*.pem
17-
/.pnp
18-
.pnp.js
19-
npm-debug.log*
20-
yarn-debug.log*
21-
yarn-error.log*
11+
# Editor
12+
.idea/
13+
.vscode/
14+
*.swp
15+
*.swo
2216

23-
# others
24-
.env*.local
25-
.vercel
26-
next-env.d.ts
17+
# OS
18+
.DS_Store
19+
Thumbs.db
2720

28-
# Cloudflare
29-
.open-next/
30-
.wrangler/
21+
# Temp
22+
*.tmp
23+
convert-mdx.py

website/.vitepress/config.ts

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
import { defineConfig } from 'vitepress';
2+
3+
export default defineConfig({
4+
title: 'Vyuh Node Flow',
5+
description:
6+
'A flexible, high-performance node-based flow editor for Flutter applications',
7+
cleanUrls: true,
8+
9+
head: [
10+
['link', { rel: 'icon', href: '/icon.svg', type: 'image/svg+xml' }],
11+
['meta', { property: 'og:type', content: 'website' }],
12+
['meta', { property: 'og:title', content: 'Vyuh Node Flow - Visual Flow Editor for Flutter' }],
13+
['meta', { property: 'og:description', content: 'A flexible, high-performance node-based flow editor for building workflow editors, visual programming interfaces, and interactive diagrams in Flutter.' }],
14+
['meta', { property: 'og:image', content: 'https://flow.vyuh.tech/node-flow-banner.png' }],
15+
['meta', { property: 'og:url', content: 'https://flow.vyuh.tech' }],
16+
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
17+
['meta', { name: 'twitter:title', content: 'Vyuh Node Flow - Visual Flow Editor for Flutter' }],
18+
['meta', { name: 'twitter:description', content: 'A flexible, high-performance node-based flow editor for building workflow editors, visual programming interfaces, and interactive diagrams in Flutter.' }],
19+
['meta', { name: 'twitter:image', content: 'https://flow.vyuh.tech/node-flow-banner.png' }],
20+
],
21+
22+
// Ignore dead links to planned pages that don't exist yet
23+
ignoreDeadLinks: [
24+
/\/docs\/advanced\/validation/,
25+
/\/docs\/advanced\/connection-labels/,
26+
/\/docs\/api\/shortcuts-actions/,
27+
/\/docs\/api\/custom-port-shapes/,
28+
/\/docs\/theming\/node-theme/,
29+
/\/docs\/theming\/connection-theme/,
30+
/\/docs\/examples\/custom-nodes/,
31+
/\/docs\/examples\/custom-ports/,
32+
],
33+
34+
themeConfig: {
35+
logo: '/icon.svg',
36+
37+
nav: [
38+
{ text: 'Docs', link: '/docs/getting-started/installation' },
39+
{ text: 'Examples', link: '/docs/examples/' },
40+
{
41+
text: 'Links',
42+
items: [
43+
{
44+
text: 'GitHub',
45+
link: 'https://github.com/vyuh-tech/vyuh_node_flow',
46+
},
47+
{
48+
text: 'pub.dev',
49+
link: 'https://pub.dev/packages/vyuh_node_flow',
50+
},
51+
{ text: 'Live Demo', link: 'https://flow.demo.vyuh.tech' },
52+
],
53+
},
54+
],
55+
56+
sidebar: {
57+
'/docs/': [
58+
{
59+
text: 'Getting Started',
60+
items: [
61+
{ text: 'Installation', link: '/docs/getting-started/installation' },
62+
{ text: 'Quick Start', link: '/docs/getting-started/quick-start' },
63+
],
64+
},
65+
{
66+
text: 'Core Concepts',
67+
items: [
68+
{ text: 'Architecture', link: '/docs/core-concepts/architecture' },
69+
{ text: 'Controller', link: '/docs/core-concepts/controller' },
70+
{ text: 'Configuration', link: '/docs/core-concepts/configuration' },
71+
{ text: 'Nodes', link: '/docs/core-concepts/nodes' },
72+
{ text: 'Ports', link: '/docs/core-concepts/ports' },
73+
{ text: 'Connections', link: '/docs/core-concepts/connections' },
74+
],
75+
},
76+
{
77+
text: 'Components',
78+
items: [
79+
{ text: 'NodeFlowEditor', link: '/docs/components/node-flow-editor' },
80+
{ text: 'NodeFlowViewer', link: '/docs/components/node-flow-viewer' },
81+
{ text: 'NodeWidget', link: '/docs/components/node-widget' },
82+
{ text: 'PortWidget', link: '/docs/components/port-widget' },
83+
{ text: 'ConnectionsLayer', link: '/docs/components/connections-layer' },
84+
{ text: 'Annotations', link: '/docs/components/annotations' },
85+
{ text: 'Minimap', link: '/docs/components/minimap' },
86+
],
87+
},
88+
{
89+
text: 'Examples',
90+
items: [{ text: 'Overview', link: '/docs/examples/' }],
91+
},
92+
{
93+
text: 'Theming',
94+
items: [
95+
{ text: 'Overview', link: '/docs/theming/overview' },
96+
{ text: 'Connection Styles', link: '/docs/theming/connection-styles' },
97+
{ text: 'Connection Effects', link: '/docs/theming/connection-effects' },
98+
{ text: 'Port Shapes', link: '/docs/theming/port-shapes' },
99+
{ text: 'Port Labels', link: '/docs/theming/port-labels' },
100+
{ text: 'Grid Styles', link: '/docs/theming/grid-styles' },
101+
{ text: 'Node Shapes', link: '/docs/theming/node-shapes' },
102+
],
103+
},
104+
{
105+
text: 'Advanced',
106+
items: [
107+
{ text: 'Annotations', link: '/docs/advanced/annotations' },
108+
{ text: 'Events', link: '/docs/advanced/events' },
109+
{ text: 'Serialization', link: '/docs/advanced/serialization' },
110+
{ text: 'Keyboard Shortcuts', link: '/docs/advanced/keyboard-shortcuts' },
111+
{ text: 'Shortcuts & Actions', link: '/docs/advanced/shortcuts-actions' },
112+
],
113+
},
114+
{
115+
text: 'API Reference',
116+
items: [
117+
{ text: 'Overview', link: '/docs/api-reference/' },
118+
{ text: 'Controller', link: '/docs/api-reference/controller' },
119+
{ text: 'Node', link: '/docs/api-reference/node' },
120+
{ text: 'Port', link: '/docs/api-reference/port' },
121+
{ text: 'Connection', link: '/docs/api-reference/connection' },
122+
{ text: 'Events', link: '/docs/api-reference/events' },
123+
{ text: 'Theme', link: '/docs/api-reference/theme' },
124+
],
125+
},
126+
],
127+
},
128+
129+
socialLinks: [
130+
{ icon: 'github', link: 'https://github.com/vyuh-tech/vyuh_node_flow' },
131+
],
132+
133+
search: {
134+
provider: 'local',
135+
},
136+
137+
editLink: {
138+
pattern:
139+
'https://github.com/vyuh-tech/vyuh_node_flow/edit/main/website/:path',
140+
},
141+
},
142+
});

0 commit comments

Comments
 (0)