Skip to content

Commit

Permalink
Added documentation for viewing the documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes committed Sep 10, 2024
1 parent f0b2b18 commit 066df66
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,23 @@ bundle exec rake db:drop
See the [API documentation][api] for information on how to interact with the
service.

## Documentation

Necessary documentation to operate, use, maintain, and contribute to the service
is included in this repository. The majority of these documents are written in
Markdown and can be rendered directly in GitHub or you favorite IDE. However,
the documentation as a whole is meant to be converted to a static site using
[MkDocs].

In order to view the documentation in its intended form locally, you can use the
included docker container. Simply run the following:

```bash
docker compose --profile docs up -d
```

The documentation should then be available at http://localhost:8000.

[.env]: https://github.com/codeforamerica/document-transfer-service/blob/main/sample.env
[api]: ./api.md
[create-key]: ./runbooks/create_auth_key.md
Expand All @@ -140,6 +157,7 @@ service.
[Dockerfile]: https://github.com/codeforamerica/document-transfer-service/blob/main/Dockerfile
[docker compose]: https://github.com/codeforamerica/document-transfer-service/blob/main/docker-compose.yaml
[Docker Desktop]: https://docs.docker.com/desktop/
[mkdocs]: https://www.mkdocs.org/
[omz]: https://ohmyz.sh/
[ruby-version]: https://github.com/codeforamerica/document-transfer-service/blob/main/.ruby-version
[rvm]: https://rvm.io/
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,15 @@ services:
<<: *service-defaults
command: ./script/worker run

docs:
profiles:
- docs
build:
dockerfile: docs.dockerfile
ports:
- "8000:8000"
volumes:
- .:/docs

volumes:
postgres:
6 changes: 6 additions & 0 deletions docs.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM squidfunk/mkdocs-material:latest

# Install PlantUML so we can render UML diagrams.
RUN pip install plantuml_markdown
RUN apk add --no-cache plantuml --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \
&& rm -rf /var/cache/apk/*

0 comments on commit 066df66

Please sign in to comment.