Skip to content

Commit c4070e4

Browse files
committed
add mkdocs-live
1 parent 93feb53 commit c4070e4

1 file changed

Lines changed: 75 additions & 0 deletions

File tree

docs/server_setup.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,81 @@ See excellent guide at https://ansonvandoren.com/posts/telegram-notification-on-
434434

435435
Copy across trigger script.
436436

437+
## mkdocs-material live setup
438+
See triggerscript for main live setup, however for testing changes live, setup a persistent container serving mkdocs-material
439+
```
440+
version: "3"
441+
services:
442+
mkdocs-live:
443+
cap_add:
444+
- AUDIT_WRITE
445+
- CHOWN
446+
- DAC_OVERRIDE
447+
- FOWNER
448+
- FSETID
449+
- KILL
450+
- MKNOD
451+
- NET_BIND_SERVICE
452+
- NET_RAW
453+
- SETFCAP
454+
- SETGID
455+
- SETPCAP
456+
- SETUID
457+
- SYS_CHROOT
458+
cap_drop:
459+
- AUDIT_CONTROL
460+
- BLOCK_SUSPEND
461+
- DAC_READ_SEARCH
462+
- IPC_LOCK
463+
- IPC_OWNER
464+
- LEASE
465+
- LINUX_IMMUTABLE
466+
- MAC_ADMIN
467+
- MAC_OVERRIDE
468+
- NET_ADMIN
469+
- NET_BROADCAST
470+
- SYSLOG
471+
- SYS_ADMIN
472+
- SYS_BOOT
473+
- SYS_MODULE
474+
- SYS_NICE
475+
- SYS_PACCT
476+
- SYS_PTRACE
477+
- SYS_RAWIO
478+
- SYS_RESOURCE
479+
- SYS_TIME
480+
- SYS_TTY_CONFIG
481+
- WAKE_ALARM
482+
command:
483+
- serve
484+
- --dev-addr=0.0.0.0:8000
485+
container_name: mkdocs-live
486+
entrypoint:
487+
- mkdocs
488+
environment:
489+
- PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
490+
- LANG=C.UTF-8
491+
- GPG_KEY=E3FF2839C048B25C084DEBE9B26995E310250568
492+
- PYTHON_VERSION=3.9.2
493+
- PYTHON_PIP_VERSION=21.0.1
494+
- PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/b60e2320d9e8d02348525bd74e871e466afdf77c/get-pip.py
495+
- PYTHON_GET_PIP_SHA256=c3b81e5d06371e135fb3156dc7d8fd6270735088428c4a9a5ec1f342e2024565
496+
- PACKAGES=/usr/local/lib/python3.9/site-packages
497+
- PYTHONDONTWRITEBYTECODE=1
498+
expose:
499+
- 8000/tcp
500+
hostname: be10e69122de
501+
image: docker.io/squidfunk/mkdocs-material:latest
502+
ipc: private
503+
logging:
504+
driver: json-file
505+
options: {}
506+
volumes:
507+
- /home/alan/mkdocs-live/linux-notes:/docs
508+
working_dir: /docs
509+
networks: {}
510+
```
511+
437512
## Hugo installation
438513
Download latest Hugo version from `https://github.com/gohugoio/hugo/releases` and copy to `/usr/local/bin`
439514

0 commit comments

Comments
 (0)