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 eeb8657 commit f56b134
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ RUN tna-build
RUN mkdir /app/app/static/assets; \
cp -r /app/node_modules/@nationalarchives/frontend/nationalarchives/assets/* /app/app/static/assets

# Delete source files and tests
RUN rm -fR /app/src /app/test
# Delete source files, tests and docs
RUN rm -fR /app/src /app/test /app/docs

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

docs:
image: squidfunk/mkdocs-material
volumes:
- .:/docs
ports:
- 1081: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 f56b134

Please sign in to comment.