Skip to content

Commit

Permalink
vitepress init
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Jun 22, 2024
1 parent f15232b commit 8216ad2
Show file tree
Hide file tree
Showing 210 changed files with 4,192 additions and 2,509 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ laravel-wallet - Easy work with virtual wallet.

[[Benchmark](https://github.com/bavix/laravel-wallet-benchmark/)]
[[Documentation](https://bavix.github.io/laravel-wallet/)]
[[Get Started](https://bavix.github.io/laravel-wallet/#/basic-usage)]
[[Get Started](https://bavix.github.io/laravel-wallet/guide/introduction/)]

* **Vendor**: bavix
* **Package**: laravel-wallet
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}
},
"scripts": {
"docs": "@php -S localhost:3000 -t ./docs",
"docs": "@php -S localhost:3000 -t old_docs",
"parabench":"@php ./vendor/bin/testbench package:test --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
"infect": "@php vendor/bin/infection --coverage=build --min-msi=50 -j$(nproc) --only-covering-test-cases",
"phpstan": ["@phpstan-src", "@phpstan-tests"],
Expand Down
Empty file removed docs/.nojekyll
Empty file.
1 change: 1 addition & 0 deletions docs/.vitepress/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cache/
138 changes: 138 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Laravel Wallet",
description: "Easy work with virtual wallet",
base: '/laravel-wallet/',
head: [
[
'script',
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-LNEGT551DV' }
],
[
'script',
{},
`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-LNEGT551DV');`
]
],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
search: {
provider: 'local'
},
editLink: {
pattern: 'https://github.com/bavix/laravel-wallet/edit/master/docs/:path'
},
nav: [
{ text: 'Home', link: '/' },
{ text: 'Guide', link: '/guide/introduction/' },
{ text: 'Chat', link: 'https://t.me/laravel_wallet' },
{ text: 'Issues', link: 'https://github.com/bavix/laravel-wallet/issues' },
{ text: 'Discussions', link: 'https://github.com/bavix/laravel-wallet/discussions' },
{ text: 'Donate', link: 'https://opencollective.com/laravel-wallet' },
],

sidebar: [
{
text: 'Getting started',
items: [
{ text: 'Introduction', link: '/guide/introduction/' },
{ text: 'Installation', link: '/guide/introduction/installation' },
{ text: 'Configuration', link: '/guide/introduction/configuration' },
{ text: 'Basic Usage', link: '/guide/introduction/basic-usage' },
{ text: 'Upgrade', link: '/guide/introduction/upgrade' },
]
},
{
text: 'Single/Default Wallet',
items: [
{ text: 'Deposit', link: '/guide/single/deposit' },
{ text: 'Withdraw', link: '/guide/single/withdraw' },
{ text: 'Transfer', link: '/guide/single/transfer' },
{ text: 'Refresh Balance', link: '/guide/single/refresh' },
{ text: 'Confirm Transaction', link: '/guide/single/confirm' },
{ text: 'Cancel Transaction', link: '/guide/single/cancel' },
{ text: 'Exchange', link: '/guide/single/exchange' },
{ text: 'Credit Limits', link: '/guide/single/credit-limits' },
]
},
{
text: 'Multi Wallet',
items: [
{ text: 'New Wallet', link: '/guide/multi/new-wallet' },
{ text: 'Transfer', link: '/guide/multi/transfer' },
{ text: 'Transaction Filter', link: '/guide/multi/transaction-filter' },
]
},
{
text: 'Fractional Wallet',
items: [
{ text: 'Deposit', link: '/guide/fractional/deposit' },
{ text: 'Withdraw', link: '/guide/fractional/withdraw' },
{ text: 'Transfer', link: '/guide/fractional/transfer' },
]
},
{
text: 'Purchases',
items: [
{ text: 'Payment', link: '/guide/purchases/payment' },
{ text: 'Payment Free', link: '/guide/purchases/payment-free' },
{ text: 'Refund', link: '/guide/purchases/refund' },
{ text: 'Gift', link: '/guide/purchases/gift' },
{ text: 'Cart', link: '/guide/purchases/cart' },
{ text: 'Commissions', link: '/guide/purchases/commissions' },
{ text: 'Customize receiving', link: '/guide/purchases/receiving' },
]
},
{
text: 'Database Transaction',
items: [
{ text: 'Atomic Service', link: '/guide/db/atomic-service' },
{ text: 'Race Condition', link: '/guide/db/race-condition' },
{ text: 'Transaction', link: '/guide/db/transaction' },
]
},
{
text: 'Events',
items: [
{ text: 'Balance Updated', link: '/guide/events/balance-updated-event' },
{ text: 'Wallet Created', link: '/guide/events/wallet-created-event' },
{ text: 'Transaction Created', link: '/guide/events/transaction-created-event' },
{ text: 'Customize', link: '/guide/events/customize' },
]
},
{
text: 'Helpers',
items: [
{ text: 'Formatter', link: '/guide/helpers/formatter' },
]
},
{
text: 'High performance api handles',
items: [
{ text: 'Batch Transactions', link: '/guide/high-performance/batch-transactions' },
{ text: 'Batch Transfers', link: '/guide/high-performance/batch-transfers' },
]
},
{
text: 'CQRS',
items: [
{ text: 'Create Wallet', link: '/guide/cqrs/create-wallet' },
]
},
],

socialLinks: [
{ icon: 'github', link: 'https://github.com/bavix/laravel-wallet' },
],

footer: {
message: 'Released under the <a href="https://github.com/bavix/laravel-wallet/blob/master/LICENSE">MIT License</a>.',
copyright: 'Copyright © 2018-present <a href="https://github.com/rez1dent3">Babichev Maksim</a>'
}
}
})
23 changes: 23 additions & 0 deletions docs/.vitepress/dist/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>404 | Laravel Wallet</title>
<meta name="description" content="Not Found">
<meta name="generator" content="VitePress v1.2.3">
<link rel="preload stylesheet" href="/laravel-wallet/assets/style.A34_PHSu.css" as="style">

<script type="module" src="/laravel-wallet/assets/app.Bju71ejy.js"></script>
<link rel="preload" href="/laravel-wallet/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LNEGT551DV"></script>
<script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("js",new Date),gtag("config","G-LNEGT551DV");</script>
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
</head>
<body>
<div id="app"></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"include_models_user_simple_float.md\":\"BHKtZpXH\",\"guide_events_transaction-created-event.md\":\"Duh3XbkM\",\"guide_db_transaction.md\":\"CZUiznZz\",\"include_eager_loading.md\":\"DEcAtRed\",\"guide_db_race-condition.md\":\"Bk_sun3W\",\"guide_events_wallet-created-event.md\":\"CK_r0lzx\",\"guide_events_customize.md\":\"9V6b1Caz\",\"include_composer.md\":\"Bahh6vzC\",\"guide_fractional_deposit.md\":\"BWDu9S8t\",\"guide_fractional_withdraw.md\":\"e7s23Eiv\",\"guide_helpers_formatter.md\":\"DgY9iwej\",\"guide_fractional_transfer.md\":\"B94kgHWa\",\"guide_introduction_configuration.md\":\"BkIk8Nu_\",\"guide_multi_transfer.md\":\"CmmGlTvH\",\"guide_high-performance_batch-transactions.md\":\"BEEhiD5t\",\"include_models_user_simple.md\":\"DWW_tdne\",\"guide_additions_laravel-wallet-swap.md\":\"CAXVUHnE\",\"guide_events_balance-updated-event.md\":\"CBcnawJm\",\"guide_db_atomic-service.md\":\"csSpqsjE\",\"guide_introduction_index.md\":\"OLZq5yD4\",\"guide_cqrs_create-wallet.md\":\"BIpY-lGh\",\"guide_additions_laravel-wallet-uuid.md\":\"DIFSzon4\",\"guide_multi_new-wallet.md\":\"C77SSs4v\",\"guide_purchases_receiving.md\":\"DgdGYpnV\",\"guide_multi_transaction-filter.md\":\"BJcsCpfk\",\"guide_high-performance_batch-transfers.md\":\"CDYVA106\",\"guide_purchases_payment-free.md\":\"BkfY0cCS\",\"guide_purchases_refund.md\":\"Cvi1Vscy\",\"guide_introduction_basic-usage.md\":\"8BCaXADC\",\"guide_purchases_cart.md\":\"9T34pvFh\",\"guide_introduction_upgrade.md\":\"DAWn6XRt\",\"guide_single_confirm.md\":\"e4AeBLuv\",\"guide_introduction_installation.md\":\"cd8KQDEh\",\"guide_purchases_payment.md\":\"CqJ47XjU\",\"guide_single_deposit.md\":\"DWjBMxNa\",\"guide_single_credit-limits.md\":\"m6HNPX38\",\"guide_single_cancel.md\":\"CNo1Ld3C\",\"guide_single_transfer.md\":\"BGFEmOXn\",\"guide_single_refresh.md\":\"RmgocjVW\",\"guide_purchases_gift.md\":\"BL1g8j1n\",\"index.md\":\"CxOcTylj\",\"guide_single_exchange.md\":\"DHAqruLi\",\"guide_single_withdraw.md\":\"Cqspz8GJ\",\"guide_single_taxing.md\":\"t-q6--Yk\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Laravel Wallet\",\"description\":\"Easy work with virtual wallet\",\"base\":\"/laravel-wallet/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"search\":{\"provider\":\"local\"},\"editLink\":{\"pattern\":\"https://github.com/bavix/laravel-wallet/edit/master/docs/:path\"},\"nav\":[{\"text\":\"Home\",\"link\":\"/\"},{\"text\":\"Guide\",\"link\":\"/guide/introduction/\"},{\"text\":\"Chat\",\"link\":\"https://t.me/laravel_wallet\"},{\"text\":\"Issues\",\"link\":\"https://github.com/bavix/laravel-wallet/issues\"},{\"text\":\"Discussions\",\"link\":\"https://github.com/bavix/laravel-wallet/discussions\"},{\"text\":\"Donate\",\"link\":\"https://opencollective.com/laravel-wallet\"}],\"sidebar\":[{\"text\":\"Getting started\",\"items\":[{\"text\":\"Introduction\",\"link\":\"/guide/introduction/\"},{\"text\":\"Installation\",\"link\":\"/guide/introduction/installation\"},{\"text\":\"Configuration\",\"link\":\"/guide/introduction/configuration\"},{\"text\":\"Basic Usage\",\"link\":\"/guide/introduction/basic-usage\"},{\"text\":\"Upgrade\",\"link\":\"/guide/introduction/upgrade\"}]},{\"text\":\"Single Wallet\",\"items\":[{\"text\":\"Deposit\",\"link\":\"/guide/single/deposit\"},{\"text\":\"Withdraw\",\"link\":\"/guide/single/withdraw\"},{\"text\":\"Transfer\",\"link\":\"/guide/single/transfer\"},{\"text\":\"Refresh Balance\",\"link\":\"/guide/single/refresh\"},{\"text\":\"Confirm Transaction\",\"link\":\"/guide/single/confirm\"},{\"text\":\"Cancel Transaction\",\"link\":\"/guide/single/cancel\"},{\"text\":\"Exchange\",\"link\":\"/guide/single/exchange\"},{\"text\":\"Taxing\",\"link\":\"/guide/single/taxing\"},{\"text\":\"Credit Limits\",\"link\":\"/guide/single/credit-limits\"}]},{\"text\":\"Multi Wallet\",\"items\":[{\"text\":\"New Wallet\",\"link\":\"/guide/multi/new-wallet\"},{\"text\":\"Transfer\",\"link\":\"/guide/multi/transfer\"},{\"text\":\"Transaction Filter\",\"link\":\"/guide/multi/transaction-filter\"}]},{\"text\":\"Fractional Wallet\",\"items\":[{\"text\":\"Deposit\",\"link\":\"/guide/fractional/deposit\"},{\"text\":\"Withdraw\",\"link\":\"/guide/fractional/withdraw\"},{\"text\":\"Transfer\",\"link\":\"/guide/fractional/transfer\"}]},{\"text\":\"Purchases\",\"items\":[{\"text\":\"Payment\",\"link\":\"/guide/purchases/payment\"},{\"text\":\"Payment Free\",\"link\":\"/guide/purchases/payment-free\"},{\"text\":\"Refund\",\"link\":\"/guide/purchases/refund\"},{\"text\":\"Gift\",\"link\":\"/guide/purchases/gift\"},{\"text\":\"Cart\",\"link\":\"/guide/purchases/cart\"},{\"text\":\"Customize receiving\",\"link\":\"/guide/purchases/receiving\"}]},{\"text\":\"Database Transaction\",\"items\":[{\"text\":\"Atomic Service\",\"link\":\"/guide/db/atomic-service\"},{\"text\":\"Race Condition\",\"link\":\"/guide/db/race-condition\"},{\"text\":\"Transaction\",\"link\":\"/guide/db/transaction\"}]},{\"text\":\"Events\",\"items\":[{\"text\":\"Balance Updated\",\"link\":\"/guide/events/balance-updated-event\"},{\"text\":\"Wallet Created\",\"link\":\"/guide/events/wallet-created-event\"},{\"text\":\"Transaction Created\",\"link\":\"/guide/events/transaction-created-event\"},{\"text\":\"Customize\",\"link\":\"/guide/events/customize\"}]},{\"text\":\"Helpers\",\"items\":[{\"text\":\"Formatter\",\"link\":\"/guide/helpers/formatter\"}]},{\"text\":\"High performance api handles\",\"items\":[{\"text\":\"Batch Transactions\",\"link\":\"/guide/high-performance/batch-transactions\"},{\"text\":\"Batch Transfers\",\"link\":\"/guide/high-performance/batch-transfers\"}]},{\"text\":\"CQRS\",\"items\":[{\"text\":\"Create Wallet\",\"link\":\"/guide/cqrs/create-wallet\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/bavix/laravel-wallet\"}],\"footer\":{\"message\":\"Released under the <a href=\\\"https://github.com/bavix/laravel-wallet/blob/master/LICENSE\\\">MIT License</a>.\",\"copyright\":\"Copyright © 2018-present <a href=\\\"https://github.com/rez1dent3\\\">Babichev Maksim</a>\"}},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>

</body>
</html>
26 changes: 26 additions & 0 deletions docs/.vitepress/dist/_include/composer.html

Large diffs are not rendered by default.

42 changes: 42 additions & 0 deletions docs/.vitepress/dist/_include/eager_loading.html

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions docs/.vitepress/dist/_include/models/user_simple.html

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions docs/.vitepress/dist/_include/models/user_simple_float.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/.vitepress/dist/assets/app.Bju71ejy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Loading

0 comments on commit 8216ad2

Please sign in to comment.