Use docker for mkdocs serve

This commit is contained in:
Lea Anthony 2024-10-24 11:26:20 +11:00
commit 308304b75e
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405
3 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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)