7 Commits

Author SHA1 Message Date
renovate[bot]
38cb4d00a8 Update dependency postcss-nesting to v12.1.1 2024-04-07 03:29:00 +00:00
Dave Gallant
190e0b2835 Fix wording in aks blogpost 2024-04-06 23:25:57 -04:00
Dave Gallant
8b4902e3e2 Update coffee button colour 2024-04-06 23:15:40 -04:00
Dave Gallant
824f145e2c Update gitea themes 2024-04-06 23:12:01 -04:00
Dave Gallant
7ea7031521 Update prism themes 2024-04-06 23:08:23 -04:00
Dave Gallant
391d164ae9 Disable theme toggle 2024-04-06 23:08:23 -04:00
Dave Gallant
1aeb6d20b6 Add tokyonight-inspired theme 2024-04-06 23:08:23 -04:00
13 changed files with 107 additions and 113 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -109,8 +109,8 @@ I discovered some themes for gitea [here](https://git.sainnhe.dev/sainnhe/gitea-
I added the theme by cloning [theme-gruvbox-auto.css](https://git.sainnhe.dev/sainnhe/gitea-themes/raw/branch/master/dist/theme-gruvbox-auto.css) into `./data/gitea/public/assets/css`. I then added the following to `environment` in `docker-compose.yml`: I added the theme by cloning [theme-gruvbox-auto.css](https://git.sainnhe.dev/sainnhe/gitea-themes/raw/branch/master/dist/theme-gruvbox-auto.css) into `./data/gitea/public/assets/css`. I then added the following to `environment` in `docker-compose.yml`:
```yaml ```yaml
- GITEA__ui__DEFAULT_THEME=gruvbox-auto - GITEA__ui__DEFAULT_THEME=palenight
- GITEA__ui__THEMES=gruvbox-auto - GITEA__ui__THEMES=palenight
``` ```
After restarting the gitea instance, the default theme was applied. After restarting the gitea instance, the default theme was applied.
@@ -121,8 +121,6 @@ I installed the runner by [following the docs](https://docs.gitea.com/usage/acti
After registering this runner and starting the daemon, the runner appeared in `/admin/actions/runners`. I added two other runners to help with parallelization. After registering this runner and starting the daemon, the runner appeared in `/admin/actions/runners`. I added two other runners to help with parallelization.
![image](gitea-runners.png)
## Running a workflow ## Running a workflow
Now it's time start running some automation. I used the [demo workflow](https://docs.gitea.com/usage/actions/quickstart#use-actions) as a starting point to verify that the runner is executing workflows. Now it's time start running some automation. I used the [demo workflow](https://docs.gitea.com/usage/actions/quickstart#use-actions) as a starting point to verify that the runner is executing workflows.

View File

@@ -22,7 +22,7 @@ tags:
author: "Dave Gallant" author: "Dave Gallant"
--- ---
I ran into a roadblock recently where I wanted to be able to conveniently connect to a managed postgres database within Azure that was not running on public subnets. And by conveniently, I mean that I'd rather not have to spin up an ephemeral virtual machine running in the same network and proxy the connection, and I'd like to use a local client (preferably with a GUI). After several web searches, it became evident that Azure does not readily provide much tooling to support this. I ran into a roadblock recently where I wanted to conveniently connect to a managed postgres database within Azure that was not running on public subnets. And by conveniently, I mean that I'd rather not have to spin up an ephemeral virtual machine running in the same network and proxy the connection, and I'd like to use a local client (preferably with a GUI). After several web searches, it became evident that Azure does not readily provide much tooling to support this.
<!--more--> <!--more-->

View File

@@ -5,5 +5,6 @@ build: clean
clean: clean:
rm -rf public/ rm -rf public/
server: server: clean
npm ci
hugo server --buildDrafts hugo server --buildDrafts

View File

@@ -3,7 +3,7 @@
src="https://storage.ko-fi.com/cdn/widget/Widget_2.js" src="https://storage.ko-fi.com/cdn/widget/Widget_2.js"
></script> ></script>
<script type="text/javascript"> <script type="text/javascript">
kofiwidget2.init("Buy me a coffee", "#458588", "F1F2S4LWI"); kofiwidget2.init("Buy me a coffee", "#32344a", "F1F2S4LWI");
kofiwidget2.draw(); kofiwidget2.draw();
</script> </script>

View File

@@ -6,18 +6,7 @@
<script> <script>
// load comments // load comments
var getTheme = localStorage && localStorage.getItem("theme"); let theme = "dark-blue";
getTheme =
getTheme == null
? window.matchMedia &&
window.matchMedia("(prefers-color-scheme: light)").matches
? "light"
: "dark"
: getTheme;
getTheme = getTheme == null ? "dark" : getTheme;
let theme = getTheme === "dark" ? "gruvbox-dark" : "github-light";
let script = document.createElement("script"); let script = document.createElement("script");
script.src = "https://utteranc.es/client.js"; script.src = "https://utteranc.es/client.js";
script.setAttribute("repo", '{{ print $username "/" $repository }}'); script.setAttribute("repo", '{{ print $username "/" $repository }}');

37
package-lock.json generated
View File

@@ -1101,10 +1101,32 @@
"postcss": "^8.4" "postcss": "^8.4"
} }
}, },
"node_modules/@csstools/selector-resolve-nested": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@csstools/selector-resolve-nested/-/selector-resolve-nested-1.1.0.tgz",
"integrity": "sha512-uWvSaeRcHyeNenKg8tp17EVDRkpflmdyvbE0DHo6D/GdBb6PDnCYYU6gRpXhtICMGMcahQmj2zGxwFM/WC8hCg==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"engines": {
"node": "^14 || ^16 || >=18"
},
"peerDependencies": {
"postcss-selector-parser": "^6.0.13"
}
},
"node_modules/@csstools/selector-specificity": { "node_modules/@csstools/selector-specificity": {
"version": "3.0.1", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.1.tgz", "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.3.tgz",
"integrity": "sha512-NPljRHkq4a14YzZ3YD406uaxh7s0g6eAq3L9aLOWywoqe8PkYamAvtsh7KNX6c++ihDrJ0RiU+/z7rGnhlZ5ww==", "integrity": "sha512-KEPNw4+WW5AVEIyzC80rTbWEUatTW2lXpN8+8ILC8PiPeWPjwUzrPZDIOZ2wwqDmeqOYTdSGyL3+vE5GC3FB3Q==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -4816,9 +4838,9 @@
} }
}, },
"node_modules/postcss-nesting": { "node_modules/postcss-nesting": {
"version": "12.0.2", "version": "12.1.1",
"resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.0.2.tgz", "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.1.1.tgz",
"integrity": "sha512-63PpJHSeNs93S3ZUIyi+7kKx4JqOIEJ6QYtG3x+0qA4J03+4n0iwsyA1GAHyWxsHYljQS4/4ZK1o2sMi70b5wQ==", "integrity": "sha512-qc74KvIAQNa5ujZKG1UV286dhaDW6basbUy2i9AzNU/T8C9hpvGu9NZzm1SfePe2yP7sPYgpA8d4sPVopn2Hhw==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -4831,7 +4853,8 @@
} }
], ],
"dependencies": { "dependencies": {
"@csstools/selector-specificity": "^3.0.1", "@csstools/selector-resolve-nested": "^1.1.0",
"@csstools/selector-specificity": "^3.0.3",
"postcss-selector-parser": "^6.0.13" "postcss-selector-parser": "^6.0.13"
}, },
"engines": { "engines": {

View File

@@ -6,72 +6,35 @@
{{ $backgroundColor = "bg0_h" }} {{ $backgroundColor = "bg0_h" }}
{{ end }} {{ end }}
:root[data-theme="light"] {
--bg: var(--{{ $backgroundColor }});
--bg0: #fbf1c7;
--bg0_h: #f9f5d7;
--bg0_s: #f2e5bc;
--bg1: #ebdbb2;
--bg2: #d5c4a1;
--bg3: #bdae93;
--bg4: #a89984;
--fg: var(--fg1);
--fg0: #282828;
--fg1: #3c3836;
--fg2: #504945;
--fg3: #665c54;
--fg4: #7c6f64;
--gray1: var(--fg4);
--gray2: #928374;
--red1: #cc241d;
--red2: #9d0006;
--green1: #98971a;
--green2: #797403;
--yellow1: #d79921;
--yellow2: #b57614;
--blue1: #458588;
--blue2: #076678;
--purple1: #b16286;
--purple2: #8f3f71;
--aqua1: #689d6a;
--aqua2: #427b58;
--orange1: #d65d0e;
--orange2: #af3a03;
& .light--hidden {
display: none;
}
}
:root[data-theme="dark"] { :root[data-theme="dark"] {
--bg: var(--{{ $backgroundColor }}); --bg: var(--{{ $backgroundColor }});
--bg0: #282828; --bg0: #1a1b26;
--bg0_h: #1d2021; --bg0_h: #1d2021;
--bg0_s: #32302f; --bg0_s: #32302f;
--bg1: #3c3836; --bg1: #181922;
--bg2: #504945; --bg2: #32344a;
--bg3: #665c54; --bg3: #665c54;
--bg4: #7c6f64; --bg4: #32344a;
--fg: var(--fg1); --fg: var(--fg1);
--fg0: #fbf1c7; --fg0: #ad8ee6;
--fg1: #ebdbb2; --fg1: #acb0d0;
--fg2: #d5c4a1; --fg2: #7da6ff;
--fg3: #bdae93; --fg3: #9ece6a;
--fg4: #a89984; --fg4: #32344a;
--gray1: var(--fg4); --gray1: var(--fg4);
--gray2: #928374; --gray2: #444b6a;
--red1: #cc241d; --red1: #f7768e;
--red2: #fb4934; --red2: #ff7a93;
--green1: #98971a; --green1: #9ece6a;
--green2: #b8bb26; --green2: #b9f27c;
--yellow1: #d79921; --yellow1: #e0af68;
--yellow2: #fabd2f; --yellow2: #ff9e64;
--blue1: #458588; --blue1: #7da6ff;
--blue2: #83a598; --blue2: #7aa2f7;
--purple1: #b16286; --purple1: #ad8ee6;
--purple2: #d3869b; --purple2: #bb9af7;
--aqua1: #689d6a; --aqua1: #449dab;
--aqua2: #8ec07c; --aqua2: #0db9d7;
--orange1: #d65d0e; --orange1: #d65d0e;
--orange2: #fe8019; --orange2: #fe8019;

View File

@@ -3,8 +3,8 @@
{{ $critical := sort (resources.Match "css/critical/*.css") "Name" | resources.Concat nil | resources.ExecuteAsTemplate nil . | resources.PostCSS }} {{ $critical := sort (resources.Match "css/critical/*.css") "Name" | resources.Concat nil | resources.ExecuteAsTemplate nil . | resources.PostCSS }}
{{ $nonCritical := sort (resources.Match "css/non-critical/*.css") "Name" | resources.Concat "css/non-critical.css" | resources.ExecuteAsTemplate "css/non-critical.css" . | resources.PostCSS }} {{ $nonCritical := sort (resources.Match "css/non-critical/*.css") "Name" | resources.Concat "css/non-critical.css" | resources.ExecuteAsTemplate "css/non-critical.css" . | resources.PostCSS }}
{{ $prismDark := resources.Get "prism-themes/prism-gruvbox-dark.css" }} {{ $prismDark := resources.Get "prism-themes/prism-synthwave84.css" }}
{{ $prismLight := resources.Get "prism-themes/prism-gruvbox-light.css" }} {{ $prismLight := resources.Get "prism-themes/prism-synthwave84.css" }}
{{ if hugo.IsProduction }} {{ if hugo.IsProduction }}
{{ $critical = $critical | resources.PostProcess }} {{ $critical = $critical | resources.PostProcess }}

View File

@@ -51,12 +51,4 @@
</ul> </ul>
</div> </div>
</nav> </nav>
<button class="theme__toggle light--hidden" aria-label="Toggle light mode">
{{ partial "icons/tabler-icon.html" "sun" }}
</button>
<button class="theme__toggle dark--hidden" aria-label="Toggle dark mode">
{{ partial "icons/tabler-icon.html" "moon" }}
</button>
</header> </header>

View File

@@ -1,12 +1,9 @@
{{ range $pageIndex, $page := .Pages }} {{ range $pageIndex, $page := .Pages }}
<article class="post"> <article class="post">
<div class="post-header"> <div class="post-header">
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
{{ partial "post-meta.html" (dict "page" . "pageIndex" $pageIndex) }} {{ partial "post-meta.html" (dict "page" . "pageIndex" $pageIndex) }}
</div> </div>
</article> </article>
{{ end }} {{ end }}

View File

@@ -1102,10 +1102,32 @@
"postcss": "^8.4" "postcss": "^8.4"
} }
}, },
"node_modules/@csstools/selector-resolve-nested": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@csstools/selector-resolve-nested/-/selector-resolve-nested-1.1.0.tgz",
"integrity": "sha512-uWvSaeRcHyeNenKg8tp17EVDRkpflmdyvbE0DHo6D/GdBb6PDnCYYU6gRpXhtICMGMcahQmj2zGxwFM/WC8hCg==",
"dev": true,
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/csstools"
},
{
"type": "opencollective",
"url": "https://opencollective.com/csstools"
}
],
"engines": {
"node": "^14 || ^16 || >=18"
},
"peerDependencies": {
"postcss-selector-parser": "^6.0.13"
}
},
"node_modules/@csstools/selector-specificity": { "node_modules/@csstools/selector-specificity": {
"version": "3.0.1", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.1.tgz", "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.3.tgz",
"integrity": "sha512-NPljRHkq4a14YzZ3YD406uaxh7s0g6eAq3L9aLOWywoqe8PkYamAvtsh7KNX6c++ihDrJ0RiU+/z7rGnhlZ5ww==", "integrity": "sha512-KEPNw4+WW5AVEIyzC80rTbWEUatTW2lXpN8+8ILC8PiPeWPjwUzrPZDIOZ2wwqDmeqOYTdSGyL3+vE5GC3FB3Q==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -5053,9 +5075,9 @@
} }
}, },
"node_modules/postcss-nesting": { "node_modules/postcss-nesting": {
"version": "12.0.2", "version": "12.1.1",
"resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.0.2.tgz", "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.1.1.tgz",
"integrity": "sha512-63PpJHSeNs93S3ZUIyi+7kKx4JqOIEJ6QYtG3x+0qA4J03+4n0iwsyA1GAHyWxsHYljQS4/4ZK1o2sMi70b5wQ==", "integrity": "sha512-qc74KvIAQNa5ujZKG1UV286dhaDW6basbUy2i9AzNU/T8C9hpvGu9NZzm1SfePe2yP7sPYgpA8d4sPVopn2Hhw==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -5068,7 +5090,8 @@
} }
], ],
"dependencies": { "dependencies": {
"@csstools/selector-specificity": "^3.0.1", "@csstools/selector-resolve-nested": "^1.1.0",
"@csstools/selector-specificity": "^3.0.3",
"postcss-selector-parser": "^6.0.13" "postcss-selector-parser": "^6.0.13"
}, },
"engines": { "engines": {
@@ -7398,10 +7421,17 @@
"dev": true, "dev": true,
"requires": {} "requires": {}
}, },
"@csstools/selector-resolve-nested": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@csstools/selector-resolve-nested/-/selector-resolve-nested-1.1.0.tgz",
"integrity": "sha512-uWvSaeRcHyeNenKg8tp17EVDRkpflmdyvbE0DHo6D/GdBb6PDnCYYU6gRpXhtICMGMcahQmj2zGxwFM/WC8hCg==",
"dev": true,
"requires": {}
},
"@csstools/selector-specificity": { "@csstools/selector-specificity": {
"version": "3.0.1", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.1.tgz", "resolved": "https://registry.npmjs.org/@csstools/selector-specificity/-/selector-specificity-3.0.3.tgz",
"integrity": "sha512-NPljRHkq4a14YzZ3YD406uaxh7s0g6eAq3L9aLOWywoqe8PkYamAvtsh7KNX6c++ihDrJ0RiU+/z7rGnhlZ5ww==", "integrity": "sha512-KEPNw4+WW5AVEIyzC80rTbWEUatTW2lXpN8+8ILC8PiPeWPjwUzrPZDIOZ2wwqDmeqOYTdSGyL3+vE5GC3FB3Q==",
"dev": true, "dev": true,
"requires": {} "requires": {}
}, },
@@ -9938,12 +9968,13 @@
} }
}, },
"postcss-nesting": { "postcss-nesting": {
"version": "12.0.2", "version": "12.1.1",
"resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.0.2.tgz", "resolved": "https://registry.npmjs.org/postcss-nesting/-/postcss-nesting-12.1.1.tgz",
"integrity": "sha512-63PpJHSeNs93S3ZUIyi+7kKx4JqOIEJ6QYtG3x+0qA4J03+4n0iwsyA1GAHyWxsHYljQS4/4ZK1o2sMi70b5wQ==", "integrity": "sha512-qc74KvIAQNa5ujZKG1UV286dhaDW6basbUy2i9AzNU/T8C9hpvGu9NZzm1SfePe2yP7sPYgpA8d4sPVopn2Hhw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@csstools/selector-specificity": "^3.0.1", "@csstools/selector-resolve-nested": "^1.1.0",
"@csstools/selector-specificity": "^3.0.3",
"postcss-selector-parser": "^6.0.13" "postcss-selector-parser": "^6.0.13"
} }
}, },