Skip to content

Commit de3941c

Browse files
authored
Merge pull request #5 from terraphim/fix_CI
Fix ci and added cloudflare deployment
2 parents 2619355 + 3a14321 commit de3941c

103 files changed

Lines changed: 18134 additions & 2426 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.1password

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# 1Password Environment Template
2+
# This file contains secret references to 1Password vault items
3+
# Use with: op run --env-file=.env.1password -- command
4+
# Or: op inject -i .env.1password -o .env
5+
6+
# ⚠️ DO NOT COMMIT THIS FILE - IT CONTAINS SECRET REFERENCES
7+
# This file should be in .gitignore
8+
9+
# Required Cloudflare Secrets
10+
# Create these items in your 1Password vault: "MD-Book-Deployment"
11+
CLOUDFLARE_API_TOKEN="op://MD-Book-Deployment/Cloudflare/api_token"
12+
CLOUDFLARE_ACCOUNT_ID="op://MD-Book-Deployment/Cloudflare/account_id"
13+
14+
# Optional Custom Domains
15+
# Uncomment and set these if you have custom domains
16+
# PRODUCTION_DOMAIN="op://MD-Book-Deployment/Domains/production"
17+
# STAGING_DOMAIN="op://MD-Book-Deployment/Domains/staging"
18+
19+
# Build Configuration (these can remain as regular values)
20+
INPUT_DIR=test_input
21+
OUTPUT_DIR=dist
22+
SKIP_TESTS=false
23+
DEPLOY_WORKER=true
24+
25+
# Development Configuration
26+
DEV_PORT=3000
27+
WATCH_FILES=true
28+
29+
# Optional Analytics and Monitoring Secrets
30+
# Uncomment and set these in 1Password if needed
31+
# ANALYTICS_TOKEN="op://MD-Book-Deployment/Analytics/token"
32+
# ERROR_REPORTING_DSN="op://MD-Book-Deployment/ErrorReporting/dsn"
33+
34+
# Optional Email Configuration for Feedback
35+
# Uncomment and set these in 1Password if needed
36+
# FEEDBACK_EMAIL="op://MD-Book-Deployment/Email/feedback_address"
37+
# SMTP_HOST="op://MD-Book-Deployment/SMTP/host"
38+
# SMTP_PORT="op://MD-Book-Deployment/SMTP/port"
39+
# SMTP_USER="op://MD-Book-Deployment/SMTP/username"
40+
# SMTP_PASS="op://MD-Book-Deployment/SMTP/password"
41+
42+
# GitHub Integration (for scripts that sync secrets)
43+
# GITHUB_TOKEN="op://MD-Book-Deployment/GitHub/personal_access_token"
44+
45+
# 1Password Service Account for CI/CD
46+
# This should be set as a GitHub repository secret, not here
47+
# OP_SERVICE_ACCOUNT_TOKEN="ops_..."

.env.example

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Cloudflare Configuration
2+
# Get these from your Cloudflare dashboard
3+
4+
# Required: Your Cloudflare API Token
5+
# Create at: https://dash.cloudflare.com/profile/api-tokens
6+
# Permissions needed: Zone:Zone:Read, Zone:Page Rules:Edit, Account:Cloudflare Pages:Edit
7+
CLOUDFLARE_API_TOKEN=your_api_token_here
8+
9+
# Required: Your Cloudflare Account ID
10+
# Find at: https://dash.cloudflare.com/ (right sidebar)
11+
CLOUDFLARE_ACCOUNT_ID=your_account_id_here
12+
13+
# Optional: Custom domain for production
14+
# PRODUCTION_DOMAIN=docs.yourdomain.com
15+
16+
# Optional: Custom domain for staging
17+
# STAGING_DOMAIN=staging-docs.yourdomain.com
18+
19+
# Build Configuration
20+
# Input directory containing your Markdown files
21+
INPUT_DIR=test_input
22+
23+
# Output directory for generated HTML files
24+
OUTPUT_DIR=dist
25+
26+
# Skip tests during deployment (for faster deployments)
27+
SKIP_TESTS=false
28+
29+
# Deploy Cloudflare Worker along with Pages
30+
DEPLOY_WORKER=true
31+
32+
# Development Configuration
33+
# Port for local development server
34+
DEV_PORT=3000
35+
36+
# Enable file watching in development
37+
WATCH_FILES=true
38+
39+
# Analytics and Monitoring (Optional)
40+
# ANALYTICS_TOKEN=your_analytics_token
41+
# ERROR_REPORTING_DSN=your_error_reporting_dsn
42+
43+
# Email notifications for feedback (Optional)
44+
# FEEDBACK_EMAIL=feedback@yourdomain.com
45+
# SMTP_HOST=smtp.yourdomain.com
46+
# SMTP_PORT=587
47+
# SMTP_USER=your_smtp_user
48+
# SMTP_PASS=your_smtp_password

0 commit comments

Comments
 (0)