diff --git a/.env b/.env new file mode 100644 index 0000000000..341561801a --- /dev/null +++ b/.env @@ -0,0 +1 @@ +MKDOCS_PORT=8000 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..e06afdce1f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3-slim +COPY ./. /docs/ +WORKDIR /docs/ +RUN pip install -r requirements.txt +CMD ["mkdocs", "serve", "--dev-addr", "0.0.0.0:8000", "--dirty"] diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000000..dfb9947384 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,16 @@ +services: + mkdocs: + build: . + environment: + - MKDOCS_PORT=8000 + ports: + - "${MKDOCS_PORT}:8000" + volumes: + - .:/docs + develop: + watch: + - + action: restart + path: ./docs + target: /docs + initial_sync: true