Skip to content

Commit 66d14c0

Browse files
Merge pull request #13 from bagisto/new-doc
feat: new docs added
2 parents 26693e2 + 8722f11 commit 66d14c0

File tree

2,389 files changed

+26262
-43635
lines changed

Some content is hidden

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

2,389 files changed

+26262
-43635
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy to GitHub pages
1+
name: Deploy To GitHub Pages
22
on:
33
push:
44
branches:
@@ -7,22 +7,20 @@ jobs:
77
publish-docs:
88
runs-on: ubuntu-latest
99
steps:
10-
# https://github.com/actions/checkout
1110
- name: Checkout 🛎️
1211
uses: actions/checkout@v3
1312
with:
1413
persist-credentials: false
1514

16-
- name: NPM install 📦
15+
- name: NPM Install 📦
1716
uses: bahmutov/npm-install@v1
1817

19-
- name: Build docs 🏗
20-
run: export NODE_OPTIONS=--openssl-legacy-provider && npm run docs:build
18+
- name: Build Docs 🏗
19+
run: npm run docs:build
2120

22-
# https://github.com/marketplace/actions/github-pages-action
2321
- name: Deploy 🚀
2422
uses: peaceiris/actions-gh-pages@v3
2523
with:
2624
github_token: ${{ secrets.GITHUB_TOKEN }}
27-
publish_dir: ./docs/.vuepress/dist
28-
cname: docs.bagisto.com
25+
publish_dir: ./.vitepress/dist
26+
cname: docs.bagisto.com

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.vitepress/cache
2+
.vitepress/dist
13
.vscode
2-
docs/.vuepress/dist
3-
node_modules/
4+
node_modules/

.vitepress/_redirects.ts

Lines changed: 510 additions & 0 deletions
Large diffs are not rendered by default.

.vitepress/config.mts

Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
import { defineConfig } from 'vitepress'
2+
import { redirects, makeRedirectHtml } from './_redirects'
3+
import fs from 'fs'
4+
import path from 'path'
5+
6+
export default defineConfig({
7+
lang: 'en-US',
8+
title: "Bagisto",
9+
description: "Bagisto User Documentation",
10+
11+
vite: {
12+
server: {
13+
host: '0.0.0.0'
14+
}
15+
},
16+
17+
srcDir: './src',
18+
19+
themeConfig: {
20+
siteTitle: false,
21+
22+
logo: {
23+
light: '/logo.png',
24+
dark: '/logo.png',
25+
},
26+
27+
nav: [
28+
{ text: 'Dev Docs', link: 'https://devdocs.bagisto.com/' },
29+
{ text: 'Extensions', link: 'https://bagisto.com/en/extensions/' },
30+
{ text: 'Community Forum', link: 'https://forums.bagisto.com/' },
31+
{ text: 'Contact Us', link: 'https://bagisto.com/en/contacts/' }
32+
],
33+
34+
editLink: {
35+
pattern: 'https://github.com/bagisto/bagisto-docs/edit/master/src/:path',
36+
text: 'Help us improve this page on Github.'
37+
},
38+
39+
lastUpdated: {
40+
text: 'Last Updated',
41+
formatOptions: {
42+
dateStyle: 'full'
43+
}
44+
},
45+
46+
sidebar: [
47+
{
48+
text: 'Introduction',
49+
link: '/getting-started/introduction'
50+
},
51+
52+
{
53+
text: 'Product Types',
54+
collapsed: false,
55+
items: [
56+
{ text: 'Simple Product', link: '/product-types/simple-product' },
57+
{ text: 'Configurable Product', link: '/product-types/configurable-product' },
58+
{ text: 'Virtual Product', link: '/product-types/virtual-product' },
59+
{ text: 'Bundle Product', link: '/product-types/bundle-product' },
60+
{ text: 'Grouped Product', link: '/product-types/grouped-product' },
61+
{ text: 'Downlodable Product', link: '/product-types/downloadable-product' },
62+
]
63+
},
64+
65+
{
66+
text: 'Category',
67+
collapsed: false,
68+
items: [
69+
{ text: 'Create Category', link: '/category/create-category' },
70+
]
71+
},
72+
73+
{
74+
text: 'Attributes',
75+
collapsed: false,
76+
items: [
77+
{ text: 'Attribute Input Types', link: '/attribute/attribute-input' },
78+
{ text: 'Create Product Attributes', link: '/attribute/product-attribute' },
79+
{ text: 'Attribute Family', link: '/attribute/attribute-family' },
80+
]
81+
},
82+
83+
{
84+
text: 'Orders',
85+
collapsed: false,
86+
items: [
87+
{ text: 'Create Order', link: '/orders/create-order' },
88+
{ text: 'Create Invoice', link: '/orders/create-invoice' },
89+
{ text: 'Create Shipment', link: '/orders/create-shipment' },
90+
{ text: 'Create Refunds', link: '/orders/create-refunds' },
91+
{ text: 'Transactions', link: '/orders/transactions' },
92+
]
93+
},
94+
{
95+
text: 'Customers',
96+
collapsed: false,
97+
items: [
98+
{ text: 'Create Customer', link: '/customer/create-customer' },
99+
{ text: 'Customer Group', link: '/customer/customer-group' },
100+
{ text: 'Customer Review', link: '/customer/customer-review' },
101+
]
102+
},
103+
104+
{
105+
text: 'CMS',
106+
collapsed: false,
107+
items: [
108+
{ text: 'Create CMS', link: '/cms/create-cms' },
109+
]
110+
},
111+
112+
{
113+
text: 'Marketing',
114+
collapsed: false,
115+
items: [
116+
{ text: 'Cart Rules', link: '/marketing/cart-rules' },
117+
{ text: 'Catalog Rules', link: '/marketing/catalog-rules' },
118+
{ text: 'Email Templates', link: '/marketing/email-templates' },
119+
{ text: 'Events', link: '/marketing/events' },
120+
{ text: 'Campaigns', link: '/marketing/campaigns' },
121+
{ text: 'Newsletter Subscriptions', link: '/marketing/newsletter-subscription' },
122+
{ text: 'Sitemaps', link: '/marketing/sitemaps' },
123+
{ text: 'URL Rewrite', link: '/marketing/url-rewrite' },
124+
{ text: 'Search Terms', link: '/marketing/search-terms' },
125+
{ text: 'Search Synonyms', link: '/marketing/search-synonyms' },
126+
]
127+
},
128+
129+
{
130+
text: 'Reporting',
131+
collapsed: false,
132+
items: [
133+
{ text: 'Sales', link: '/reporting/sales-report' },
134+
{ text: 'Customers', link: '/reporting/customers-report' },
135+
{ text: 'Products', link: '/reporting/product-report' },
136+
]
137+
},
138+
139+
140+
{
141+
text: 'Settings',
142+
collapsed: false,
143+
items: [
144+
{ text: 'Locales', link: '/settings/locales' },
145+
{ text: 'Currencies', link: '/settings/currencies' },
146+
{ text: 'Exchange Rates', link: '/settings/exchange-rates' },
147+
{ text: 'Inventory Source', link: '/settings/inventory-source' },
148+
{ text: 'Channels', link: '/settings/channels' },
149+
{ text: 'Users', link: '/settings/users' },
150+
{ text: 'Roles', link: '/settings/roles' },
151+
{ text: 'Themes', link: '/settings/themes' },
152+
{ text: 'Taxes', link: '/settings/taxes' },
153+
]
154+
},
155+
156+
{
157+
text: 'Configure',
158+
collapsed: false,
159+
items: [
160+
{ text: 'Address', link: '/configure/address' },
161+
{ text: 'Attribute', link: '/configure/attribute' },
162+
{ text: 'Back Orders', link: '/configure/back-orders' },
163+
{ text: 'Captcha', link: '/configure/captcha' },
164+
{ text: 'Cart View Page', link: '/configure/cart-view-page' },
165+
{ text: 'Checkout', link: '/configure/checkout' },
166+
{ text: 'Configurable Choices', link: '/configure/configurable-choices' },
167+
{ text: 'Content', link: '/configure/content' },
168+
{ text: 'Custom Scripts', link: '/configure/custom-scripts' },
169+
{ text: 'Design', link: '/configure/design' },
170+
{ text: 'Email Settings', link: '/configure/email-settings' },
171+
{ text: 'Frontend', link: '/configure/frontend' },
172+
{ text: 'GDPR', link: '/configure/gdpr' },
173+
{ text: 'Guest Checkout', link: '/configure/guest-checkout' },
174+
{ text: 'Image Size', link: '/configure/image-size' },
175+
{ text: 'Invoice Settings', link: '/configure/invoice-settings' },
176+
{ text: 'Magic AI', link: '/configure/magic-ai' },
177+
{ text: 'Notifications', link: '/configure/notifications' },
178+
{ text: 'Order Settings', link: '/configure/orders-settings' },
179+
{ text: 'Payment Methods', link: '/configure/payment-methods' },
180+
{ text: 'Pricing', link: '/configure/pricing' },
181+
{ text: 'Product View Page', link: '/configure/product-view-page ' },
182+
{ text: 'Review', link: '/configure/review' },
183+
{ text: 'Rich Snippets', link: '/configure/rich-snippets' },
184+
{ text: 'Settings', link: '/configure/settings' },
185+
{ text: 'Shipping Methods', link: '/configure/shipping-methods' },
186+
{ text: 'Shipping', link: '/configure/shipping' },
187+
{ text: 'Social Share', link: '/configure/social-share' },
188+
{ text: 'Taxes', link: '/configure/taxes' },
189+
{ text: 'Weight Unit', link: '/configure/weight-unit' },
190+
191+
]
192+
},
193+
194+
{
195+
text: 'Shipping Methods',
196+
link: '/shipping-method/shipping-methods'
197+
},
198+
199+
{
200+
text: 'Payment Methods',
201+
link: '/payment-method/payment-methods'
202+
},
203+
204+
{
205+
text: 'Multi Vendor Marketplace',
206+
collapsed: false,
207+
items: [
208+
{ text: 'Vendor Management', link: '/multi-vendor-marketplace/vendor-management' },
209+
{ text: 'Order Management', link: '/multi-vendor-marketplace/order-management' },
210+
{ text: 'Commission Management', link: '/multi-vendor-marketplace/commission-management' },
211+
{ text: 'Product Management', link: '/multi-vendor-marketplace/product-management' },
212+
{ text: 'Rating Management', link: '/multi-vendor-marketplace/rating-management' },
213+
{ text: 'Payment Management', link: '/multi-vendor-marketplace/payment-management' },
214+
]
215+
},
216+
217+
{
218+
text: 'B2B Marketplace',
219+
collapsed: false,
220+
items: [
221+
{ text: 'Request for Quotes', link: '/b2b-marketplace/request-for-quotes' },
222+
{ text: 'Buyer Seller Communication', link: '/b2b-marketplace/buyer-seller-communication' },
223+
{ text: 'Supplier Microsite', link: '/b2b-marketplace/supplier-microsite' },
224+
{ text: 'Buying leads', link: '/b2b-marketplace/buying-leads' },
225+
{ text: 'Review Management', link: '/b2b-marketplace/b2b-marketplace-review' },
226+
]
227+
},
228+
229+
{
230+
text: 'Multi Tenant Ecommerce',
231+
collapsed: false,
232+
items: [
233+
{ text: 'Super Admin Management', link: '/multi-tenant-ecommerce/super-admin-management' },
234+
{ text: 'Tenant Management', link: '/multi-tenant-ecommerce/tenant-management' },
235+
{ text: 'CName Mapping', link: '/multi-tenant-ecommerce/cname-mapping' },
236+
]
237+
},
238+
],
239+
240+
outline: {
241+
level: 'deep'
242+
},
243+
244+
footer: {
245+
message: 'Released under the <a href="https://opensource.org/licenses/mit" target="_blank" class="mit-license">MIT License</a>.',
246+
copyright: `Copyright © ${new Date().getFullYear()} Webkul`
247+
},
248+
249+
socialLinks: [
250+
{ icon: 'github', link: 'https://github.com/bagisto/bagisto' }
251+
],
252+
253+
search: {
254+
provider: 'local'
255+
}
256+
},
257+
258+
buildEnd(siteConfig) {
259+
const outDir = siteConfig.outDir
260+
261+
Object.entries(redirects).forEach(([from, to]) => {
262+
if (from.includes('*')) {
263+
console.warn(`⚠️ Skipping wildcard redirect: ${from} -> ${to}`)
264+
return
265+
}
266+
267+
let filePath
268+
269+
if (from.endsWith('.html')) {
270+
filePath = path.join(outDir, from)
271+
} else {
272+
filePath = path.join(outDir, from, 'index.html')
273+
}
274+
275+
fs.mkdirSync(path.dirname(filePath), { recursive: true })
276+
fs.writeFileSync(filePath, makeRedirectHtml(to), 'utf-8')
277+
console.log(`✅ Redirect created: ${from} -> ${to}`)
278+
})
279+
}
280+
})

.vitepress/theme/Layout.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<template>
2+
<Layout>
3+
<template #nav-bar-content-after>
4+
<GoogleTranslate />
5+
</template>
6+
</Layout>
7+
</template>
8+
9+
<script setup>
10+
import DefaultTheme from 'vitepress/theme'
11+
import GoogleTranslate from './components/GoogleTranslate.vue'
12+
13+
const { Layout } = DefaultTheme
14+
</script>

0 commit comments

Comments
 (0)