Skip to content

Commit

Permalink
Add MKDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Sep 4, 2024
1 parent 5112245 commit ccefe5f
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ RUN tna-build
# Copy in the application code
COPY --chown=app . .

# Delete tests and docs
RUN rm -fR /app/test /app/docs

# Run the application
CMD ["tna-run", "-a", "fastapi_app:app"]
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@ services:
image: ghcr.io/nationalarchives/tna-python-dev:preview
volumes:
- ./:/app

docs:
image: squidfunk/mkdocs-material
volumes:
- .:/docs
ports:
- 1083:8000
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Welcome
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
site_name: Flask Application Docs
repo_url: https://github.com/nationalarchives/flask-application-template
dev_addr: 0.0.0.0:1081

0 comments on commit ccefe5f

Please sign in to comment.