feat: add docker container command for serving VuePress docs

This commit is contained in:
Janik von Rotz committed 2026-09-10 14:36:29 +02:00
1 parent abd1a59151
commit 3ba2f5089d
2 files changed
+24 -12

No files matched your search

+8 -12
View File
@@ -15,18 +15,14 @@ export default defineUserConfig({
head: [
['link', { rel: 'icon', href: '/icon.png' }]
],
pagePatterns: [
'**/*.md',
'!**/node_modules/**',
'!**/.vuepress/**',
'!**/venv*/**',
'!**/addons/**',
'!**/enterprise/**',
'!**/tmp/**',
'!**/oca/**',
'!**/thirdparty/**',
'!**/pycache/**',
'!**/prompts/**',
pagePatterns: [
'images/**/*.md',
'revisions/*.md',
'snippets/*.md',
'modules.md',
'README.md',
'revisions.md',
'snippets.md',
],
theme: defaultTheme({
logo: '/icon.png',
+16
View File
@@ -3082,6 +3082,22 @@ serve-vuepress() {
pnpx serve
}
run-vuepress-container() {
container_name="odoo-build"
image_tag="mintsystem/taskfile.build:latest"
docker pull "$image_tag"
docker rm -f "$container_name"
echo "Open http://localhost:8888"
docker run -p 8888:80 -d \
--name "$container_name" \
-e GIT_URL="https://github.com/Mint-System/Odoo-Build" \
-e TASK_COMMANDS="install-vuepress,build-vuepress" \
-e CADDY_ROOT=".vuepress/dist" \
"$image_tag"
}
if [[ "$1" == *","* ]]; then
# Split comma-separated commands
IFS=',' read -ra COMMANDS <<< "$1"