Skip to content

Commit 9f02c54

Browse files
committed
Merge remote-tracking branch 'upstream/build-docs' into docs/comprehensive-mkdocs-setup
2 parents b552afa + cb38b44 commit 9f02c54

File tree

4 files changed

+1301
-19
lines changed

4 files changed

+1301
-19
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ dist/
1010
.vscode
1111
.tox/
1212
coverage.xml
13+
14+
# mkdocs
15+
site/

mkdocs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
site_name: backoff
3+
repo_url: https://github.com/python-backoff/backoff
4+
repo_name: python-backoff/backoff
5+
theme:
6+
name: material
7+
palette:
8+
- media: "(prefers-color-scheme: light)"
9+
scheme: default
10+
toggle:
11+
icon: material/brightness-7
12+
name: Switch to dark mode
13+
- media: "(prefers-color-scheme: dark)"
14+
scheme: slate
15+
toggle:
16+
icon: material/brightness-4
17+
name: Switch to light mode
18+
features:
19+
- content.code.copy
20+
- content.code.select
21+
- content.code.annotate
22+
- navigation.indexes
23+
- navigation.sections
24+
- navigation.tabs
25+
- navigation.top
26+
- search.highlight
27+
- search.share
28+
- search.suggest
29+
markdown_extensions:
30+
- pymdownx.highlight
31+
- pymdownx.superfences
32+
- pymdownx.inlinehilite
33+
- admonition
34+
plugins:
35+
- search
36+
- mkdocstrings:
37+
handlers:
38+
python:
39+
options:
40+
docstring_style: google
41+
show_root_heading: yes
42+
show_source: yes
43+
nav:
44+
- "index.md"
45+
- "api.md"

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,16 @@ Repository = "https://github.com/python-backoff/backoff"
3939

4040
[dependency-groups]
4141
dev = [
42+
{ include-group = "docs" },
4243
{ include-group = "lint" },
4344
{ include-group = "test" },
4445
{ include-group = "typing" },
4546
]
47+
docs = [
48+
"mkdocs>=1.5.3",
49+
"mkdocs-material>=9.2.7",
50+
"mkdocstrings[python]>=0.22.0",
51+
]
4652
lint = [
4753
"ruff>=0.12.9",
4854
]

0 commit comments

Comments
 (0)