prepare an image to build the doc
This commit is contained in:
parent
96a7cbe954
commit
e769a9dd70
24
Dockerfile
24
Dockerfile
@ -1,3 +1,23 @@
|
||||
FROM nginx:alpine
|
||||
LABEL authors="Julien Fastré"
|
||||
# -------- Stage 1: Build the documentation using mkdocs --------
|
||||
FROM python:3.13-slim AS builder
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# Install dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY user/ user/
|
||||
COPY admin/ admin/
|
||||
|
||||
RUN ls
|
||||
RUN cd user && mkdocs build --clean && cd ..
|
||||
RUN cd admin && mkdocs build --clean && cd ..
|
||||
|
||||
# -------- Stage 2: Serve the built documentation with nginx --------
|
||||
FROM nginx:alpine
|
||||
|
||||
# Copy the built site from the builder stage
|
||||
COPY --from=builder /build/admin/site /usr/share/nginx/html/admin
|
||||
COPY --from=builder /build/user/site /usr/share/nginx/html/user
|
||||
|
||||
|
3
admin/docs/index.md
Normal file
3
admin/docs/index.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Documentation administrateur
|
||||
|
||||
En construction.
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
site_name: "Manuel admnistrateur Chill"
|
||||
site_url: https://manuel.chill.social/administrateur/
|
||||
site_url: https://manuel.chill.social/admin
|
||||
repo_url: https://gitea.champs-libres.be/Chill-project/manuals
|
||||
repo_name: Chill-project/manuals
|
||||
theme:
|
||||
|
1
user/.gitignore
vendored
1
user/.gitignore
vendored
@ -1 +1,2 @@
|
||||
site/*
|
||||
|
||||
|
3
user/docs/index.md
Normal file
3
user/docs/index.md
Normal file
@ -0,0 +1,3 @@
|
||||
Documentation utilisateur de chill
|
||||
|
||||
En construction.
|
Loading…
x
Reference in New Issue
Block a user