Skip to content

Commit 6d9855e

Browse files
committed
Add documentation site
1 parent 50f023a commit 6d9855e

12 files changed

Lines changed: 137 additions & 10 deletions

File tree

.claude/settings.local.json

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

.github/workflows/docs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
pages: write
9+
id-token: write
10+
11+
concurrency:
12+
group: pages
13+
cancel-in-progress: true
14+
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: astral-sh/setup-uv@v5
24+
- run: uv python install 3.14t
25+
- run: uv sync --group dev
26+
- run: uv run mkdocs build --strict
27+
- uses: actions/upload-pages-artifact@v3
28+
with:
29+
path: site
30+
- id: deployment
31+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ uv.lock
1515
.python-version
1616
.ruff_cache/
1717
.ropeproject/
18+
19+
# MkDocs
20+
site/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is loosely based on [Keep a Changelog](https://keepachangelog.com).
88
[Unreleased]
99
------------
1010

11+
### Added
12+
13+
- Documentation site.
14+
1115
[0.5.0] - 2026-02-08
1216
--------------------
1317

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
queueio.dev
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.md-header__topic {
2+
display: none;
3+
}
4+
5+
.md-nav--primary > .md-nav__title {
6+
display: none;
7+
}

docs_overrides/partials/footer.html

Whitespace-only changes.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<script>
2+
(function () {
3+
// Remove any cached palette so Material always re-evaluates media queries
4+
try {
5+
var key = __md_scope.pathname + ".__palette";
6+
localStorage.removeItem(key);
7+
} catch (e) {}
8+
9+
// Prevent Material from persisting palette choices
10+
var origSet = __md_set;
11+
__md_set = function (k) {
12+
if (k === "__palette") return;
13+
return origSet.apply(this, arguments);
14+
};
15+
16+
function apply() {
17+
var inputs = document.querySelectorAll("[data-md-color-media]");
18+
for (var i = 0; i < inputs.length; i++) {
19+
var media = inputs[i].getAttribute("data-md-color-media");
20+
if (media && matchMedia(media).matches) {
21+
document.body.setAttribute(
22+
"data-md-color-scheme",
23+
inputs[i].getAttribute("data-md-color-scheme"),
24+
);
25+
document.body.setAttribute(
26+
"data-md-color-primary",
27+
inputs[i].getAttribute("data-md-color-primary"),
28+
);
29+
document.body.setAttribute(
30+
"data-md-color-accent",
31+
inputs[i].getAttribute("data-md-color-accent"),
32+
);
33+
break;
34+
}
35+
}
36+
}
37+
38+
if (document.body) apply();
39+
document.addEventListener("DOMContentLoaded", apply);
40+
41+
// Listen on both light and dark queries for maximum compatibility
42+
var dark = matchMedia("(prefers-color-scheme: dark)");
43+
var light = matchMedia("(prefers-color-scheme: light)");
44+
dark.addEventListener("change", apply);
45+
light.addEventListener("change", apply);
46+
})();
47+
</script>

0 commit comments

Comments
 (0)