Official documentation for Link2Pay - Stellar blockchain payment infrastructure.
# Install dependencies
npm install
# Start development server
npm run docs:dev
# Build for production
npm run docs:build
# Preview production build
npm run docs:previewdocs/
βββ .vitepress/
β βββ config.ts # VitePress configuration
βββ index.md # Homepage
βββ guide/ # User guides
β βββ introduction.md
β βββ why-link2pay.md
β βββ quick-start.md
β βββ concepts.md
β βββ features/ # Feature guides
β β βββ payment-links.md
β β βββ invoicing.md
β β βββ multi-asset.md
β β βββ network-detection.md
β β βββ settlement.md
β βββ integration/ # Integration guides
β β βββ frontend.md
β β βββ backend.md
β β βββ webhooks.md
β β βββ authentication.md
β βββ advanced/ # Advanced topics
β βββ security.md
β βββ architecture.md
β βββ database.md
β βββ watcher.md
βββ api/ # API Reference
β βββ overview.md
β βββ authentication.md
β βββ rate-limits.md
β βββ errors.md
β βββ endpoints/ # API endpoints
β β βββ auth.md
β β βββ invoices.md
β β βββ payments.md
β β βββ links.md
β β βββ clients.md
β β βββ prices.md
β βββ resources/ # Data models
β βββ invoice.md
β βββ payment.md
β βββ client.md
βββ sdk/ # SDK Documentation
βββ overview.md
βββ installation.md
βββ hooks/ # React hooks
β βββ use-wallet.md
β βββ use-invoice.md
β βββ use-payment.md
β βββ use-network.md
βββ examples/ # Code examples
βββ create-invoice.md
βββ process-payment.md
βββ payment-button.md
- VitePress - Fast, modern documentation framework
- Vue 3 - Progressive JavaScript framework
- Vite - Next-generation frontend tooling
- Markdown - Content authoring
VitePress supports enhanced markdown:
Code blocks with syntax highlighting:
\`\`\`typescript
const invoice = await api.createInvoice({
amount: 100,
currency: "USDC"
});
\`\`\`Admonitions:
::: tip
This is a helpful tip
:::
::: warning
This is a warning
:::
::: danger
This is dangerous information
:::Custom containers:
::: details Click to expand
Hidden content
:::Mermaid diagrams:
\`\`\`mermaid
graph LR
A[Start] --> B[Process]
B --> C[End]
\`\`\`- Use descriptive filenames (kebab-case)
- Group related content in folders
- Keep files focused (one topic per file)
- Link between documents liberally
- Headers: Use sentence case
- Code: Always specify language for syntax highlighting
- Links: Use relative paths (
/guide/concepts) - Examples: Show both request and response
- Clarity: Write for beginners, link to advanced topics
Manual deployment:
- Push to GitHub
- Import project in Vercel
- Set build command:
npm run docs:build - Set output directory:
docs/.vitepress/dist - Deploy!
Configuration (netlify.toml):
[build]
command = "npm run docs:build"
publish = "docs/.vitepress/dist"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200GitHub Actions workflow (.github/workflows/deploy.yml):
name: Deploy Docs
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run docs:build
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vitepress/distWe welcome contributions! Here's how:
- Create a new markdown file in the appropriate directory
- Add to sidebar in
docs/.vitepress/config.ts - Write content following style guidelines
- Test locally with
npm run docs:dev - Submit PR with clear description
- Click "Edit this page on GitHub" at bottom of any page
- Make changes directly in GitHub UI
- Submit PR
Found a problem? Open an issue with:
- Page URL
- Description of issue
- Suggested improvement (optional)
MIT License - see LICENSE file for details.
- Live Docs: https://docs.link2pay.dev
- Main App: https://app.link2pay.dev
- GitHub: https://github.com/Link2Pay
- Discord: Join Community
Need help?
- π Read the docs (you are here!)
- π¬ Join our Discord
- π Report issues
- π§ Email: [email protected]
Built with β€οΈ by the Link2Pay team