Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/workflows/auto-deploy.yaml

This file was deleted.

64 changes: 21 additions & 43 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,53 +1,31 @@
---
name: Deploy Astro Site to R2
name: Deploy

on:
workflow_call:
inputs:
R2_ACCOUNT_ID:
type: string
required: true
R2_ACCESS_KEY_ID:
type: string
required: true
R2_BUCKET_NAME:
type: string
required: true
secrets:
R2_SECRET_ACCESS_KEY:
required: true
push:
branches:
- main

jobs:
build-and-deploy:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
strategy:
matrix:
node-version: [22]

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
name: Build and Deploy
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v4

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Build Astro site
run: pnpm run build
- name: Build project
run: pnpm build

- name: Sync to R2 bucket
env:
AWS_ACCESS_KEY_ID: ${{ inputs.R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: auto
run: |
aws s3 sync dist/ s3://${{ inputs.R2_BUCKET_NAME }} \
--endpoint-url https://${{ inputs.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com \
--delete
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: deploy
15 changes: 0 additions & 15 deletions .github/workflows/manual-deploy.yaml

This file was deleted.

60 changes: 30 additions & 30 deletions astro.config.mjs → astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// @ts-check
import { defineConfig } from "astro/config";
import cloudflare from "@astrojs/cloudflare";
import starlight from "@astrojs/starlight";
import { defineConfig } from "astro/config";

export default defineConfig({
trailingSlash: "always",
adapter: cloudflare(),
integrations: [
starlight({
title: "Fiberplane",
logo: {
src: "./public/logo.svg",
},
components: {
ThemeSelect: './src/components/ThemeSelect.astro',
ThemeSelect: "./src/components/ThemeSelect.astro",
},
social: [
{
Expand Down Expand Up @@ -55,34 +55,34 @@ export default defineConfig({
label: "MCP Lite",
collapsed: false,
items: [
{ label: "Overview", link: "/mcp-lite/" },
{ label: "Getting Started", link: "/mcp-lite/getting-started/" },
{ label: "Overview", link: "/mcp-lite" },
{ label: "Getting Started", link: "/mcp-lite/getting-started" },
{
label: "Core Concepts",
collapsed: false,
items: [
{ label: "Tools", link: "/mcp-lite/core-concepts/tools/" },
{ label: "Tools", link: "/mcp-lite/core-concepts/tools" },
{
label: "Resources",
link: "/mcp-lite/core-concepts/resources/",
link: "/mcp-lite/core-concepts/resources",
},
{ label: "Prompts", link: "/mcp-lite/core-concepts/prompts/" },
{ label: "Prompts", link: "/mcp-lite/core-concepts/prompts" },
{
label: "Type Safety",
link: "/mcp-lite/core-concepts/type-safety/",
link: "/mcp-lite/core-concepts/type-safety",
},
],
},
{
label: "Features",
collapsed: false,
items: [
{ label: "Middleware", link: "/mcp-lite/features/middleware/" },
{ label: "Sessions", link: "/mcp-lite/features/sessions/" },
{ label: "Adapters", link: "/mcp-lite/features/adapters/" },
{ label: "Middleware", link: "/mcp-lite/features/middleware" },
{ label: "Sessions", link: "/mcp-lite/features/sessions" },
{ label: "Adapters", link: "/mcp-lite/features/adapters" },
{
label: "Error Handling",
link: "/mcp-lite/features/error-handling/",
link: "/mcp-lite/features/error-handling",
},
],
},
Expand All @@ -92,12 +92,12 @@ export default defineConfig({
items: [
{
label: "Elicitation",
link: "/mcp-lite/advanced/elicitation/",
link: "/mcp-lite/advanced/elicitation",
},
{ label: "Sampling", link: "/mcp-lite/advanced/sampling/" },
{ label: "Sampling", link: "/mcp-lite/advanced/sampling" },
{
label: "Protocol Versions",
link: "/mcp-lite/advanced/protocol-versions/",
link: "/mcp-lite/advanced/protocol-versions",
},
],
},
Expand All @@ -107,38 +107,38 @@ export default defineConfig({
items: [
{
label: "Runtime Environments",
link: "/mcp-lite/deployment/environments/",
link: "/mcp-lite/deployment/environments",
},
{
label: "Deployment Patterns",
link: "/mcp-lite/deployment/patterns/",
link: "/mcp-lite/deployment/patterns",
},
],
},
{ label: "Examples", link: "/mcp-lite/examples/" },
{ label: "Examples", link: "/mcp-lite/examples" },
],
},
{
label: "MCP Gateway",
collapsed: true,
items: [
{ label: "Overview", link: "/mcp-gateway/" },
{ label: "Getting Started", link: "/mcp-gateway/getting-started/" },
{ label: "Overview", link: "/mcp-gateway" },
{ label: "Getting Started", link: "/mcp-gateway/getting-started" },
{
label: "Core Concepts",
collapsed: false,
items: [
{
label: "Server Management",
link: "/mcp-gateway/core-concepts/server-management/",
link: "/mcp-gateway/core-concepts/server-management",
},
{
label: "Activity Logging",
link: "/mcp-gateway/core-concepts/activity-logging/",
link: "/mcp-gateway/core-concepts/activity-logging",
},
{
label: "Interfaces",
link: "/mcp-gateway/core-concepts/interfaces/",
link: "/mcp-gateway/core-concepts/interfaces",
},
],
},
Expand All @@ -148,23 +148,23 @@ export default defineConfig({
items: [
{
label: "CLI Options",
link: "/mcp-gateway/features/cli-options/",
link: "/mcp-gateway/features/cli-options",
},
{
label: "Terminal UI",
link: "/mcp-gateway/features/terminal-ui/",
link: "/mcp-gateway/features/terminal-ui",
},
{
label: "Web Interface",
link: "/mcp-gateway/features/web-interface/",
link: "/mcp-gateway/features/web-interface",
},
{
label: "Storage & Registry",
link: "/mcp-gateway/features/storage/",
link: "/mcp-gateway/features/storage",
},
],
},
{ label: "Troubleshooting", link: "/mcp-gateway/troubleshooting/" },
{ label: "Troubleshooting", link: "/mcp-gateway/troubleshooting" },
],
},
],
Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@
},
"dependencies": {
"@astrojs/check": "^0.9.5",
"@astrojs/cloudflare": "^12.6.10",
"@astrojs/starlight": "^0.36.1",
"@fontsource/geist-mono": "^5.2.7",
"@fontsource/geist-sans": "^5.2.5",
"astro": "^5.6.1",
"sharp": "^0.34.2",
"starlight-theme-black": "^0.6.0",
"typescript": "^5.9.3"
"starlight-theme-black": "^0.6.0"
},
"devDependencies": {
"typescript": "^5.9.3",
"wrangler": "^4.45.3"
}
}
}
Loading