Skip to content

Commit

Permalink
docs: Updated module docs with latest versions. (#35)
Browse files Browse the repository at this point in the history
docs: Reorganize docs to remove hard-coded nav.
  • Loading branch information
jamesiarmes authored Jan 13, 2025
1 parent 4d3bed1 commit 94a5c50
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ jobs:
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material markdown-callouts pymdown-extensions plantuml_markdown
- run: pip install mkdocs-material markdown-callouts mkdocs-nav-weight pymdown-extensions plantuml_markdown
- run: mkdocs build
- run: aws s3 sync ./site "s3://${{ env.BUCKET_NAME || 'dev.docs.cfa.codes' }}/${{ env.PREFIX || 'tofu-modules' }}"
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM squidfunk/mkdocs-material:9.5

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

Expand Down
2 changes: 1 addition & 1 deletion aws/cloudfront_waf
Submodule cloudfront_waf updated 8 files
+1 −1 .cz.yaml
+12 −0 CHANGELOG.md
+96 −9 README.md
+6 −2 data.tf
+40 −30 main.tf
+0 −0 uploads.tf
+25 −0 variables.tf
+211 −0 webhooks.tf
2 changes: 1 addition & 1 deletion aws/vpc
2 changes: 1 addition & 1 deletion datadog/waf
5 changes: 5 additions & 0 deletions docs/about/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Contributing
weight: 100
---
--8<-- "CONTRIBUTING.md"
5 changes: 5 additions & 0 deletions docs/about/license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
weight: 100
index_weight: 100
---
--8<-- "LICENSE"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Architecture
# Architecture Overview

## File structure

Expand Down
1 change: 0 additions & 1 deletion docs/contributing.md

This file was deleted.

5 changes: 4 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
title: Home
---
--8<-- "README.md"

[aptible-managed-endpoint]: modules/aptible/managed-endpoint.md
Expand All @@ -8,5 +11,5 @@
[aws-secrets]: modules/aws/secrets.md
[aws-serverless-database]: modules/aws/serverless-database.md
[aws-vpc]: modules/aws/vpc.md
[contributing]: contributing.md
[contributing]: about/index.md
[datadog-waf]: modules/datadog/waf.md
1 change: 0 additions & 1 deletion docs/license.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/modules/datadog/waf.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
--8<-- "datadog/waf/README.md"

[screenshot-dashboard]: ../../assets/dashboard.jpeg
[screenshot-dashboard]: ../../assets/dashboard.png
22 changes: 1 addition & 21 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ repo_url: https://github.com/codeforamerica/tofu-modules
edit_uri: edit/main/docs/

plugins:
- mkdocs-nav-weight
- search

markdown_extensions:
Expand Down Expand Up @@ -60,25 +61,4 @@ extra:
link: https://www.threads.net/@codeforamerica
name: Code for America on X (formerly Twitter)

nav:
- Home: index.md
- Architecture:
- Overview: architecture/architecture.md
- Create a New Module: architecture/create.md
- GitHub Actions: architecture/github-actions.md
- Modules:
- Aptible:
- Managed Endpoint: modules/aptible/managed-endpoint.md
- AWS:
- Backend: modules/aws/backend.md
- CloudFront WAF: modules/aws/cloudfront-waf.md
- Fargate Service: modules/aws/fargate-service.md
- Logging: modules/aws/logging.md
- Secrets: modules/aws/secrets.md
- Serverless Database: modules/aws/serverless-database.md
- VPC: modules/aws/vpc.md
- About:
- Contributing: contributing.md
- License: license.md

copyright: Produced by Code for America under the MIT license.

0 comments on commit 94a5c50

Please sign in to comment.