Add production docs deployment
- Add Dockerfile with multi-stage build (node -> caddy) - Add docker-compose.yml for caddy-docker-proxy - Update astro.config.mjs with production site URL - Add Documentation link to README.md header - Add Documentation URL to pyproject.toml
This commit is contained in:
parent
b87a6ba1b6
commit
b0aa6434ae
@ -5,11 +5,11 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
|
<a href="https://mcbluetooth.supported.systems">Documentation</a> •
|
||||||
<a href="#installation">Installation</a> •
|
<a href="#installation">Installation</a> •
|
||||||
<a href="#quick-start">Quick Start</a> •
|
<a href="#quick-start">Quick Start</a> •
|
||||||
<a href="#features">Features</a> •
|
<a href="#features">Features</a> •
|
||||||
<a href="#tools-reference">Tools</a> •
|
<a href="#tools-reference">Tools</a>
|
||||||
<a href="#architecture">Architecture</a>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
|
|||||||
12
docs-site/Dockerfile
Normal file
12
docs-site/Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Build stage
|
||||||
|
FROM node:22-alpine AS builder
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm ci
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
# Serve stage
|
||||||
|
FROM caddy:2-alpine
|
||||||
|
COPY --from=builder /app/dist /srv
|
||||||
|
CMD ["caddy", "file-server", "--root", "/srv", "--listen", ":80"]
|
||||||
@ -6,7 +6,7 @@ import icon from 'astro-icon';
|
|||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
// Site URL for sitemap generation
|
// Site URL for sitemap generation
|
||||||
site: 'https://mcbluetooth.example.com',
|
site: 'https://mcbluetooth.supported.systems',
|
||||||
|
|
||||||
// Disable telemetry
|
// Disable telemetry
|
||||||
telemetry: false,
|
telemetry: false,
|
||||||
|
|||||||
13
docs-site/docker-compose.yml
Normal file
13
docs-site/docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
services:
|
||||||
|
docs:
|
||||||
|
build: .
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- caddy
|
||||||
|
labels:
|
||||||
|
caddy: ${DOCS_DOMAIN:-mcbluetooth.supported.systems}
|
||||||
|
caddy.reverse_proxy: "{{upstreams 80}}"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
caddy:
|
||||||
|
external: true
|
||||||
@ -43,6 +43,7 @@ dev = [
|
|||||||
mcbluetooth = "mcbluetooth:main"
|
mcbluetooth = "mcbluetooth:main"
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
|
Documentation = "https://mcbluetooth.supported.systems"
|
||||||
Repository = "https://git.supported.systems/MCP/mcbluetooth"
|
Repository = "https://git.supported.systems/MCP/mcbluetooth"
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user