Skip to content

Link2Pay/docs-link2pay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Link2Pay Documentation

Official documentation for Link2Pay - Stellar blockchain payment infrastructure.

πŸš€ Quick Start

# Install dependencies
npm install

# Start development server
npm run docs:dev

# Build for production
npm run docs:build

# Preview production build
npm run docs:preview

πŸ“š Documentation Structure

docs/
β”œβ”€β”€ .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

πŸ› οΈ Technology Stack

  • VitePress - Fast, modern documentation framework
  • Vue 3 - Progressive JavaScript framework
  • Vite - Next-generation frontend tooling
  • Markdown - Content authoring

πŸ“ Writing Documentation

Markdown Features

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]
\`\`\`

File Organization

  • Use descriptive filenames (kebab-case)
  • Group related content in folders
  • Keep files focused (one topic per file)
  • Link between documents liberally

Style Guidelines

  1. Headers: Use sentence case
  2. Code: Always specify language for syntax highlighting
  3. Links: Use relative paths (/guide/concepts)
  4. Examples: Show both request and response
  5. Clarity: Write for beginners, link to advanced topics

πŸš€ Deployment

Vercel (Recommended)

Deploy with Vercel

Manual deployment:

  1. Push to GitHub
  2. Import project in Vercel
  3. Set build command: npm run docs:build
  4. Set output directory: docs/.vitepress/dist
  5. Deploy!

Netlify

Deploy to Netlify

Configuration (netlify.toml):

[build]
  command = "npm run docs:build"
  publish = "docs/.vitepress/dist"

[[redirects]]
  from = "/*"
  to = "/index.html"
  status = 200

GitHub Pages

GitHub 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/dist

🀝 Contributing

We welcome contributions! Here's how:

Adding New Documentation

  1. Create a new markdown file in the appropriate directory
  2. Add to sidebar in docs/.vitepress/config.ts
  3. Write content following style guidelines
  4. Test locally with npm run docs:dev
  5. Submit PR with clear description

Fixing Typos/Errors

  1. Click "Edit this page on GitHub" at bottom of any page
  2. Make changes directly in GitHub UI
  3. Submit PR

Reporting Issues

Found a problem? Open an issue with:

  • Page URL
  • Description of issue
  • Suggested improvement (optional)

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ”— Links

πŸ’¬ Support

Need help?


Built with ❀️ by the Link2Pay team

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors