Skip to content

Commit e5e5e2b

Browse files
authored
Merge pull request #121 from Dokploy/feat/add-templates-ref
Feat/add templates ref
2 parents 851d4ac + 65e39b2 commit e5e5e2b

File tree

11 files changed

+3001
-917
lines changed

11 files changed

+3001
-917
lines changed

Dockerfile.docs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --filter=./apps/d
1414
# Generate OpenAPI documentation from apps/docs/public/openapi.json
1515
RUN pnpm --filter=./apps/docs run build:docs
1616

17+
# Generate templates
18+
RUN pnpm --filter=./apps/docs run generate-templates
1719
# Deploy only the dokploy app
1820

1921
ENV NODE_ENV=production

apps/docs/content/docs/api/registry.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ _openapi:
2121
- depth: 2
2222
title: Registry test Registry
2323
url: '#registry-test-registry'
24+
- depth: 2
25+
title: Registry test Registry By Id
26+
url: '#registry-test-registry-by-id'
2427
structuredData:
2528
headings:
2629
- content: Registry create
@@ -35,9 +38,11 @@ _openapi:
3538
id: registry-one
3639
- content: Registry test Registry
3740
id: registry-test-registry
41+
- content: Registry test Registry By Id
42+
id: registry-test-registry-by-id
3843
contents: []
3944
---
4045

4146
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
4247

43-
<APIPage document={"./public/openapi.json"} webhooks={[]} operations={[{"path":"/registry.create","method":"post"},{"path":"/registry.remove","method":"post"},{"path":"/registry.update","method":"post"},{"path":"/registry.all","method":"get"},{"path":"/registry.one","method":"get"},{"path":"/registry.testRegistry","method":"post"}]} showTitle={true} />
48+
<APIPage document={"./public/openapi.json"} webhooks={[]} operations={[{"path":"/registry.create","method":"post"},{"path":"/registry.remove","method":"post"},{"path":"/registry.update","method":"post"},{"path":"/registry.all","method":"get"},{"path":"/registry.one","method":"get"},{"path":"/registry.testRegistry","method":"post"},{"path":"/registry.testRegistryById","method":"post"}]} showTitle={true} />

apps/docs/content/docs/api/settings.mdx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ title: Settings
33
full: true
44
_openapi:
55
toc:
6+
- depth: 2
7+
title: Settings get Web Server Settings
8+
url: '#settings-get-web-server-settings'
69
- depth: 2
710
title: Settings reload Server
811
url: '#settings-reload-server'
@@ -93,6 +96,9 @@ _openapi:
9396
- depth: 2
9497
title: Settings get Ip
9598
url: '#settings-get-ip'
99+
- depth: 2
100+
title: Settings update Server Ip
101+
url: '#settings-update-server-ip'
96102
- depth: 2
97103
title: Settings get Open Api Document
98104
url: '#settings-get-open-api-document'
@@ -143,6 +149,8 @@ _openapi:
143149
url: '#settings-get-dokploy-cloud-ips'
144150
structuredData:
145151
headings:
152+
- content: Settings get Web Server Settings
153+
id: settings-get-web-server-settings
146154
- content: Settings reload Server
147155
id: settings-reload-server
148156
- content: Settings clean Redis
@@ -203,6 +211,8 @@ _openapi:
203211
id: settings-read-traefik-file
204212
- content: Settings get Ip
205213
id: settings-get-ip
214+
- content: Settings update Server Ip
215+
id: settings-update-server-ip
206216
- content: Settings get Open Api Document
207217
id: settings-get-open-api-document
208218
- content: Settings read Traefik Env
@@ -240,4 +250,4 @@ _openapi:
240250

241251
{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
242252

243-
<APIPage document={"./public/openapi.json"} webhooks={[]} operations={[{"path":"/settings.reloadServer","method":"post"},{"path":"/settings.cleanRedis","method":"post"},{"path":"/settings.reloadRedis","method":"post"},{"path":"/settings.reloadTraefik","method":"post"},{"path":"/settings.toggleDashboard","method":"post"},{"path":"/settings.cleanUnusedImages","method":"post"},{"path":"/settings.cleanUnusedVolumes","method":"post"},{"path":"/settings.cleanStoppedContainers","method":"post"},{"path":"/settings.cleanDockerBuilder","method":"post"},{"path":"/settings.cleanDockerPrune","method":"post"},{"path":"/settings.cleanAll","method":"post"},{"path":"/settings.cleanMonitoring","method":"post"},{"path":"/settings.saveSSHPrivateKey","method":"post"},{"path":"/settings.assignDomainServer","method":"post"},{"path":"/settings.cleanSSHPrivateKey","method":"post"},{"path":"/settings.updateDockerCleanup","method":"post"},{"path":"/settings.readTraefikConfig","method":"get"},{"path":"/settings.updateTraefikConfig","method":"post"},{"path":"/settings.readWebServerTraefikConfig","method":"get"},{"path":"/settings.updateWebServerTraefikConfig","method":"post"},{"path":"/settings.readMiddlewareTraefikConfig","method":"get"},{"path":"/settings.updateMiddlewareTraefikConfig","method":"post"},{"path":"/settings.getUpdateData","method":"post"},{"path":"/settings.updateServer","method":"post"},{"path":"/settings.getDokployVersion","method":"get"},{"path":"/settings.getReleaseTag","method":"get"},{"path":"/settings.readDirectories","method":"get"},{"path":"/settings.updateTraefikFile","method":"post"},{"path":"/settings.readTraefikFile","method":"get"},{"path":"/settings.getIp","method":"get"},{"path":"/settings.getOpenApiDocument","method":"get"},{"path":"/settings.readTraefikEnv","method":"get"},{"path":"/settings.writeTraefikEnv","method":"post"},{"path":"/settings.haveTraefikDashboardPortEnabled","method":"get"},{"path":"/settings.haveActivateRequests","method":"get"},{"path":"/settings.toggleRequests","method":"post"},{"path":"/settings.isCloud","method":"get"},{"path":"/settings.isUserSubscribed","method":"get"},{"path":"/settings.health","method":"get"},{"path":"/settings.setupGPU","method":"post"},{"path":"/settings.checkGPUStatus","method":"get"},{"path":"/settings.updateTraefikPorts","method":"post"},{"path":"/settings.getTraefikPorts","method":"get"},{"path":"/settings.updateLogCleanup","method":"post"},{"path":"/settings.getLogCleanupStatus","method":"get"},{"path":"/settings.getDokployCloudIps","method":"get"}]} showTitle={true} />
253+
<APIPage document={"./public/openapi.json"} webhooks={[]} operations={[{"path":"/settings.getWebServerSettings","method":"get"},{"path":"/settings.reloadServer","method":"post"},{"path":"/settings.cleanRedis","method":"post"},{"path":"/settings.reloadRedis","method":"post"},{"path":"/settings.reloadTraefik","method":"post"},{"path":"/settings.toggleDashboard","method":"post"},{"path":"/settings.cleanUnusedImages","method":"post"},{"path":"/settings.cleanUnusedVolumes","method":"post"},{"path":"/settings.cleanStoppedContainers","method":"post"},{"path":"/settings.cleanDockerBuilder","method":"post"},{"path":"/settings.cleanDockerPrune","method":"post"},{"path":"/settings.cleanAll","method":"post"},{"path":"/settings.cleanMonitoring","method":"post"},{"path":"/settings.saveSSHPrivateKey","method":"post"},{"path":"/settings.assignDomainServer","method":"post"},{"path":"/settings.cleanSSHPrivateKey","method":"post"},{"path":"/settings.updateDockerCleanup","method":"post"},{"path":"/settings.readTraefikConfig","method":"get"},{"path":"/settings.updateTraefikConfig","method":"post"},{"path":"/settings.readWebServerTraefikConfig","method":"get"},{"path":"/settings.updateWebServerTraefikConfig","method":"post"},{"path":"/settings.readMiddlewareTraefikConfig","method":"get"},{"path":"/settings.updateMiddlewareTraefikConfig","method":"post"},{"path":"/settings.getUpdateData","method":"post"},{"path":"/settings.updateServer","method":"post"},{"path":"/settings.getDokployVersion","method":"get"},{"path":"/settings.getReleaseTag","method":"get"},{"path":"/settings.readDirectories","method":"get"},{"path":"/settings.updateTraefikFile","method":"post"},{"path":"/settings.readTraefikFile","method":"get"},{"path":"/settings.getIp","method":"get"},{"path":"/settings.updateServerIp","method":"post"},{"path":"/settings.getOpenApiDocument","method":"get"},{"path":"/settings.readTraefikEnv","method":"get"},{"path":"/settings.writeTraefikEnv","method":"post"},{"path":"/settings.haveTraefikDashboardPortEnabled","method":"get"},{"path":"/settings.haveActivateRequests","method":"get"},{"path":"/settings.toggleRequests","method":"post"},{"path":"/settings.isCloud","method":"get"},{"path":"/settings.isUserSubscribed","method":"get"},{"path":"/settings.health","method":"get"},{"path":"/settings.setupGPU","method":"post"},{"path":"/settings.checkGPUStatus","method":"get"},{"path":"/settings.updateTraefikPorts","method":"post"},{"path":"/settings.getTraefikPorts","method":"get"},{"path":"/settings.updateLogCleanup","method":"post"},{"path":"/settings.getLogCleanupStatus","method":"get"},{"path":"/settings.getDokployCloudIps","method":"get"}]} showTitle={true} />

apps/docs/content/docs/core/meta.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"applications",
3636
"docker-compose",
3737
"databases",
38-
"templates",
3938
"(examples)",
4039
"auto-deploy",
4140
"schedule-jobs",

apps/docs/content/docs/core/templates.mdx

Lines changed: 0 additions & 122 deletions
This file was deleted.

apps/docs/content/docs/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"pages": ["core", "cli", "api"]
2+
"pages": ["core", "cli", "api", "templates"]
33
}

apps/docs/mdx-components.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { APIPage } from "@/lib/source";
22
import { Callout } from "fumadocs-ui/components/callout";
33
import { ImageZoom } from "fumadocs-ui/components/image-zoom";
4+
import { Tab, Tabs } from "fumadocs-ui/components/tabs";
45
import defaultMdxComponents from "fumadocs-ui/mdx";
56
import type { MDXComponents } from "mdx/types";
67

@@ -9,6 +10,8 @@ export function getMDXComponents(components?: MDXComponents): MDXComponents {
910
...defaultMdxComponents,
1011
ImageZoom,
1112
Callout,
13+
Tab,
14+
Tabs,
1215
APIPage,
1316
...components,
1417
p: ({ children }) => (

apps/docs/next.config.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ const withMDX = createMDX();
55
/** @type {import('next').NextConfig} */
66
const config = {
77
reactStrictMode: true,
8+
images: {
9+
remotePatterns: [
10+
{
11+
protocol: "https",
12+
hostname: "templates.dokploy.com",
13+
},
14+
],
15+
},
816
};
917

1018
export default withMDX(config);

apps/docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"types:check": "fumadocs-mdx && tsc --noEmit",
1010
"postinstall": "fumadocs-mdx",
1111
"fix-openapi": "node scripts/fix-openapi.mjs",
12-
"build:docs": "npm run fix-openapi && node generate-docs.mjs"
12+
"generate-templates": "node scripts/generate-templates.mjs",
13+
"build:docs": "npm run fix-openapi && npm run generate-templates && node generate-docs.mjs"
1314
},
1415
"dependencies": {
1516
"@next/third-parties": "16.0.7",

0 commit comments

Comments
 (0)