Thanks to visit codestin.com
Credit goes to github.com

Skip to content

perkd/perkd.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Perkd Partner Documentation

Official API documentation for Perkd Partner integrations.

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • Yarn (install with npm install -g yarn)

Installation

# Install dependencies
yarn install

# Start local dev server
yarn docs:dev

Visit http://localhost:5173 to view the docs locally.

Build

# Build static site
yarn docs:build

# Preview production build
yarn docs:preview

πŸ“ Project Structure

perkd.github.io/
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ .vitepress/
β”‚   β”‚   └── config.ts          # VitePress configuration
β”‚   β”‚
β”‚   β”œβ”€β”€ getting-started/        # Getting started guides
β”‚   β”‚   β”œβ”€β”€ index.md
β”‚   β”‚   β”œβ”€β”€ setup.md
β”‚   β”‚   β”œβ”€β”€ environments.md
β”‚   β”‚   └── authentication.md
β”‚   β”‚
β”‚   β”œβ”€β”€ machines/               # Machine APIs
β”‚   β”‚   β”œβ”€β”€ vending/
β”‚   β”‚   β”œβ”€β”€ kiosk/
β”‚   β”‚   β”œβ”€β”€ callbacks/
β”‚   β”‚   └── payment/
β”‚   β”‚
β”‚   β”œβ”€β”€ schemas/                # Data schemas
β”‚   β”‚   β”œβ”€β”€ order.md
β”‚   β”‚   β”œβ”€β”€ item.md
β”‚   β”‚   └── ...
β”‚   β”‚
β”‚   β”œβ”€β”€ guides/                 # Conceptual guides
β”‚   β”‚   └── ...
β”‚   β”‚
β”‚   └── index.md                # Landing page
β”‚
β”œβ”€β”€ .github/
β”‚   └── workflows/
β”‚       └── deploy.yml          # Auto-deploy to GitHub Pages
β”‚
└── package.json

πŸ› οΈ Development

Running Locally

yarn docs:dev

The site will be available at http://localhost:5173 with hot module replacement.

Writing Documentation

All documentation is written in Markdown with VitePress extensions:

# Page Title

Regular markdown content...

::: tip
Helpful tips appear in blue boxes
:::

::: warning
Warnings appear in yellow boxes
:::

::: danger
Critical warnings appear in red boxes
:::

\`\`\`javascript
// Code blocks support syntax highlighting
const api = 'https://api.perkd.io/prod';
\`\`\`

Navigation Structure

Edit navigation in docs/.vitepress/config.ts:

export default defineConfig({
  themeConfig: {
    nav: [...],
    sidebar: {...}
  }
})

🚒 Deployment

Deploy to GitHub Pages

Simple one-command deployment:

yarn docs:deploy

This will:

  1. Build the documentation
  2. Deploy to gh-pages branch
  3. Update the live site at https://perkd.github.io

First-Time Setup

After your first deployment:

  1. Go to repository Settings β†’ Pages
  2. Source: Deploy from a branch
  3. Branch: gh-pages
  4. Folder: / (root)
  5. Click Save

Your site will be live at: https://perkd.github.io

Deployment Time

Deployment typically completes in ~30 seconds.

πŸ“ Content Guidelines

Adding a New Page

  1. Create markdown file in appropriate directory
  2. Add to navigation in docs/.vitepress/config.ts
  3. Use clear, scannable formatting
  4. Include code examples
  5. Link to related pages

Code Examples

  • Provide working examples
  • Use realistic data
  • Show both request and response
  • Include error handling
  • Support multiple languages when relevant

API Reference Format

## Endpoint Name

### Endpoint
\`\`\`
POST /Actions/vending
\`\`\`

### Request
**Headers:**
\`\`\`http
x-api-key: YOUR_API_KEY
\`\`\`

**Body:**
\`\`\`json
{...}
\`\`\`

### Response
\`\`\`json
{...}
\`\`\`

πŸ”§ Configuration

Base URL

Update in docs/.vitepress/config.ts:

export default defineConfig({
  base: '/', // Change if deploying to subdirectory
  // ...
})

Theme Customization

VitePress uses the default theme. Customize colors, fonts, and layout in:

  • docs/.vitepress/config.ts - Theme config
  • docs/.vitepress/theme/ - Custom theme overrides (create as needed)

Search

Local search is enabled by default:

export default defineConfig({
  themeConfig: {
    search: {
      provider: 'local'
    }
  }
})

πŸ“š Resources

🀝 Contributing

  1. Create a feature branch
  2. Make your changes
  3. Test locally with npm run docs:dev
  4. Submit a pull request

πŸ“„ License

MIT License - See LICENSE file for details

πŸ†˜ Support

For questions or issues with the documentation:

  • Open an issue on GitHub
  • Contact the Perkd team

For API support:

About

developer resources for Perkd Partners

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •