Skip to content

Commit 6eab5e7

Browse files
committed
Add a ADR section to project documentation
Signed-off-by: Federico Busetti <[email protected]>
1 parent e9d1ebd commit 6eab5e7

File tree

9 files changed

+105
-11
lines changed

9 files changed

+105
-11
lines changed

.adr-dir

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/adr

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: docs docs-build
1+
.PHONY: docs docs-build adr
22

33
containers:
44
# Use local UID to avoid files permission issues when mounting directories
@@ -79,5 +79,8 @@ check: typing test format lint
7979
docs:
8080
poetry run mkdocs serve
8181

82+
adr:
83+
adr-viewer --serve --adr-path docs/adr
84+
8285
docs-build:
8386
poetry run mkdocs build

docs/.pages

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nav:
2+
- Home: index.md
3+
- ADR: adr

docs/adr/.pages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
order: desc
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# 1. Record architecture decisions
2+
3+
Date: 2024-01-11
4+
5+
## Status
6+
7+
Accepted
8+
9+
## Context
10+
11+
We need to record the architectural decisions made on this project.
12+
13+
## Decision
14+
15+
We will use Architecture Decision Records, as [described by Michael Nygard](http://thinkrelevance.com/blog/2011/11/15/documenting-architecture-decisions).
16+
17+
## Consequences
18+
19+
See Michael Nygard's article, linked above. For a lightweight ADR toolset, see Nat Pryce's [adr-tools](https://github.com/npryce/adr-tools).

docs/adr/summary.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Summary
2+
3+
TODO: Generate summary here

mkdocs.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ docs_dir: docs/
77
repo_name: 'febus982/bootstrap-python-fastapi'
88
repo_url: 'https://github.com/febus982/bootstrap-python-fastapi'
99

10+
plugins:
11+
- search
12+
- awesome-pages
13+
14+
# Do not use the nav section in this file but reference to the .pages files
15+
# in the docs/ directory and subdirectories (awesome-pages plugin)
16+
# https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin
17+
#nav:
18+
# - Home: index.md
19+
1020
theme:
1121
name: material
1222
features:
@@ -35,9 +45,6 @@ extra:
3545
- icon: fontawesome/brands/linkedin
3646
link: https://www.linkedin.com/in/federico-b-a0b78232
3747

38-
nav:
39-
- Home: index.md
40-
4148
markdown_extensions:
4249
- pymdownx.details
4350
- pymdownx.blocks.admonition

poetry.lock

Lines changed: 63 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ strawberry-graphql = { version = "*", extras = ["debug-server", "fastapi"] }
6666
mkdocs = "*"
6767
mkdocs-material = "*"
6868
pymdown-extensions = "*"
69+
mkdocs-awesome-pages-plugin = "*"
6970

7071
[build-system]
7172
requires = ["poetry-core"]

0 commit comments

Comments
 (0)