Skip to content

Commit 066df66

Browse files
committed
Added documentation for viewing the documentation.
1 parent f0b2b18 commit 066df66

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,23 @@ bundle exec rake db:drop
132132
See the [API documentation][api] for information on how to interact with the
133133
service.
134134

135+
## Documentation
136+
137+
Necessary documentation to operate, use, maintain, and contribute to the service
138+
is included in this repository. The majority of these documents are written in
139+
Markdown and can be rendered directly in GitHub or you favorite IDE. However,
140+
the documentation as a whole is meant to be converted to a static site using
141+
[MkDocs].
142+
143+
In order to view the documentation in its intended form locally, you can use the
144+
included docker container. Simply run the following:
145+
146+
```bash
147+
docker compose --profile docs up -d
148+
```
149+
150+
The documentation should then be available at http://localhost:8000.
151+
135152
[.env]: https://github.com/codeforamerica/document-transfer-service/blob/main/sample.env
136153
[api]: ./api.md
137154
[create-key]: ./runbooks/create_auth_key.md
@@ -140,6 +157,7 @@ service.
140157
[Dockerfile]: https://github.com/codeforamerica/document-transfer-service/blob/main/Dockerfile
141158
[docker compose]: https://github.com/codeforamerica/document-transfer-service/blob/main/docker-compose.yaml
142159
[Docker Desktop]: https://docs.docker.com/desktop/
160+
[mkdocs]: https://www.mkdocs.org/
143161
[omz]: https://ohmyz.sh/
144162
[ruby-version]: https://github.com/codeforamerica/document-transfer-service/blob/main/.ruby-version
145163
[rvm]: https://rvm.io/

docker-compose.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,15 @@ services:
4646
<<: *service-defaults
4747
command: ./script/worker run
4848

49+
docs:
50+
profiles:
51+
- docs
52+
build:
53+
dockerfile: docs.dockerfile
54+
ports:
55+
- "8000:8000"
56+
volumes:
57+
- .:/docs
58+
4959
volumes:
5060
postgres:

docs.dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM squidfunk/mkdocs-material:latest
2+
3+
# Install PlantUML so we can render UML diagrams.
4+
RUN pip install plantuml_markdown
5+
RUN apk add --no-cache plantuml --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \
6+
&& rm -rf /var/cache/apk/*

0 commit comments

Comments
 (0)