diff --git a/.vuepress/config.js b/.vuepress/config.js index a55517c3..685b0f08 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -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', diff --git a/task b/task index 4ececa63..04883380 100755 --- a/task +++ b/task @@ -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"