From 308304b75e4e83b5aea33087e17641ac84b3bda8 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 24 Oct 2024 11:26:20 +1100 Subject: [PATCH] Use docker for mkdocs serve --- mkdocs-website/Dockerfile | 2 ++ mkdocs-website/Taskfile.yml | 9 +++++---- mkdocs-website/docs/en/changelog.md | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 mkdocs-website/Dockerfile diff --git a/mkdocs-website/Dockerfile b/mkdocs-website/Dockerfile new file mode 100644 index 000000000..875bc2f0d --- /dev/null +++ b/mkdocs-website/Dockerfile @@ -0,0 +1,2 @@ +FROM squidfunk/mkdocs-material +RUN python3 -m pip install mkdocs-table-reader-plugin mkdocs-git-committers-plugin-2 mkdocs-static-i18n diff --git a/mkdocs-website/Taskfile.yml b/mkdocs-website/Taskfile.yml index 712a1fb2a..a6db379a0 100644 --- a/mkdocs-website/Taskfile.yml +++ b/mkdocs-website/Taskfile.yml @@ -20,6 +20,10 @@ tasks: cmds: - python3 -m pip install -r requirements.insiders.txt --user + build:docker: + cmds: + - docker build -t wailsapp/mkdocs . + upgrade:insiders: summary: Upgrade the project (insiders) preconditions: @@ -38,11 +42,8 @@ tasks: serve: summary: Builds the documentation and serves it locally - preconditions: - - sh: mkdocs --version - msg: "Looks like mkdocs isn't installed. Run `wails3 task setup` or `task setup` in the documentation directory to install it." cmds: - - mkdocs serve + - docker run --rm -it -p 8000:8000 -v $PWD:/docs wailsapp/mkdocs serve:insiders: summary: Builds the documentation and serves it locally diff --git a/mkdocs-website/docs/en/changelog.md b/mkdocs-website/docs/en/changelog.md index 1c8b915e0..5136a1cea 100644 --- a/mkdocs-website/docs/en/changelog.md +++ b/mkdocs-website/docs/en/changelog.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Taskfile refactor by [leaanthony](https://github.com/leaanthony) in [#3748](https://github.com/wailsapp/wails/pull/3748) - Upgrade to `go-webview2` v1.0.16 by [leaanthony](https://github.com/leaanthony) - Fixed `Screen` type to include `ID` not `Id` by [etesam913](https://github.com/etesam913) in [#3778](https://github.com/wailsapp/wails/pull/3778) +- mkdocs serve now uses docker by [leaanthony](https://github.com/leaanthony) ### Fixed - Fixed `AlwaysOnTop` not working on Mac by [leaanthony](https://github.com/leaanthony) in [#3841](https://github.com/wailsapp/wails/pull/3841)