Skip to content

Commit b179e88

Browse files
Use mkdocs2 for documentation builds (#135)
1 parent 1325c3c commit b179e88

File tree

7 files changed

+44
-169
lines changed

7 files changed

+44
-169
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
jobs:
11+
deploy:
12+
environment:
13+
name: github-pages
14+
url: ${{ steps.deployment.outputs.page_url }}
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/configure-pages@v5
18+
- uses: actions/checkout@v5
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: 3.x
22+
- run: pip install -r requirements.txt
23+
- run: mkdocs build
24+
- uses: actions/upload-pages-artifact@v4
25+
with:
26+
path: site
27+
- uses: actions/deploy-pages@v4
28+
id: deployment

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
__pycache__/
66
dist/
77
venv/
8-
build/
8+
site/

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,4 @@ The [HTTPX 1.0 design proposal](https://www.encode.io/httpnext/) is now availabl
5959

6060
---
6161

62-
# Collaboration
63-
64-
The repository for this project is currently private.
65-
66-
We’re looking at creating paid opportunities for working on open source software *which are properly compensated, flexible & well balanced.*
67-
68-
If you're interested in a position working on this project, please <a href="mailto:kim@encode.io">send an intro</a>.
69-
70-
---
71-
7262
<p align="center"><i>This provisional design work is <a href="https://github.com/encode/httpnext/blob/master/LICENSE.md">not currently licensed</a> for reuse.<br/>Designed & crafted with care.</i><br/>&mdash; 🦋 &mdash;</p>

docs/templates/base.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@
8686
color: #474747;
8787
}
8888

89+
h1 a, h2 a, h3 a, h4 a {
90+
color: #eee;
91+
font-weight: 300;
92+
text-decoration: none;
93+
}
94+
8995
h1 { text-align: center; font-weight: 300; font-size: 4rem; }
9096
h2 { font-size: 2rem; }
9197
h3 { font-size: 1.5rem; }
@@ -174,7 +180,7 @@
174180
</head>
175181
<body>
176182
<main>
177-
{{ content }}
183+
{{ page.html }}
178184
</main>
179185
<script>
180186
document.addEventListener('DOMContentLoaded', function() {
@@ -183,4 +189,4 @@
183189
}
184190
})
185191
</script>
186-
</body></html>
192+
</body></html>

mkdocs.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[mkdocs]
2+
nav = []
3+
4+
[loaders]
5+
theme = "dir://docs"
6+
docs = "dir://docs"

requirements.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,4 @@ pytest-cov==6.1.1
1212
unasync==0.6.0
1313

1414
# Documentation...
15-
click==8.2.1
16-
jinja2==3.1.6
17-
markdown==3.8
15+
git+https://github.com/encode/mkdocs.git

scripts/docs

Lines changed: 0 additions & 153 deletions
This file was deleted.

0 commit comments

Comments
 (0)