fix: prefix all docu.json routes with /docs to match Next.js app directory structure

This commit is contained in:
Dwindi Ramadhana
2026-02-05 15:22:14 +07:00
parent 3748dad49c
commit 0637bab4ea

View File

@@ -19,7 +19,7 @@
}, },
{ {
"title": "Developer Docs", "title": "Developer Docs",
"href": "/developer" "href": "/docs/developer"
}, },
{ {
"title": "Plugin Site", "title": "Plugin Site",
@@ -48,7 +48,7 @@
"routes": [ "routes": [
{ {
"title": "Getting Started", "title": "Getting Started",
"href": "/getting-started", "href": "/docs/getting-started",
"noLink": true, "noLink": true,
"context": { "context": {
"icon": "Book", "icon": "Book",
@@ -72,8 +72,8 @@
}, },
{ {
"title": "Store Management", "title": "Store Management",
"href": "/store", "href": "/docs/store",
"noLink": true, "noLink": false,
"context": { "context": {
"icon": "ShoppingBag", "icon": "ShoppingBag",
"description": "Orders, Customers, Products", "description": "Orders, Customers, Products",
@@ -82,22 +82,22 @@
"items": [ "items": [
{ {
"title": "Orders", "title": "Orders",
"href": "/store/orders" "href": "/orders"
}, },
{ {
"title": "My Customers (VIP)", "title": "My Customers (VIP)",
"href": "/store/customers" "href": "/customers"
}, },
{ {
"title": "Products", "title": "Products",
"href": "/store/products" "href": "/products"
} }
] ]
}, },
{ {
"title": "Marketing Suite", "title": "Marketing Suite",
"href": "/marketing", "href": "/docs/marketing",
"noLink": true, "noLink": false,
"context": { "context": {
"icon": "Megaphone", "icon": "Megaphone",
"description": "Campaigns & Growth", "description": "Campaigns & Growth",
@@ -106,22 +106,22 @@
"items": [ "items": [
{ {
"title": "Newsletter", "title": "Newsletter",
"href": "/marketing/newsletter" "href": "/newsletter"
}, },
{ {
"title": "Coupons", "title": "Coupons",
"href": "/marketing/coupons" "href": "/coupons"
}, },
{ {
"title": "Wishlist", "title": "Wishlist",
"href": "/marketing/wishlist" "href": "/wishlist"
} }
] ]
}, },
{ {
"title": "Page Builder", "title": "Page Builder",
"href": "/builder", "href": "/docs/builder",
"noLink": true, "noLink": false,
"context": { "context": {
"icon": "Layout", "icon": "Layout",
"description": "Visual Editor & Design", "description": "Visual Editor & Design",
@@ -130,22 +130,22 @@
"items": [ "items": [
{ {
"title": "Visual Editor", "title": "Visual Editor",
"href": "/builder/visual-editor" "href": "/visual-editor"
}, },
{ {
"title": "Section Components", "title": "Section Components",
"href": "/builder/sections" "href": "/sections"
}, },
{ {
"title": "Special Pages (Shop/Cart)", "title": "Special Pages (Shop/Cart)",
"href": "/builder/special-pages" "href": "/special-pages"
} }
] ]
}, },
{ {
"title": "Configuration", "title": "Configuration",
"href": "/configuration", "href": "/docs/configuration",
"noLink": true, "noLink": false,
"context": { "context": {
"icon": "Settings", "icon": "Settings",
"description": "Setup & Options", "description": "Setup & Options",
@@ -154,38 +154,38 @@
"items": [ "items": [
{ {
"title": "General Settings", "title": "General Settings",
"href": "/configuration/general" "href": "/general"
}, },
{ {
"title": "Appearance (Colors/Type)", "title": "Appearance (Colors/Type)",
"href": "/configuration/appearance" "href": "/appearance"
}, },
{ {
"title": "Modules", "title": "Modules",
"href": "/configuration/modules" "href": "/modules"
}, },
{ {
"title": "Email Settings", "title": "Email Settings",
"href": "/configuration/email" "href": "/email"
}, },
{ {
"title": "Security", "title": "Security",
"href": "/configuration/security" "href": "/security"
}, },
{ {
"title": "Payment & Shipping", "title": "Payment & Shipping",
"href": "/configuration/payment-shipping" "href": "/payment-shipping"
}, },
{ {
"title": "Licensing", "title": "Licensing",
"href": "/configuration/licensing" "href": "/licensing"
} }
] ]
}, },
{ {
"title": "Developer Guides", "title": "Developer Guides",
"href": "/developer", "href": "/docs/developer",
"noLink": true, "noLink": false,
"context": { "context": {
"icon": "Code", "icon": "Code",
"description": "Advanced Integration", "description": "Advanced Integration",
@@ -220,7 +220,7 @@
}, },
{ {
"title": "Hooks & Filters", "title": "Hooks & Filters",
"href": "/hooks", "href": "/docs/hooks",
"noLink": true, "noLink": true,
"context": { "context": {
"icon": "Anchor", "icon": "Anchor",
@@ -252,7 +252,7 @@
}, },
{ {
"title": "Resources", "title": "Resources",
"href": "/resources", "href": "/docs/resources",
"noLink": true, "noLink": true,
"context": { "context": {
"icon": "Box", "icon": "Box",