From 073d65286935c44b31759c8c210658717d24f33f Mon Sep 17 00:00:00 2001 From: "d.viti" Date: Fri, 3 Oct 2025 01:44:41 +0200 Subject: [PATCH] Fix mkdocs build error by moving mkdocs.yml to web root - Moved mkdocs.yml from web/docs/ to web/ directory - Updated Dockerfile to copy mkdocs.yml and build from correct location - Set docs_dir to 'docs' in mkdocs.yml configuration - Fixes Docker build error where mkdocs couldn't find documentation files --- web/Dockerfile | 3 ++- web/{docs => }/mkdocs.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) rename web/{docs => }/mkdocs.yml (99%) diff --git a/web/Dockerfile b/web/Dockerfile index 7da11a0..14f9220 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -11,9 +11,10 @@ RUN pip install --no-cache-dir -r requirements.txt # Copy application and documentation COPY main.py . COPY docs/ ./docs/ +COPY mkdocs.yml . # Build documentation during image build -RUN mkdocs build -f docs/mkdocs.yml -d site +RUN mkdocs build -d site # Expose port EXPOSE 8000 diff --git a/web/docs/mkdocs.yml b/web/mkdocs.yml similarity index 99% rename from web/docs/mkdocs.yml rename to web/mkdocs.yml index 5d675db..44de420 100644 --- a/web/docs/mkdocs.yml +++ b/web/mkdocs.yml @@ -2,6 +2,7 @@ site_name: API7 Enterprise Demo Documentation site_description: Complete documentation for API7 Enterprise Gateway demo deployment site_author: CommandWare site_url: https://demo.commandware.it/docs +docs_dir: docs theme: name: material