Fix mkdocs build error by moving mkdocs.yml to web root
All checks were successful
Build and Deploy / build-api (push) Successful in 36s
Build and Deploy / build-web (push) Successful in 1m19s

- 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
This commit is contained in:
d.viti
2025-10-03 01:44:41 +02:00
parent 12ea09a520
commit 073d652869
2 changed files with 3 additions and 1 deletions

View File

@@ -11,9 +11,10 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy application and documentation # Copy application and documentation
COPY main.py . COPY main.py .
COPY docs/ ./docs/ COPY docs/ ./docs/
COPY mkdocs.yml .
# Build documentation during image build # Build documentation during image build
RUN mkdocs build -f docs/mkdocs.yml -d site RUN mkdocs build -d site
# Expose port # Expose port
EXPOSE 8000 EXPOSE 8000

View File

@@ -2,6 +2,7 @@ site_name: API7 Enterprise Demo Documentation
site_description: Complete documentation for API7 Enterprise Gateway demo deployment site_description: Complete documentation for API7 Enterprise Gateway demo deployment
site_author: CommandWare site_author: CommandWare
site_url: https://demo.commandware.it/docs site_url: https://demo.commandware.it/docs
docs_dir: docs
theme: theme:
name: material name: material