Skip to content

Commit 653f1c1

Browse files
committed
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
2 parents 208a0de + 5be51ac commit 653f1c1

File tree

987 files changed

+12299
-14003
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

987 files changed

+12299
-14003
lines changed

docs/.cspell.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"redirections",
6161
"subexpression",
6262
"suppressible",
63+
"synchronisation",
6364
"templating",
6465
"transpile",
6566
"unmarshal",
@@ -161,7 +162,7 @@
161162
"# ----------------------------------------------------------------------",
162163
"achristie",
163164
"ccpa",
164-
"crpa",
165+
"cpra",
165166
"ddmaurier",
166167
"dring",
167168
"fleqn",
@@ -171,6 +172,8 @@
171172
"jsmith",
172173
"leqno",
173174
"milli",
175+
"monokai",
176+
"mysanityprojectid",
174177
"rgba",
175178
"rsmith",
176179
"tdewolff",

docs/.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
/.vscode
55
/dist
66
/public
7+
/resources
78
hugo_stats.json
89
node_modules/
910
nohup.out
1011
package-lock.json
11-
public/
12-
resources/
13-
trace.out
12+
trace.out

docs/.markdownlint.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ MD041: false
2222
MD046: false
2323
MD049: false
2424
MD050: false
25+
MD051: false
2526
MD053: false
2627
MD055: false

docs/.prettierignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Ignore all SVG icons.
2+
**/icons.html
3+
4+
# These are whitespace sensitive.
5+
layouts/_default/_markup/render-code*
6+
layouts/_default/_markup/render-table*
7+
layouts/shortcodes/glossary-term.html
8+
layouts/shortcodes/glossary.html
9+
layouts/shortcodes/highlighting-styles.html
10+
layouts/shortcodes/list-pages-in-section.html
11+
layouts/shortcodes/quick-reference.html
12+
13+
# No root node.
14+
layouts/partials/layouts/head/head.html
15+
16+
# Auto generated.
17+
assets/css/components/chroma*.css
18+
assets/jsconfig.json

docs/.prettierrc

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"plugins": [
3+
"prettier-plugin-go-template",
4+
"@awmottaz/prettier-plugin-void-html"
5+
],
6+
"overrides": [
7+
{
8+
"files": ["*.html"],
9+
"options": {
10+
"parser": "go-template",
11+
"goTemplateBracketSpacing": true,
12+
"bracketSameLine": true
13+
}
14+
},
15+
{
16+
"files": ["*.js", "*.ts"],
17+
"options": {
18+
"useTabs": true,
19+
"printWidth": 120,
20+
"singleQuote": true
21+
}
22+
}
23+
]
24+
}

docs/LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
See [content/LICENSE.md](content/LICENSE.md) for the license of the content of this repository.
22

3-
The theme (layouts, CSS, JavaScript etc.) of this repository has no open source license. It is custom made for the Hugo sites and is not meant for reuse.
3+
The theme (layouts, CSS, JavaScript etc.) of this repository has no open source license. It is custom made for the Hugo sites and is not meant for reuse.

docs/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Please see the [contributing] section for guidelines, examples, and process.
1919

2020
# Install
2121

22-
```bash
22+
```sh
2323
npm i
2424
hugo server
2525
```
2626

27-
**Note:** We're working on removing the need to run `npm i` for local development. Stay tuned.
27+
**Note:** We're working on removing the need to run `npm i` for local development. Stay tuned.

docs/archetypes/default.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: {{ replace .File.ContentBaseName "-" " " | strings.FirstUpper }}
3+
description:
4+
categories: []
5+
keywords: []
6+
---

docs/archetypes/functions.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ title: {{ replace .File.ContentBaseName "-" " " | title }}
33
description:
44
categories: []
55
keywords: []
6-
action:
7-
aliases: []
8-
related: []
9-
returnType:
10-
signatures: []
6+
params:
7+
functions_and_methods:
8+
aliases: []
9+
returnType:
10+
signatures: []
1111
---

docs/archetypes/glossary.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: {{ replace .File.ContentBaseName "-" " " }}
3-
reference:
3+
params:
4+
reference:
45
---
56

67
<!--

docs/archetypes/methods.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: {{ replace .File.ContentBaseName "-" " " | title }}
33
description:
44
categories: []
55
keywords: []
6-
action:
7-
related: []
8-
returnType:
9-
signatures: []
6+
params:
7+
functions_and_methods:
8+
returnType:
9+
signatures: []
1010
---

docs/archetypes/news.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: {{ replace .File.ContentBaseName "-" " " | strings.FirstUpper }}
3+
description:
4+
categories: []
5+
keywords: []
6+
publishDate: {{ .Date }}
7+
---

docs/archetypes/news/index.md

-5
This file was deleted.

docs/archetypes/showcase/bio.md

-7
This file was deleted.

docs/archetypes/showcase/index.md

-36
This file was deleted.

docs/assets/css/components/all.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* The ordeer of these does not matter. */
1+
/* The order of these does not matter. */
22
@import "./content.css";
33
@import "./fonts.css";
44
@import "./helpers.css";

docs/assets/css/components/chroma_dark.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/* CodeLine */ .dark .chroma .cl { }
66
/* LineTableTD */ .dark .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
77
/* LineTable */ .dark .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
8-
/* LineHighlight */ .dark .chroma .hl { background-color: #ffffcc }
8+
/* LineHighlight */ .dark .chroma .hl { background-color: rgb(0,19,28) }
99
/* LineNumbersTable */ .dark .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
1010
/* LineNumbers */ .dark .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
1111
/* Line */ .dark .chroma .line { display: flex; }

docs/assets/css/components/content.css

+10-9
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,32 @@
1212
}
1313

1414
.highlight code {
15-
@apply text-sm;
15+
@apply text-sm/6;
1616
}
1717

1818
.content {
1919
@apply prose prose-sm sm:prose-base prose-stone max-w-none dark:prose-invert dark:text-slate-200;
2020
/* headings */
21-
@apply prose-h4:font-bold prose-h5:font-bold prose-h6:font-bold;
21+
@apply prose-headings:font-semibold;
2222
/* lead */
2323
@apply prose-lead:text-slate-500 prose-lead:text-xl prose-lead:mt-2 sm:prose-lead:mt-4 prose-lead:leading-relaxed dark:prose-lead:text-slate-400;
2424
/* links */
25-
@apply prose-a:text-primary prose-a:hover:text-primary/70 prose-a:underline;
26-
@apply prose-a:prose-code:underline prose-a:prose-code:hover:text-primary/70 prose-a:prose-code:hover:underline;
25+
@apply prose-a:text-primary dark:prose-a:text-blue-500 prose-a:hover:text-blue-500 dark:prose-a:hover:text-blue-400 prose-a:underline;
26+
@apply prose-a:prose-code:underline prose-a:prose-code:hover:text-blue-500 prose-a:prose-code:hover:underline;
2727
/* pre */
2828
@apply prose-pre:text-gray-800 prose-pre:border-1 prose-pre:border-gray-100 prose-pre:bg-light dark:prose-pre:bg-dark dark:prose-pre:ring-1 dark:prose-pre:ring-slate-300/10;
2929
/* code */
3030
@apply prose-code:px-0.5 prose-code:text-gray-500 prose-code:dark:text-gray-300 border-none;
3131
@apply prose-code:before:hidden prose-code:after:hidden prose-code:font-mono;
32+
@apply prose-table:prose-th:prose-code:text-white;
3233
/* tables */
33-
@apply prose-table:border-2 prose-table:border-gray-100 prose-table:dark:border-gray-800 prose-table:relative prose-table:overflow-scroll prose-table:prose-th:font-bold prose-table:prose-th:bg-blue-500 dark:prose-table:prose-th:bg-blue-500/50 prose-table:prose-th:p-2 prose-table:prose-td:p-2 prose-table:prose-th:text-white;
34+
@apply prose-table:w-auto prose-table:border-2 prose-table:border-gray-100 prose-table:dark:border-gray-800 prose-table:prose-th:font-bold prose-table:prose-th:bg-blue-500 dark:prose-table:prose-th:bg-blue-500/50 prose-table:prose-th:p-2 prose-table:prose-td:p-2 prose-table:prose-th:text-white;
3435
/* hr */
3536
@apply dark:prose-hr:border-slate-800;
36-
37-
h6 + * {
38-
@apply mt-2;
39-
}
37+
/* ol */
38+
@apply prose-ol:marker:prose dark:prose-ol:marker:text-gray-300;
39+
/* ul */
40+
@apply prose-ul:marker:text-gray-500 dark:prose-ul:marker:text-gray-300;
4041
}
4142

4243
/* This will not match highlighting inside e.g. the code-toggle shortcode. */

docs/assets/css/components/view-transitions.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,5 @@
1616

1717
/* Turbo styles */
1818
.turbo-progress-bar {
19-
@apply bg-blue-500;
20-
opacity: 0.35;
21-
height: 3px;
19+
visibility: hidden;
2220
}

docs/assets/css/styles.css

+10-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@
7676
--color-green-950: #051410;
7777

7878
/* Fonts. */
79-
--font-sans: "Mulish", ui-sans-serif, system-ui, sans-serif,
80-
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
79+
--font-sans:
80+
"Mulish", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
81+
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
8182
}
8283

8384
html {
@@ -121,3 +122,10 @@ body {
121122
.algolia-docsearch-suggestion--highlight {
122123
color: var(--color-primary);
123124
}
125+
126+
/* Footnotes */
127+
.footnote-backref,
128+
.footnote-ref {
129+
text-decoration: none;
130+
padding-left: .0625em;
131+
}

docs/assets/js/alpinejs/data/explorer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var debug = 0 ? console.log.bind(console, '[explorer]') : function () {};
22

3-
// This is cureently not used, but kept in case I change my mind.
3+
// This is currently not used, but kept in case I change my mind.
44
export const explorer = (Alpine) => ({
55
uiState: {
66
containerScrollTop: -1,

docs/assets/js/alpinejs/data/navbar.js

+18
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
export const navbar = (Alpine) => ({
22
init: function () {
33
Alpine.bind(this.$root, this.root);
4+
5+
return this.$nextTick(() => {
6+
let contentEl = document.querySelector('.content:not(.content--ready)');
7+
if (contentEl) {
8+
contentEl.classList.add('content--ready');
9+
let anchorTemplate = document.getElementById('anchor-heading');
10+
if (anchorTemplate) {
11+
let els = contentEl.querySelectorAll('h2[id], h3[id], h4[id], h5[id], h6[id], dt[id]');
12+
for (let i = 0; i < els.length; i++) {
13+
let el = els[i];
14+
el.classList.add('group');
15+
let a = anchorTemplate.content.cloneNode(true).firstElementChild;
16+
a.href = '#' + el.id;
17+
el.appendChild(a);
18+
}
19+
}
20+
}
21+
});
422
},
523
root: {
624
['@scroll.window.debounce.10ms'](event) {

docs/assets/js/alpinejs/data/search.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { LRUCache } from '../../helpers';
2+
13
const designMode = false;
24

35
const groupByLvl0 = (array) => {
@@ -33,10 +35,10 @@ const applyHelperFuncs = (array) => {
3335
};
3436

3537
export const search = (Alpine, cfg) => ({
36-
query: designMode ? 'shortcodes' : '',
38+
query: designMode ? 'apac' : '',
3739
open: designMode,
3840
result: {},
39-
41+
cache: new LRUCache(10), // Small cache, avoids network requests on e.g. backspace.
4042
init() {
4143
Alpine.bind(this.$root, this.root);
4244

@@ -66,6 +68,13 @@ export const search = (Alpine, cfg) => ({
6668
this.result = {};
6769
return;
6870
}
71+
72+
// Check cache first.
73+
const cached = this.cache.get(this.query);
74+
if (cached) {
75+
this.result = cached;
76+
return;
77+
}
6978
var queries = {
7079
requests: [
7180
{
@@ -91,6 +100,7 @@ export const search = (Alpine, cfg) => ({
91100
.then((response) => response.json())
92101
.then((data) => {
93102
this.result = groupByLvl0(applyHelperFuncs(data.results[0].hits));
103+
this.cache.put(this.query, this.result);
94104
});
95105
},
96106
root: {
@@ -102,7 +112,7 @@ export const search = (Alpine, cfg) => ({
102112
['@search-toggle.window']() {
103113
this.toggleOpen();
104114
},
105-
['@keydown.meta.k.window.prevent']() {
115+
['@keydown.slash.window.prevent']() {
106116
this.toggleOpen();
107117
},
108118
},

docs/assets/js/alpinejs/data/toc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const toc = (Alpine) => ({
2323
});
2424

2525
return this.$nextTick(() => {
26-
let contentEl = document.getElementById('content');
26+
let contentEl = document.getElementById('article');
2727
if (contentEl) {
2828
const handleIntersect = (entries) => {
2929
if (this.justClicked) {

0 commit comments

Comments
 (0)