mkdocs-pixel-lab 0.1.0rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ """Pixel Lab MkDocs theme package."""
@@ -0,0 +1,433 @@
1
+ @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
2
+ @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2"); }
3
+ @font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ibm-plex-mono-700.woff2") format("woff2"); }
4
+ @font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
5
+
6
+ :root {
7
+ --bg: #f4f1df;
8
+ --surface: #fffdf2;
9
+ --surface2: #e8e4cf;
10
+ --ink: #182018;
11
+ --muted: #5f665d;
12
+ --green: #4caf50;
13
+ --green2: #287c35;
14
+ --yellow: #f5c842;
15
+ --orange: #e88932;
16
+ --cyan: #38a9b8;
17
+ --black: #101410;
18
+ --code: #101410;
19
+ --code-text: #e9f1d8;
20
+ --sidebar: 220px;
21
+ --table-shadow: 5px;
22
+ }
23
+
24
+ * { box-sizing: border-box; }
25
+ html { overflow-x: clip; scroll-behavior: smooth; }
26
+ body {
27
+ margin: 0;
28
+ background-color: var(--bg);
29
+ background-image: linear-gradient(rgba(16, 20, 16, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 20, 16, 0.035) 1px, transparent 1px);
30
+ background-size: 8px 8px;
31
+ color: var(--ink);
32
+ font-family: Inter, system-ui, sans-serif;
33
+ line-height: 1.65;
34
+ overflow-x: clip;
35
+ }
36
+ .skip-link {
37
+ background: var(--yellow);
38
+ border: 2px solid var(--black);
39
+ box-shadow: 3px 3px 0 var(--black);
40
+ color: var(--black);
41
+ font: 700 11px "IBM Plex Mono", monospace;
42
+ left: 18px;
43
+ padding: 8px 10px;
44
+ position: fixed;
45
+ text-decoration: none;
46
+ top: 12px;
47
+ transform: translateY(-160%);
48
+ transition: transform 120ms ease;
49
+ z-index: 100;
50
+ }
51
+ .skip-link:focus { outline: 3px solid var(--green2); outline-offset: 2px; transform: translateY(0); }
52
+
53
+ .header {
54
+ align-items: center;
55
+ background: var(--green);
56
+ border-bottom: 3px solid var(--black);
57
+ box-shadow: 0 4px 0 var(--green2);
58
+ display: flex;
59
+ height: 64px;
60
+ padding: 0 28px;
61
+ position: sticky;
62
+ top: 0;
63
+ z-index: 10;
64
+ }
65
+ .brand {
66
+ color: var(--black);
67
+ font: 700 17px/1 "IBM Plex Mono", monospace;
68
+ letter-spacing: -0.04em;
69
+ text-decoration: none;
70
+ text-transform: uppercase;
71
+ }
72
+ .header-right { align-items: center; display: flex; gap: 10px; margin-left: auto; }
73
+ .search-shell { position: relative; }
74
+ .header-btn {
75
+ background: var(--surface);
76
+ border: 2px solid var(--black);
77
+ box-shadow: 3px 3px 0 var(--black);
78
+ cursor: pointer;
79
+ font: 700 11px "IBM Plex Mono", monospace;
80
+ padding: 7px 12px;
81
+ }
82
+ .header-btn--search { appearance: none; color: var(--black); }
83
+ .header-btn--menu {
84
+ align-items: center;
85
+ display: inline-flex;
86
+ justify-content: center;
87
+ margin-right: 10px;
88
+ padding: 8px;
89
+ visibility: hidden;
90
+ }
91
+ .hamburger { display: flex; flex-direction: column; gap: 3px; width: 14px; }
92
+ .hamburger span { background: currentColor; display: block; height: 2px; width: 100%; }
93
+ .header-btn--search:hover,
94
+ .header-btn--search:focus-visible,
95
+ .search-shell:focus-within .header-btn--search,
96
+ .search-shell.is-open .header-btn--search { background: var(--yellow); outline: none; }
97
+ .search-panel {
98
+ background: var(--surface);
99
+ border: 2px solid var(--black);
100
+ box-shadow: 5px 5px 0 var(--black);
101
+ opacity: 0;
102
+ pointer-events: none;
103
+ position: absolute;
104
+ right: 0;
105
+ top: calc(100% + 10px);
106
+ transform: translateY(-4px);
107
+ transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
108
+ visibility: hidden;
109
+ width: min(30rem, calc(100vw - 2.25rem));
110
+ z-index: 20;
111
+ }
112
+ .search-panel__controls { padding: 14px; }
113
+ .search-shell:hover .search-panel,
114
+ .search-shell:focus-within .search-panel,
115
+ .search-shell.is-open .search-panel {
116
+ opacity: 1;
117
+ pointer-events: auto;
118
+ transform: translateY(0);
119
+ visibility: visible;
120
+ }
121
+ .search-label { display: block; font: 700 10px "IBM Plex Mono", monospace; margin-bottom: 8px; }
122
+ .search-input {
123
+ background: var(--surface2);
124
+ border: 2px solid var(--black);
125
+ border-radius: 0;
126
+ color: var(--ink);
127
+ font: 13px "IBM Plex Mono", monospace;
128
+ padding: 10px 11px;
129
+ width: 100%;
130
+ }
131
+ .search-input:focus { background: #fff; outline: 3px solid var(--green); outline-offset: 2px; }
132
+ .search-results:empty { display: none; }
133
+ .search-results { border-top: 2px solid var(--black); margin: 0; max-height: min(50vh, 24rem); overflow-y: auto; padding: 0 14px 14px; }
134
+ .search-results article { border-bottom: 1px solid rgba(16, 20, 16, 0.3); padding: 12px 0; }
135
+ .search-results article:last-child { border-bottom: 0; }
136
+ .search-results h3 { font: 700 12px "IBM Plex Mono", monospace; margin: 0 0 4px; text-transform: uppercase; }
137
+ .search-results h3 a { color: var(--green2); text-decoration: none; }
138
+ .search-results p { color: var(--muted); font-size: 12px; margin: 0; max-width: none; }
139
+
140
+ .tabs {
141
+ align-items: center;
142
+ background: var(--surface);
143
+ border-bottom: 2px solid var(--black);
144
+ display: flex;
145
+ gap: 28px;
146
+ height: 48px;
147
+ padding-left: 28px;
148
+ }
149
+ .tab {
150
+ color: var(--muted);
151
+ font: 700 11px "IBM Plex Mono", monospace;
152
+ text-decoration: none;
153
+ text-transform: uppercase;
154
+ }
155
+ .mobile-nav,
156
+ .drawer-scrim { display: none; }
157
+ .tab:hover { color: var(--ink); }
158
+ .tab.active { color: var(--green2); }
159
+ .tab.active::before { color: var(--green); content: "▶ "; }
160
+
161
+ .layout { display: flex; margin: auto; max-width: 1440px; overflow-x: clip; width: 100%; }
162
+ .sidebar {
163
+ border-right: 2px solid rgba(16, 20, 16, 0.25);
164
+ flex: none;
165
+ min-height: calc(100vh - 112px);
166
+ padding: 28px 12px 56px 20px;
167
+ width: var(--sidebar);
168
+ }
169
+ .side-title { color: var(--muted); font: 700 10px "IBM Plex Mono", monospace; margin: 0 0 12px; text-transform: uppercase; }
170
+ .side-title--spaced { margin-top: 32px; }
171
+ .nav { list-style: none; margin: 0; padding: 0; }
172
+ .nav li { margin: 2px 0; }
173
+ .nav a { color: var(--ink); display: block; font-size: 13px; padding: 6px 8px; text-decoration: none; }
174
+ .nav a:hover { background: var(--surface2); }
175
+ .nav a.active { background: var(--surface); border: 2px solid var(--black); box-shadow: 3px 3px 0 var(--black); font-weight: 700; }
176
+ .nav a.active::before { color: var(--green2); content: "▶ "; }
177
+
178
+ .main {
179
+ flex: 1 1 auto;
180
+ min-width: 0;
181
+ padding: clamp(2.25rem, 4vw, 3.375rem) clamp(1.5rem, 5vw, 4rem) 6.25rem;
182
+ /* Fill the available layout width, but cap the reading column at 75rem. */
183
+ width: min(100%, 75rem);
184
+ }
185
+ .crumb { color: var(--muted); font: 700 10px "IBM Plex Mono", monospace; letter-spacing: 0.05em; margin-bottom: 18px; text-transform: uppercase; }
186
+ h1, h2, h3 { font-family: "IBM Plex Mono", monospace; text-transform: uppercase; }
187
+ h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.06em; line-height: 1.1; margin: 0 0 14px; }
188
+ h2 { border-bottom: 2px solid var(--black); font-size: 20px; letter-spacing: -0.04em; margin: 50px 0 18px; padding-bottom: 8px; }
189
+ h2::before { color: var(--green); content: "◆"; font-size: 0.65em; margin-right: 9px; }
190
+ h3 { font-size: 15px; margin-top: 32px; }
191
+ a { color: var(--green2); }
192
+ a:hover { color: var(--ink); }
193
+ p, li { max-width: 760px; }
194
+ .headerlink {
195
+ display: inline-block;
196
+ font-family: "IBM Plex Mono", monospace;
197
+ font-size: 0;
198
+ margin-left: 0.45rem;
199
+ text-decoration: none;
200
+ vertical-align: 0.12em;
201
+ }
202
+ .headerlink::after { color: var(--green2); content: "#"; font-size: 1rem; }
203
+ .main h2[id],
204
+ .main h3[id],
205
+ .main h4[id],
206
+ .main h5[id],
207
+ .main h6[id] { scroll-margin-top: 136px; }
208
+
209
+ code { background: var(--surface2); border: 1px solid rgba(40, 124, 53, 0.45); font-family: "IBM Plex Mono", monospace; font-size: 0.9em; padding: 2px 5px; }
210
+ pre, .highlight pre {
211
+ background: var(--code);
212
+ border: 2px solid var(--black);
213
+ box-shadow: 5px 5px 0 var(--black);
214
+ color: var(--code-text);
215
+ font: 13px/1.55 "IBM Plex Mono", monospace;
216
+ margin: 18px 0 26px;
217
+ overflow: auto;
218
+ padding: 20px 84px 20px 20px;
219
+ max-width: calc(100% - 5px);
220
+ }
221
+ pre code, .highlight pre code { background: transparent; border: 0; color: inherit; padding: 0; }
222
+ .highlight { background: transparent; position: relative; }
223
+ .code-copy {
224
+ background: var(--surface);
225
+ border: 2px solid var(--black);
226
+ color: var(--black);
227
+ cursor: pointer;
228
+ font: 700 10px "IBM Plex Mono", monospace;
229
+ padding: 5px 7px;
230
+ position: absolute;
231
+ right: 12px;
232
+ top: 12px;
233
+ }
234
+ .code-copy:hover,
235
+ .code-copy:focus-visible { background: var(--yellow); outline: 2px solid var(--green2); outline-offset: 2px; }
236
+ .code-copy.is-copied { background: var(--green); }
237
+ .highlight .k, .highlight .kn, .highlight .kd { color: #72d572; }
238
+ .highlight .s, .highlight .sa, .highlight .s1, .highlight .s2 { color: #f5cf54; }
239
+ .highlight .nf, .highlight .fm { color: #4cc4d2; }
240
+ .highlight .c, .highlight .c1, .highlight .cm { color: #7f8978; }
241
+
242
+ blockquote { border-left: 4px solid var(--green); color: var(--muted); margin: 24px 0; padding-left: 18px; }
243
+ table {
244
+ border-collapse: collapse;
245
+ display: table;
246
+ margin: 24px 5px 29px 0;
247
+ max-width: none;
248
+ }
249
+ .table-shell { margin: 24px 0 29px; max-width: calc(100% - 5px); width: fit-content; }
250
+ /* The card stays fixed (including its pixel shadow); only its table content
251
+ becomes horizontally scrollable when it is too wide for the page. */
252
+ .table-scroll {
253
+ background: var(--surface);
254
+ border: 2px solid var(--black);
255
+ box-shadow: 5px 5px 0 var(--black);
256
+ max-width: 100%;
257
+ overflow-x: auto;
258
+ }
259
+ .table-shell table { border: 0; box-shadow: none; margin: 0; }
260
+ td, th { border: 1px solid rgba(16, 20, 16, 0.3); padding: 8px 12px; text-align: left; }
261
+ th { background: var(--surface2); font-family: "IBM Plex Mono", monospace; }
262
+ img, video {
263
+ background: var(--surface);
264
+ border: 2px solid var(--black);
265
+ box-shadow: 4px 4px 0 var(--black);
266
+ display: block;
267
+ height: auto;
268
+ margin: 1.5rem 4px 1.75rem 0;
269
+ max-width: calc(100% - 4px);
270
+ }
271
+
272
+ .admonition, details {
273
+ background: var(--surface);
274
+ border: 2px solid var(--black);
275
+ box-shadow: 4px 4px 0 var(--black);
276
+ margin: 24px 0;
277
+ }
278
+ .admonition-title, summary {
279
+ background: var(--yellow);
280
+ border-bottom: 2px solid var(--black);
281
+ cursor: pointer;
282
+ font: 700 10px "IBM Plex Mono", monospace;
283
+ margin: 0;
284
+ padding: 8px 12px;
285
+ text-transform: uppercase;
286
+ }
287
+ .admonition > *,
288
+ details > * { max-width: none; }
289
+ .admonition > :not(.admonition-title), details > :not(summary) { margin-left: 14px; margin-right: 14px; }
290
+ .admonition-title + p { padding-bottom: 14px; }
291
+
292
+ .tabbed-set {
293
+ background: var(--surface);
294
+ border: 2px solid var(--black);
295
+ box-shadow: 5px 5px 0 var(--black);
296
+ margin: 28px 5px 36px 0;
297
+ max-width: calc(100% - 5px);
298
+ overflow: hidden;
299
+ position: relative;
300
+ }
301
+ .tabbed-set > input { height: 1px; opacity: 0; position: absolute; width: 1px; }
302
+ .tabbed-labels { background: var(--surface2); border-bottom: 2px solid var(--black); display: flex; flex-wrap: wrap; }
303
+ .tabbed-labels > label {
304
+ border-right: 2px solid var(--black);
305
+ color: var(--muted);
306
+ font: 700 10px "IBM Plex Mono", monospace;
307
+ margin: 0;
308
+ padding: 11px 16px;
309
+ text-transform: uppercase;
310
+ }
311
+ .tabbed-labels > label:hover { background: #d8d3b8; cursor: pointer; }
312
+ .tabbed-content > .tabbed-block { display: none; }
313
+ .tabbed-set > input:nth-child(1):checked ~ .tabbed-labels > label:nth-child(1),
314
+ .tabbed-set > input:nth-child(2):checked ~ .tabbed-labels > label:nth-child(2),
315
+ .tabbed-set > input:nth-child(3):checked ~ .tabbed-labels > label:nth-child(3),
316
+ .tabbed-set > input:nth-child(4):checked ~ .tabbed-labels > label:nth-child(4),
317
+ .tabbed-set > input:nth-child(5):checked ~ .tabbed-labels > label:nth-child(5),
318
+ .tabbed-set > input:nth-child(6):checked ~ .tabbed-labels > label:nth-child(6),
319
+ .tabbed-set > input:nth-child(7):checked ~ .tabbed-labels > label:nth-child(7),
320
+ .tabbed-set > input:nth-child(8):checked ~ .tabbed-labels > label:nth-child(8) {
321
+ background: var(--green);
322
+ color: var(--black);
323
+ }
324
+ .tabbed-set > input:nth-child(1):checked ~ .tabbed-labels > label:nth-child(1)::before,
325
+ .tabbed-set > input:nth-child(2):checked ~ .tabbed-labels > label:nth-child(2)::before,
326
+ .tabbed-set > input:nth-child(3):checked ~ .tabbed-labels > label:nth-child(3)::before,
327
+ .tabbed-set > input:nth-child(4):checked ~ .tabbed-labels > label:nth-child(4)::before,
328
+ .tabbed-set > input:nth-child(5):checked ~ .tabbed-labels > label:nth-child(5)::before,
329
+ .tabbed-set > input:nth-child(6):checked ~ .tabbed-labels > label:nth-child(6)::before,
330
+ .tabbed-set > input:nth-child(7):checked ~ .tabbed-labels > label:nth-child(7)::before,
331
+ .tabbed-set > input:nth-child(8):checked ~ .tabbed-labels > label:nth-child(8)::before { content: "▶ "; }
332
+ .tabbed-set > input:nth-child(1):checked ~ .tabbed-content > .tabbed-block:nth-child(1),
333
+ .tabbed-set > input:nth-child(2):checked ~ .tabbed-content > .tabbed-block:nth-child(2),
334
+ .tabbed-set > input:nth-child(3):checked ~ .tabbed-content > .tabbed-block:nth-child(3),
335
+ .tabbed-set > input:nth-child(4):checked ~ .tabbed-content > .tabbed-block:nth-child(4),
336
+ .tabbed-set > input:nth-child(5):checked ~ .tabbed-content > .tabbed-block:nth-child(5),
337
+ .tabbed-set > input:nth-child(6):checked ~ .tabbed-content > .tabbed-block:nth-child(6),
338
+ .tabbed-set > input:nth-child(7):checked ~ .tabbed-content > .tabbed-block:nth-child(7),
339
+ .tabbed-set > input:nth-child(8):checked ~ .tabbed-content > .tabbed-block:nth-child(8) { display: block; }
340
+ .tabbed-content { padding: 0 20px; }
341
+ .tabbed-content pre,
342
+ .tabbed-content .highlight pre { box-shadow: none; }
343
+
344
+ .lead { color: var(--muted); font-size: 17px; max-width: 760px; }
345
+ .pixel-panel, .example { background: var(--surface); border: 2px solid var(--black); box-shadow: 5px 5px 0 var(--black); }
346
+ .install { align-items: center; display: flex; gap: 16px; margin: 28px 0; padding: 18px 20px; }
347
+ .install-label { color: var(--green2); font: 700 10px "IBM Plex Mono", monospace; white-space: nowrap; }
348
+ .example { margin-top: 28px; padding: 20px; }
349
+ .example-head { align-items: center; display: flex; gap: 10px; margin-bottom: 10px; }
350
+ .badge { background: var(--green); border: 2px solid var(--black); font: 700 9px "IBM Plex Mono", monospace; padding: 4px 7px; }
351
+ .badge.orange { background: var(--orange); }
352
+ .hero-flow { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; margin: 26px 0 12px; }
353
+ .node { background: var(--surface); border: 2px solid var(--black); box-shadow: 3px 3px 0 var(--black); font: 700 10px "IBM Plex Mono", monospace; padding: 9px 11px; }
354
+ .arrow { color: var(--green2); font-weight: 900; }
355
+ .footer { border-top: 2px solid var(--black); color: var(--muted); font: 11px "IBM Plex Mono", monospace; margin-top: 70px; padding-top: 20px; }
356
+
357
+ @media (max-width: 850px) {
358
+ .sidebar { display: none; }
359
+ .main { padding: 36px 24px 70px; width: 100%; }
360
+ .tabs { gap: 15px; overflow-x: auto; padding-left: 18px; }
361
+ .header-btn--menu {
362
+ cursor: pointer;
363
+ visibility: visible;
364
+ }
365
+ .search-panel { right: 0; width: min(26rem, calc(100vw - 2.25rem)); }
366
+ .drawer-scrim {
367
+ background: rgba(16, 20, 16, 0.45);
368
+ display: block;
369
+ inset: 0;
370
+ opacity: 0;
371
+ pointer-events: none;
372
+ position: fixed;
373
+ transition: opacity 150ms ease;
374
+ z-index: 29;
375
+ }
376
+ .drawer-scrim.is-open { opacity: 1; pointer-events: auto; }
377
+ .mobile-nav {
378
+ background: var(--surface);
379
+ border-right: 3px solid var(--black);
380
+ display: block;
381
+ height: 100dvh;
382
+ left: 0;
383
+ overflow-y: auto;
384
+ padding: 18px;
385
+ position: fixed;
386
+ top: 0;
387
+ transform: translateX(-100%);
388
+ transition: transform 150ms ease, visibility 150ms ease;
389
+ visibility: hidden;
390
+ width: min(20rem, calc(100vw - 2.5rem));
391
+ z-index: 30;
392
+ }
393
+ .mobile-nav.is-open { transform: translateX(0); visibility: visible; }
394
+ .mobile-nav__header {
395
+ align-items: center;
396
+ border-bottom: 2px solid var(--black);
397
+ display: flex;
398
+ font: 700 11px "IBM Plex Mono", monospace;
399
+ justify-content: space-between;
400
+ padding-bottom: 14px;
401
+ text-transform: uppercase;
402
+ }
403
+ .mobile-nav__close { padding: 5px 7px; }
404
+ .mobile-nav__content { padding: 18px 0 32px; }
405
+ .mobile-nav__top {
406
+ color: var(--ink);
407
+ display: block;
408
+ font: 700 12px "IBM Plex Mono", monospace;
409
+ margin-top: 20px;
410
+ text-decoration: none;
411
+ text-transform: uppercase;
412
+ }
413
+ .mobile-nav__top:first-child { margin-top: 0; }
414
+ .mobile-nav__top.active { color: var(--green2); }
415
+ .mobile-nav__children { list-style: none; margin: 8px 0 0; padding: 0 0 0 10px; }
416
+ .mobile-nav__children li { margin: 2px 0; }
417
+ .mobile-nav__children a {
418
+ color: var(--ink);
419
+ display: block;
420
+ font-size: 13px;
421
+ padding: 6px 8px;
422
+ text-decoration: none;
423
+ }
424
+ .mobile-nav__children a.active { background: var(--surface2); border-left: 3px solid var(--green2); font-weight: 700; }
425
+ .mobile-nav__group {
426
+ color: var(--muted);
427
+ font: 700 10px "IBM Plex Mono", monospace;
428
+ margin-top: 12px !important;
429
+ padding: 0 8px;
430
+ text-transform: uppercase;
431
+ }
432
+ body.drawer-open { overflow: hidden; }
433
+ }
@@ -0,0 +1,183 @@
1
+ document.addEventListener("DOMContentLoaded", () => {
2
+ const searchShell = document.querySelector(".search-shell");
3
+ const searchToggle = document.querySelector("#search-toggle");
4
+ const searchInput = document.querySelector("#mkdocs-search-query");
5
+ const navToggle = document.querySelector("#nav-toggle");
6
+ const mobileNav = document.querySelector("#mobile-nav");
7
+ const navClose = document.querySelector("#nav-close");
8
+ const drawerScrim = document.querySelector("#drawer-scrim");
9
+ const skipLink = document.querySelector(".skip-link");
10
+
11
+ if (skipLink) {
12
+ document.addEventListener("keydown", (event) => {
13
+ const activeElement = document.activeElement;
14
+ const enteringDocument = activeElement === document.body || activeElement === document.documentElement;
15
+ if (event.key === "Tab" && !event.shiftKey && enteringDocument) {
16
+ event.preventDefault();
17
+ skipLink.focus();
18
+ }
19
+ });
20
+ }
21
+
22
+ const setSearchOpen = (open) => {
23
+ if (!searchShell || !searchToggle) return;
24
+ searchShell.classList.toggle("is-open", open);
25
+ searchToggle.setAttribute("aria-expanded", String(open));
26
+ };
27
+
28
+ const setNavOpen = (open) => {
29
+ if (!navToggle || !mobileNav || !drawerScrim) return;
30
+ mobileNav.classList.toggle("is-open", open);
31
+ drawerScrim.classList.toggle("is-open", open);
32
+ document.body.classList.toggle("drawer-open", open);
33
+ mobileNav.setAttribute("aria-hidden", String(!open));
34
+ navToggle.setAttribute("aria-expanded", String(open));
35
+ };
36
+
37
+ if (searchShell && searchToggle && searchInput) {
38
+ searchToggle.addEventListener("click", () => {
39
+ const open = !searchShell.classList.contains("is-open");
40
+ setSearchOpen(open);
41
+ if (open) searchInput.focus();
42
+ });
43
+
44
+ document.addEventListener("click", (event) => {
45
+ if (!searchShell.contains(event.target)) setSearchOpen(false);
46
+ });
47
+
48
+ document.addEventListener("keydown", (event) => {
49
+ if (event.key === "Escape") {
50
+ if (mobileNav?.classList.contains("is-open")) {
51
+ setNavOpen(false);
52
+ navToggle?.focus();
53
+ } else {
54
+ setSearchOpen(false);
55
+ searchToggle.focus();
56
+ }
57
+ }
58
+ });
59
+ }
60
+
61
+ if (navToggle && mobileNav && drawerScrim) {
62
+ navToggle.addEventListener("click", () => {
63
+ const open = !mobileNav.classList.contains("is-open");
64
+ setNavOpen(open);
65
+ if (open) navClose?.focus();
66
+ });
67
+ navClose?.addEventListener("click", () => {
68
+ setNavOpen(false);
69
+ navToggle.focus();
70
+ });
71
+ drawerScrim.addEventListener("click", () => {
72
+ setNavOpen(false);
73
+ navToggle.focus();
74
+ });
75
+ }
76
+
77
+ const copyText = async (value) => {
78
+ try {
79
+ if (navigator.clipboard?.writeText) {
80
+ await navigator.clipboard.writeText(value);
81
+ return;
82
+ }
83
+ } catch (error) {
84
+ // Fall back for browsers that block the Clipboard API outside a secure context.
85
+ }
86
+
87
+ const textarea = document.createElement("textarea");
88
+ textarea.value = value;
89
+ textarea.setAttribute("readonly", "");
90
+ textarea.style.position = "fixed";
91
+ textarea.style.opacity = "0";
92
+ document.body.appendChild(textarea);
93
+ textarea.select();
94
+ const copied = document.execCommand("copy");
95
+ textarea.remove();
96
+ if (!copied) throw new Error("Clipboard copy failed");
97
+ };
98
+
99
+ document.querySelectorAll(".main pre > code").forEach((code) => {
100
+ const block = code.closest(".highlight");
101
+ if (!block || block.querySelector(".code-copy")) return;
102
+
103
+ const button = document.createElement("button");
104
+ button.className = "code-copy";
105
+ button.type = "button";
106
+ button.textContent = "COPY";
107
+ button.setAttribute("aria-label", "Copy code to clipboard");
108
+ block.appendChild(button);
109
+
110
+ button.addEventListener("click", async () => {
111
+ try {
112
+ await copyText(code.innerText);
113
+ button.textContent = "COPIED";
114
+ button.classList.add("is-copied");
115
+ } catch (error) {
116
+ button.textContent = "FAILED";
117
+ }
118
+
119
+ window.setTimeout(() => {
120
+ button.textContent = "COPY";
121
+ button.classList.remove("is-copied");
122
+ }, 1600);
123
+ });
124
+ });
125
+
126
+ const trackedHeadings = Array.from(
127
+ document.querySelectorAll(".main h2[id], .main h3[id], .main h4[id], .main h5[id], .main h6[id]"),
128
+ );
129
+ let trackingFrame;
130
+
131
+ const updateHeadingFragment = () => {
132
+ trackingFrame = undefined;
133
+ const headerHeight = document.querySelector(".header")?.getBoundingClientRect().height ?? 0;
134
+ const tabsHeight = document.querySelector(".tabs")?.getBoundingClientRect().height ?? 0;
135
+ const offset = headerHeight + tabsHeight + 24;
136
+ let activeHeading;
137
+
138
+ trackedHeadings.forEach((heading) => {
139
+ if (heading.getBoundingClientRect().top <= offset) activeHeading = heading;
140
+ });
141
+
142
+ const hash = activeHeading ? `#${activeHeading.id}` : "";
143
+ if (window.location.hash === hash) return;
144
+
145
+ const url = `${window.location.pathname}${window.location.search}${hash}`;
146
+ window.history.replaceState(null, "", url);
147
+ };
148
+
149
+ if (trackedHeadings.length) {
150
+ const scheduleHeadingTracking = () => {
151
+ if (trackingFrame !== undefined) return;
152
+ trackingFrame = window.requestAnimationFrame(updateHeadingFragment);
153
+ };
154
+
155
+ window.addEventListener("scroll", scheduleHeadingTracking, { passive: true });
156
+ window.addEventListener("resize", scheduleHeadingTracking);
157
+ scheduleHeadingTracking();
158
+ }
159
+
160
+ document.querySelectorAll(".main table").forEach((table) => {
161
+ const shell = document.createElement("div");
162
+ shell.className = "table-shell";
163
+ table.parentNode.insertBefore(shell, table);
164
+ const scroll = document.createElement("div");
165
+ scroll.className = "table-scroll";
166
+ shell.appendChild(scroll);
167
+ scroll.appendChild(table);
168
+ });
169
+
170
+ document.querySelectorAll(".tabs-demo").forEach((group) => {
171
+ const buttons = group.querySelectorAll("[data-tab]");
172
+ const panels = group.querySelectorAll("[data-panel]");
173
+
174
+ buttons.forEach((button) => {
175
+ button.addEventListener("click", () => {
176
+ buttons.forEach((item) => item.classList.toggle("active", item === button));
177
+ panels.forEach((panel) => {
178
+ panel.hidden = panel.dataset.panel !== button.dataset.tab;
179
+ });
180
+ });
181
+ });
182
+ });
183
+ });
@@ -0,0 +1,79 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <meta name="description" content="{{ config.site_description }}">
7
+ <title>{% if page and page.title %}{{ page.title }} — {% endif %}{{ config.site_name }}</title>
8
+ {% if page and page.canonical_url %}
9
+ <link rel="canonical" href="{{ page.canonical_url }}">
10
+ {% endif %}
11
+ <link rel="stylesheet" href="{{ 'assets/css/style.css' | url }}">
12
+ {% for style in config.extra_css %}
13
+ <link rel="stylesheet" href="{{ style | url }}">
14
+ {% endfor %}
15
+ </head>
16
+ <body>
17
+ <a class="skip-link" href="#main-content">Skip to content</a>
18
+ <header class="header">
19
+ <button class="header-btn header-btn--menu" id="nav-toggle" type="button" aria-label="Open navigation" aria-expanded="false" aria-controls="mobile-nav">
20
+ <span class="hamburger" aria-hidden="true"><span></span><span></span><span></span></span>
21
+ </button>
22
+ <a class="brand" href="{{ nav.homepage.url | url }}">{{ config.site_name | upper }}</a>
23
+ <div class="header-right">
24
+ <div class="search-shell">
25
+ <button class="header-btn header-btn--search" id="search-toggle" type="button" aria-expanded="false" aria-controls="search-panel">⌕ SEARCH</button>
26
+ <div class="search-panel" id="search-panel">
27
+ <div class="search-panel__controls">
28
+ <label class="search-label" for="mkdocs-search-query">SEARCH DOCUMENTATION</label>
29
+ <input id="mkdocs-search-query" class="search-input" type="search" autocomplete="off" placeholder="Type to search…">
30
+ </div>
31
+ <div id="mkdocs-search-results" class="search-results" data-no-results-text="No matching pages."></div>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </header>
36
+ <nav class="tabs" aria-label="Primary navigation">
37
+ {% for nav_item in nav %}
38
+ {% set nav_url = nav_item.url or (nav_item.children[0].url if nav_item.children else '') %}
39
+ <a class="tab{% if nav_item.active %} active{% endif %}" href="{{ nav_url | url }}">{{ nav_item.title }}</a>
40
+ {% endfor %}
41
+ </nav>
42
+ <div class="drawer-scrim" id="drawer-scrim"></div>
43
+ <aside class="mobile-nav" id="mobile-nav" aria-label="Site navigation" aria-hidden="true">
44
+ <div class="mobile-nav__header"><span>Navigation</span><button class="header-btn mobile-nav__close" id="nav-close" type="button">× CLOSE</button></div>
45
+ <nav class="mobile-nav__content">
46
+ {% for nav_item in nav %}
47
+ {% set nav_url = nav_item.url or (nav_item.children[0].url if nav_item.children else '') %}
48
+ <a class="mobile-nav__top{% if nav_item.active %} active{% endif %}" href="{{ nav_url | url }}">{{ nav_item.title }}</a>
49
+ {% if nav_item.children %}<ul class="mobile-nav__children">
50
+ {% for child in nav_item.children %}
51
+ {% if child.children %}<li class="mobile-nav__group">{{ child.title }}</li>{% for grandchild in child.children %}<li><a{% if grandchild.active %} class="active"{% endif %} href="{{ grandchild.url | url }}">{{ grandchild.title }}</a></li>{% endfor %}
52
+ {% else %}<li><a{% if child.active %} class="active"{% endif %} href="{{ child.url | url }}">{{ child.title }}</a></li>{% endif %}
53
+ {% endfor %}
54
+ </ul>{% endif %}
55
+ {% endfor %}
56
+ </nav>
57
+ </aside>
58
+ {% set sidebar = namespace(items=[]) %}
59
+ {% for nav_item in nav %}{% if nav_item.active and nav_item.children %}{% set sidebar.items = nav_item.children %}{% endif %}{% endfor %}
60
+ <div class="layout">
61
+ {% if sidebar.items %}
62
+ <aside class="sidebar" aria-label="Section navigation">
63
+ {% for section in sidebar.items %}
64
+ {% if section.children %}<div class="side-title{% if not loop.first %} side-title--spaced{% endif %}">{{ section.title }}</div><ul class="nav">{% for child in section.children %}<li><a{% if child.active %} class="active"{% endif %} href="{{ child.url | url }}">{{ child.title }}</a></li>{% endfor %}</ul>
65
+ {% else %}<ul class="nav"><li><a{% if section.active %} class="active"{% endif %} href="{{ section.url | url }}">{{ section.title }}</a></li></ul>{% endif %}
66
+ {% endfor %}
67
+ </aside>
68
+ {% endif %}
69
+ <main class="main" id="main-content" tabindex="-1">
70
+ {% if page and page.meta and page.meta.crumb %}<div class="crumb">{{ page.meta.crumb | upper }}</div>{% endif %}
71
+ {% if page %}{{ page.content }}{% endif %}
72
+ <footer class="footer">{% if config.theme.footer_text %}<span>{{ config.theme.footer_text | upper }}</span> · {% endif %}BUILT WITH <a href="https://github.com/trained-by-humans/mkdocs-pixel-lab">PIXEL LAB</a> BY <a href="https://github.com/trained-by-humans">TRAINED-BY-HUMANS</a></footer>
73
+ </main>
74
+ </div>
75
+ <script>var base_url = {{ base_url | tojson }};</script>
76
+ <script src="{{ 'assets/js/main.js' | url }}"></script>
77
+ {% for script in config.extra_javascript %}{{ script | script_tag }}{% endfor %}
78
+ </body>
79
+ </html>
@@ -0,0 +1 @@
1
+ {% include "base.html" %}
@@ -0,0 +1,2 @@
1
+ name: pixel-lab
2
+ footer_text: ""
@@ -0,0 +1,70 @@
1
+ Metadata-Version: 2.5
2
+ Name: mkdocs-pixel-lab
3
+ Version: 0.1.0rc1
4
+ Summary: A vibrant, accessible MkDocs documentation theme by Trained-by-Humans.
5
+ Project-URL: Homepage, https://github.com/trained-by-humans/mkdocs-pixel-lab
6
+ Project-URL: Documentation, https://github.com/trained-by-humans/mkdocs-pixel-lab#readme
7
+ Project-URL: Repository, https://github.com/trained-by-humans/mkdocs-pixel-lab
8
+ Project-URL: Issues, https://github.com/trained-by-humans/mkdocs-pixel-lab/issues
9
+ Project-URL: Changelog, https://github.com/trained-by-humans/mkdocs-pixel-lab/releases
10
+ Author: Trained-by-Humans
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ License-File: THIRD_PARTY_LICENSES.md
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Framework :: MkDocs
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Requires-Python: >=3.10
23
+ Requires-Dist: mkdocs<2,>=1.6
24
+ Requires-Dist: pymdown-extensions<11,>=10
25
+ Provides-Extra: test
26
+ Requires-Dist: pytest-playwright>=0.7; extra == 'test'
27
+ Requires-Dist: pytest>=8; extra == 'test'
28
+ Description-Content-Type: text/markdown
29
+
30
+ # Pixel Lab
31
+
32
+ Pixel Lab is a vibrant, accessible theme for [MkDocs](https://www.mkdocs.org/).
33
+
34
+ ## Quick start
35
+
36
+ ```bash
37
+ python -m pip install mkdocs-pixel-lab
38
+ ```
39
+
40
+ Use it in `mkdocs.yml`:
41
+
42
+ ```yaml
43
+ theme:
44
+ name: pixel-lab
45
+ ```
46
+
47
+ Pixel Lab includes responsive navigation, search, code-copy controls, heading
48
+ fragment tracking, a skip link, and styling for standard MkDocs and Pymdown
49
+ content.
50
+
51
+ ## Preview
52
+
53
+ <table>
54
+ <tr>
55
+ <td align="center"><img src="tests/snapshots/desktop.png" alt="Pixel Lab desktop documentation preview" height="480"></td>
56
+ <td align="center"><img src="tests/snapshots/mobile.png" alt="Pixel Lab mobile documentation preview" height="480"></td>
57
+ </tr>
58
+ <tr>
59
+ <td align="center">Desktop</td>
60
+ <td align="center">Mobile</td>
61
+ </tr>
62
+ </table>
63
+
64
+ ## Development
65
+
66
+ ```bash
67
+ python -m pip install -e '.[test]'
68
+ playwright install chromium
69
+ pytest
70
+ ```
@@ -0,0 +1,16 @@
1
+ mkdocs_pixel_lab/__init__.py,sha256=-x83xbZ-sk3PWMITSJJ5HxR4ltME3IovySk7-KEQh38,38
2
+ mkdocs_pixel_lab/base.html,sha256=kGHHNfTDg2osiWv3fWpPbCHk5K4y4yIs9gWsk7rt64c,5088
3
+ mkdocs_pixel_lab/main.html,sha256=GhWeXeBNHASbmhBhfB8m58k5jWnX5by7tUgXWWFBKGM,26
4
+ mkdocs_pixel_lab/mkdocs_theme.yml,sha256=ExZWwyQ6wJlqNWyciaCypjUdEgsATTkaPokG55Q1wz8,32
5
+ mkdocs_pixel_lab/assets/css/style.css,sha256=sbTaHZD6-Rux3PnA0o4XWwfpJWDfsyF2DtJDcn6RirM,16820
6
+ mkdocs_pixel_lab/assets/fonts/ibm-plex-mono-400.woff2,sha256=CJSfco3FLVKOabFmfRXImlaGpO6aKW_5CYOYX5nDgPc,14708
7
+ mkdocs_pixel_lab/assets/fonts/ibm-plex-mono-600.woff2,sha256=DR8LjQciIk4y6fKCYb3IbHkRW-c0RK5ezrc5dqG834M,15620
8
+ mkdocs_pixel_lab/assets/fonts/ibm-plex-mono-700.woff2,sha256=T4TYbP0GD03tM0NY_4pMgdTbLtWt3VaDWdaT9EqHdlo,14908
9
+ mkdocs_pixel_lab/assets/fonts/inter-latin.woff2,sha256=MQDndehhbNJhG-7PojpCY9cDdYZ4m0PwNSNqLm-9TGI,48256
10
+ mkdocs_pixel_lab/assets/js/main.js,sha256=oKINmMi29dA9RtIjFrv_J3dGtXdj71Zo_a6mXSpKqho,6265
11
+ mkdocs_pixel_lab-0.1.0rc1.dist-info/METADATA,sha256=gFUcLvMx2ko7DocR-vmMrTdleChC_WYqRkgYsSUY_QQ,2190
12
+ mkdocs_pixel_lab-0.1.0rc1.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
13
+ mkdocs_pixel_lab-0.1.0rc1.dist-info/entry_points.txt,sha256=DosMVE3vSULdnfwY2OY2z_fXNo1Bwyba5fblbeikhlM,45
14
+ mkdocs_pixel_lab-0.1.0rc1.dist-info/licenses/LICENSE,sha256=IZHQXG7nwUVICRa3Rb0CBIStthZTvpQ8Q8_xC8IpJ6E,10774
15
+ mkdocs_pixel_lab-0.1.0rc1.dist-info/licenses/THIRD_PARTY_LICENSES.md,sha256=jjrMKtdNjg7UkjJ-PaBWKSEkcvy6tfTMO8lqajj4ZMI,4733
16
+ mkdocs_pixel_lab-0.1.0rc1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [mkdocs.themes]
2
+ pixel-lab = mkdocs_pixel_lab
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,101 @@
1
+ # Third-party font licenses
2
+
3
+ This package bundles IBM Plex Mono and Inter WOFF2 font files. Both are
4
+ licensed under the SIL Open Font License 1.1. IBM Plex Mono is Copyright ©
5
+ 2017 IBM Corp.; Inter is Copyright © 2020 The Inter Project Authors.
6
+
7
+ ## SIL Open Font License 1.1
8
+
9
+ Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
10
+
11
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
12
+
13
+ This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
14
+
15
+
16
+ -----------------------------------------------------------
17
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
18
+ -----------------------------------------------------------
19
+
20
+ PREAMBLE
21
+ The goals of the Open Font License (OFL) are to stimulate worldwide
22
+ development of collaborative font projects, to support the font creation
23
+ efforts of academic and linguistic communities, and to provide a free and
24
+ open framework in which fonts may be shared and improved in partnership
25
+ with others.
26
+
27
+ The OFL allows the licensed fonts to be used, studied, modified and
28
+ redistributed freely as long as they are not sold by themselves. The
29
+ fonts, including any derivative works, can be bundled, embedded,
30
+ redistributed and/or sold with any software provided that any reserved
31
+ names are not used by derivative works. The fonts and derivatives,
32
+ however, cannot be released under any other type of license. The
33
+ requirement for fonts to remain under this license does not apply
34
+ to any document created using the fonts or their derivatives.
35
+
36
+ DEFINITIONS
37
+ "Font Software" refers to the set of files released by the Copyright
38
+ Holder(s) under this license and clearly marked as such. This may
39
+ include source files, build scripts and documentation.
40
+
41
+ "Reserved Font Name" refers to any names specified as such after the
42
+ copyright statement(s).
43
+
44
+ "Original Version" refers to the collection of Font Software components as
45
+ distributed by the Copyright Holder(s).
46
+
47
+ "Modified Version" refers to any derivative made by adding to, deleting,
48
+ or substituting -- in part or in whole -- any of the components of the
49
+ Original Version, by changing formats or by porting the Font Software to a
50
+ new environment.
51
+
52
+ "Author" refers to any designer, engineer, programmer, technical
53
+ writer or other person who contributed to the Font Software.
54
+
55
+ PERMISSION & CONDITIONS
56
+ Permission is hereby granted, free of charge, to any person obtaining
57
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
58
+ redistribute, and sell modified and unmodified copies of the Font
59
+ Software, subject to the following conditions:
60
+
61
+ 1) Neither the Font Software nor any of its individual components,
62
+ in Original or Modified Versions, may be sold by itself.
63
+
64
+ 2) Original or Modified Versions of the Font Software may be bundled,
65
+ redistributed and/or sold with any software, provided that each copy
66
+ contains the above copyright notice and this license. These can be
67
+ included either as stand-alone text files, human-readable headers or
68
+ in the appropriate machine-readable metadata fields within text or
69
+ binary files as long as those fields can be easily viewed by the user.
70
+
71
+ 3) No Modified Version of the Font Software may use the Reserved Font
72
+ Name(s) unless explicit written permission is granted by the corresponding
73
+ Copyright Holder. This restriction only applies to the primary font name as
74
+ presented to the users.
75
+
76
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
77
+ Software shall not be used to promote, endorse or advertise any
78
+ Modified Version, except to acknowledge the contribution(s) of the
79
+ Copyright Holder(s) and the Author(s) or with their explicit written
80
+ permission.
81
+
82
+ 5) The Font Software, modified or unmodified, in part or in whole,
83
+ must be distributed entirely under this license, and must not be
84
+ distributed under any other license. The requirement for fonts to
85
+ remain under this license does not apply to any document created
86
+ using the Font Software.
87
+
88
+ TERMINATION
89
+ This license becomes null and void if any of the above conditions are
90
+ not met.
91
+
92
+ DISCLAIMER
93
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
94
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
95
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
96
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
97
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
98
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
99
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
100
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
101
+ OTHER DEALINGS IN THE FONT SOFTWARE.