Skip to content

Commit 83218e5

Browse files
committed
fix: lock file, nginxconfig, package updates and sitemap
1 parent 5eb98b2 commit 83218e5

File tree

6 files changed

+31
-20
lines changed

6 files changed

+31
-20
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,5 @@ temp
1414
examples-temp
1515
node_modules
1616
pnpm-global
17-
pnpm-lock.yaml
1817
TODOs.md
19-
*.timestamp-*.mjs
20-
bun.lockb
18+
*.timestamp-*.mjs

bun.lockb

132 KB
Binary file not shown.

docs/.vitepress/config.mts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { fileURLToPath, URL } from 'node:url'
22
import yaml from 'vite-plugin-yaml'
33
import { defineConfig } from 'vitepress'
4-
import { useSidebar, useOpenapi } from 'vitepress-openapi'
4+
import { useSidebar } from 'vitepress-openapi'
55
import spec from '../public/openapi.json' with { type: 'json' }
66
import container from 'markdown-it-container'
7-
import { getHighlighter, bundledLanguages } from 'shiki'
7+
import { bundledLanguages } from 'shiki'
88
import { join, dirname } from 'node:path'
99

1010
const sidebar = useSidebar({ spec, collapsible: true })
@@ -27,6 +27,9 @@ export default defineConfig({
2727
lastUpdated: true,
2828
// Added ignoreDeadLinks to temporarily fix build error
2929
ignoreDeadLinks: true,
30+
sitemap: {
31+
hostname: 'https://coolify.io/docs/'
32+
},
3033

3134
head: [
3235
['link', { rel: 'icon', href: '/favicon.ico' }]
@@ -240,7 +243,7 @@ export default defineConfig({
240243
{ text: 'Windmill', link: '/services/windmill' },
241244
{ text: 'WordPress', link: '/services/wordpress' },
242245
{ text: 'Zipline', link: '/services/zipline' }
243-
]
246+
]
244247
}
245248
],
246249
},

docs/.vitepress/theme/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444
base: "/docs/api-reference/api/operations/",
4545
label: "API"
4646
});
47-
47+
4848
theme.enhanceApp({ app, openapi });
4949
app.component("Card", Card);
5050
app.component("CardGroup", CardGroup);

nginx/nginx.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,20 @@ http {
3838
index index.html;
3939
try_files $uri $uri/ $uri.html =404;
4040
}
41+
# non existent pages are redirected to 404.html
42+
error_page 404 /404.html;
4143

44+
# a folder without index.html raises 403 in this setup
45+
error_page 403 /404.html;
4246
location = /favicon.ico {
4347
rewrite ^/favicon.ico$ /docs/favicon.ico;
4448
access_log off;
4549
log_not_found off;
4650
}
51+
location ~* ^/assets/ {
52+
expires 1y;
53+
add_header Cache-Control "public, immutable";
54+
}
4755

4856
# Deny access to hidden files
4957
location ~ /\. {

package.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
{
2-
"name": "coolify-docs",
2+
"name": "documentation-coolify",
33
"version": "0.0.1",
44
"devDependencies": {
5-
"@types/js-yaml": "^4.0.9",
6-
"@types/node": "^22.10.2",
7-
"autoprefixer": "^10.4.13",
8-
"fast-glob": "^3.3.2",
9-
"js-yaml": "^4.1.0",
10-
"markdown-it-container": "^4.0.0",
11-
"postcss": "^8.4.20",
12-
"tailwindcss": "^3.2.4",
13-
"tsx": "^4.19.2",
5+
"@types/js-yaml": "4.0.9",
6+
"@types/node": "22.13.1",
7+
"autoprefixer": "10.4.20",
8+
"fast-glob": "3.3.3",
9+
"js-yaml": "4.1.0",
10+
"markdown-it-container": "4.0.0",
11+
"postcss": "8.5.1",
12+
"tailwindcss": "3.2.4",
13+
"tsx": "4.19.2",
1414
"vite-plugin-yaml": "^1.0.5",
15-
"vitepress": "^1.5.0",
15+
"vitepress": "1.6.3",
1616
"vue": "^3.5.13"
1717
},
1818
"postcss": {
1919
"plugins": {
20+
"postcss-import": {},
21+
"tailwindcss/nesting": {},
2022
"tailwindcss": {},
2123
"autoprefixer": {}
2224
}
@@ -29,8 +31,8 @@
2931
"transform-openapi": "tsx scripts/convert-openapi.ts"
3032
},
3133
"dependencies": {
32-
"@vueuse/core": "^12.2.0",
33-
"globe.gl": "^2.34.6",
34+
"@vueuse/core": "12.5.0",
35+
"globe.gl": "2.39.7",
3436
"vitepress-openapi": "0.0.3-alpha.55"
3537
}
3638
}

0 commit comments

Comments
 (0)