slidev-deployment
Deploy Slidev presentations to the web. Use this skill for GitHub Pages, Netlify, Vercel, and Docker deployments.
What this skill does
# Deploying Slidev Presentations
This skill covers deploying Slidev presentations as static websites to various hosting platforms, making your presentations accessible online.
## When to Use This Skill
- Sharing presentations via URL
- Hosting for conferences/events
- Creating permanent presentation archives
- Setting up CI/CD for presentations
- Embedding presentations in websites
## Building for Production
### Build Command
```bash
npx slidev build
```
Or via npm script:
```bash
npm run build
```
### Output
Creates `dist/` directory containing:
- `index.html`
- JavaScript bundles
- CSS files
- Asset files
### Build Options
```bash
# Custom output directory
npx slidev build --out public
# With base path (for subdirectories)
npx slidev build --base /presentations/my-talk/
# Enable PDF download
npx slidev build --download
# Exclude presenter notes (security)
npx slidev build --without-notes
```
## GitHub Pages
### Method 1: GitHub Actions (Recommended)
1. **Enable GitHub Pages**:
- Go to Settings → Pages
- Source: GitHub Actions
2. **Create workflow file** `.github/workflows/deploy.yml`:
```yaml
name: Deploy Slidev
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build -- --base /${{ github.event.repository.name }}/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
```
3. **Push to trigger deployment**
4. **Access at**: `https://<username>.github.io/<repo>/`
### Method 2: gh-pages Branch
```bash
npm install -D gh-pages
```
Add to `package.json`:
```json
{
"scripts": {
"deploy": "slidev build --base /repo-name/ && gh-pages -d dist"
}
}
```
Then:
```bash
npm run deploy
```
## Netlify
### Method 1: Netlify UI
1. Push code to GitHub/GitLab
2. Connect repo in Netlify dashboard
3. Configure:
- Build command: `npm run build`
- Publish directory: `dist`
### Method 2: netlify.toml
Create `netlify.toml`:
```toml
[build]
command = "npm run build"
publish = "dist"
[build.environment]
NODE_VERSION = "20"
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
```
Push and Netlify auto-deploys.
### Custom Domain
In Netlify dashboard:
1. Domain settings
2. Add custom domain
3. Configure DNS
## Vercel
### Method 1: Vercel CLI
```bash
npm install -g vercel
vercel
```
### Method 2: vercel.json
Create `vercel.json`:
```json
{
"buildCommand": "npm run build",
"outputDirectory": "dist",
"framework": null,
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" }
]
}
```
### Automatic Deployment
1. Import project in Vercel dashboard
2. Connect GitHub repo
3. Vercel auto-detects and deploys
## Cloudflare Pages
### Setup
1. Connect repo in Cloudflare Pages
2. Configure:
- Build command: `npm run build`
- Output directory: `dist`
3. Deploy
### wrangler.toml (Optional)
```toml
name = "my-presentation"
compatibility_date = "2024-01-01"
[site]
bucket = "./dist"
```
## Docker
### Dockerfile
```dockerfile
FROM node:20-alpine as builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
```
### nginx.conf
```nginx
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
}
```
### Build and Run
```bash
docker build -t my-presentation .
docker run -p 8080:80 my-presentation
```
### Docker Compose
```yaml
version: '3.8'
services:
presentation:
build: .
ports:
- "8080:80"
restart: unless-stopped
```
## Self-Hosted (Static Server)
### Using serve
```bash
npm install -g serve
npm run build
serve dist
```
### Using http-server
```bash
npm install -g http-server
npm run build
http-server dist
```
### Using Python
```bash
npm run build
cd dist
python -m http.server 8080
```
## Base Path Configuration
### For Subdirectories
If hosting at `https://example.com/slides/`:
```bash
npx slidev build --base /slides/
```
Or in frontmatter:
```yaml
---
base: /slides/
---
```
### Root Path
If hosting at root `https://example.com/`:
```bash
npx slidev build --base /
```
## Security Considerations
### Excluding Presenter Notes
```bash
npx slidev build --without-notes
```
Removes speaker notes from built version.
### Password Protection
For private presentations:
**Netlify**:
Use Netlify Identity or password protection feature.
**Vercel**:
Use Vercel Authentication.
**Custom**:
Add basic auth in server config.
### No Remote Control in Build
Built presentations don't include remote control by default.
## Environment Variables
### In Build
Create `.env`:
```
VITE_API_URL=https://api.example.com
```
Access in slides:
```vue
<script setup>
const apiUrl = import.meta.env.VITE_API_URL
</script>
```
### Platform-Specific
Set in platform dashboards (Netlify, Vercel, etc.)
## Custom Domain Setup
### DNS Configuration
| Type | Name | Value |
|------|------|-------|
| CNAME | www | platform-subdomain |
| A | @ | Platform IP |
### SSL/HTTPS
Most platforms provide free SSL:
- Netlify: Automatic
- Vercel: Automatic
- Cloudflare: Automatic
- GitHub Pages: Automatic
## CI/CD Workflows
### GitHub Actions (Full Example)
```yaml
name: Build and Deploy
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Export PDF
run: npm run export
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
- name: Upload PDF
uses: actions/upload-artifact@v4
with:
name: pdf
path: '*.pdf'
deploy:
needs: build
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Download Build
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Deploy to Production
# Add your deployment step
```
## Troubleshooting
### Build Fails
1. Check Node version (≥18)
2. Clear node_modules: `rm -rf node_modules && npm install`
3. Check for syntax errors in slides
### Assets Not Loading
1. Verify base path configuration
2. Check asset paths (use `/` prefix for public/)
3. Rebuild with correct base
### Fonts Missing
1. Use web fonts
2. Check font loading in styles
### Blank Page After Deploy
1. Check browser console for errors
2. Verify SPA routing configuration
3. Check base path matches URL
## Best Practices
1. **Test Build Locally**:
```bash
npm run build && npx serve dist
```
2. **Use CI/CD**: Automate deployments
3. **Version Your Deployments**: Use git tags
4. **Monitor Performance**: Check load times
5. **Keep URLs Stable**: Don't change paths frequRelated in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.