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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user