this repo has no description

Adjust how workflows are run #1

closed opened by altagos.dev targeting main from workflows
Labels
improvement
assignee
Participants 1
AT URI
at://did:plc:cjjekbyrscv7vvgouthz2d7g/sh.tangled.repo.pull/3m7krpzxnlt22
+111 -440
Diff #0
+2 -1
.gitignore
··· 1 1 .zig-cache/ 2 - zig-out/ 2 + zig-out/ 3 + .mise/
+25 -25
.tangled/workflows/build.yml
··· 1 1 when: 2 - - event: ["push", "pull_request"] 3 - branch: ["main"] 4 - - event: ["manual"] 2 + - event: ["push", "pull_request"] 3 + branch: ["main"] 5 4 6 5 engine: nixery 7 6 8 7 dependencies: 9 - nixpkgs: 10 - - curl 11 - - dart-sass 12 - - mise 13 - - zip 14 - 15 - environment: 16 - ZIG_VERSION: "0.15.1" 8 + nixpkgs: 9 + - curl 10 + - dart-sass 11 + - deno 12 + - mise 13 + - which 14 + - zip 17 15 18 16 steps: 19 - - name: Setup Zig 20 - command: | 21 - mise trust 22 - mise exec zig -- zig version 23 - - name: Download statichost cli 24 - command: | 25 - curl -so shcli https://www.statichost.eu/shcli 26 - chmod +x shcli 27 - - name: Build website 28 - command: | 29 - mise dist 30 - - name: Upload 31 - command: | 32 - ./shcli altagos-dev ./zig-out/website 17 + - name: Setup mise 18 + command: | 19 + mise trust 20 + mise link deno@latest $(dirname $(dirname $(readlink -f $(which deno)))) 21 + mise exec zig -- zig version 22 + mise exec deno -- deno --version 23 + - name: Download statichost cli 24 + command: | 25 + curl -so shcli https://www.statichost.eu/shcli 26 + chmod +x shcli 27 + - name: Build website 28 + command: | 29 + mise run dist 30 + - name: Upload 31 + command: | 32 + ./shcli altagos-dev ./zig-out/website
+29
.tangled/workflows/test-workflow.yml
··· 1 + when: 2 + - event: ["push", "pull_request"] 3 + branch: ["workflows"] 4 + 5 + engine: nixery 6 + 7 + dependencies: 8 + nixpkgs: 9 + - curl 10 + - dart-sass 11 + - deno 12 + - mise 13 + - which 14 + - zip 15 + 16 + steps: 17 + - name: Setup mise 18 + command: | 19 + mise trust 20 + mise link deno@latest $(dirname $(dirname $(readlink -f $(which deno)))) 21 + mise exec zig -- zig version 22 + mise exec deno -- deno --version 23 + - name: Download statichost cli 24 + command: | 25 + curl -so shcli https://www.statichost.eu/shcli 26 + chmod +x shcli 27 + - name: Build website 28 + command: | 29 + mise run dist
-143
build.zig.zon2json-lock
··· 1 - { 2 - "zine-0.11.1-ou6nINh6FgAIUbMMIzGj-8qnXl3zwfzBDfDpdxumM-Z_": { 3 - "name": "zine", 4 - "url": "git+https://github.com/Altagos/zine#d13cdde2af9e2e6c78274b4e5bf9ed2fa26e9126", 5 - "hash": "sha256-sefh5aCPPwg3jAJNq8jAkOVdBD2x8NorvWyq4qe+lFQ=", 6 - "rev": "d13cdde2af9e2e6c78274b4e5bf9ed2fa26e9126" 7 - }, 8 - "afl_kit-0.1.0-NdJ3cvMcAADE_EBpVTE9yrHAd4nk8I_wLbQxShYnIvWC": { 9 - "name": "afl_kit", 10 - "url": "git+https://github.com/Altagos/zig-afl-kit#c2d94a7bdad7b6df57119f403bf9586dda081181", 11 - "hash": "sha256-59JnQXdr2Zb/zRA9z6GppFd0oQNa1lCOn6IIzY/Ym5k=", 12 - "rev": "c2d94a7bdad7b6df57119f403bf9586dda081181" 13 - }, 14 - "AFLplusplus-4.21.0-aA1y4dZxAADpqYGALLosVdQlaX0yTfMPLbg_p-f-zeSg": { 15 - "name": "AFLplusplus", 16 - "url": "git+https://github.com/nihklas/AFLplusplus#12381a97cf5afccc87da4dba680fbef31519bc47", 17 - "hash": "sha256-hhapvObfBtyea3zlVVLPJa7Ce+mLDPduPRz8wIdlxG8=", 18 - "rev": "12381a97cf5afccc87da4dba680fbef31519bc47" 19 - }, 20 - "N-V-__8AAKE4uAAJZgEcPdaXnWqoj-IwYf3G2h9YSm-x92gg": { 21 - "name": "AFLplusplus", 22 - "url": "https://github.com/AFLplusplus/AFLplusplus/archive/v4.21c.tar.gz", 23 - "hash": "sha256-EffHfTfP9uf2WsfMVbq3kB4MYgjoRaOHZDlNBO1WezA=" 24 - }, 25 - "lsp_kit-0.1.0-bi_PL18tCgAMyrZ0tgn_0PXnGEvxGWeNkkRygfe9pX9u": { 26 - "name": "lsp_kit", 27 - "url": "git+https://github.com/zigtools/lsp-kit#4835b9d3d3cf732fe1830189d81f331c68fb3e77", 28 - "hash": "sha256-PqTlZcOow9vGLzI40zvqDI18OhJKzMg8RFLxB4x88/c=", 29 - "rev": "4835b9d3d3cf732fe1830189d81f331c68fb3e77" 30 - }, 31 - "scripty-0.1.0-LKK5O7v4AADWWXuFcTJky_5sY12tmw3kRi3k2wkpfxAX": { 32 - "name": "scripty", 33 - "url": "git+https://github.com/kristoff-it/scripty#50dbab8945440089384f26ec165d870c29555247", 34 - "hash": "sha256-r3L4iLpJUH93S0tH6d6w3pHcLzAaKZPSFBAgpnTMdeI=", 35 - "rev": "50dbab8945440089384f26ec165d870c29555247" 36 - }, 37 - "afl_kit-0.1.0-NdJ3cvscAACLEvjZTB017IAks_Uq5ux1qpA-klDe384Y": { 38 - "name": "afl_kit", 39 - "url": "git+https://github.com/kristoff-it/zig-afl-kit#8ef04d1db48650345dca68da1e1b8f2615125c40", 40 - "hash": "sha256-J0xbmsokjlhOav9KLlH2y4qiSgBit4nS+x6Q10L2OSA=", 41 - "rev": "8ef04d1db48650345dca68da1e1b8f2615125c40" 42 - }, 43 - "AFLplusplus-4.21.0-aA1y4UtxAABpnSIF7ARSYDMRyqNcI-2Rwa5UeSsuw70v": { 44 - "name": "AFLplusplus", 45 - "url": "git+https://github.com/allyourcodebase/AFLplusplus#a52f1376e2d49720c39e4abf4aa4944afbf82191", 46 - "hash": "sha256-AlkULC20/RTGMTPk2xWcdXCQlWn3sY3VrD0NRRoTZqY=", 47 - "rev": "a52f1376e2d49720c39e4abf4aa4944afbf82191" 48 - }, 49 - "tracy-0.0.0-4Xw-1pwwAABTfMgoDP1unCbZDZhJEfict7XCBGF6IdIn": { 50 - "name": "tracy", 51 - "url": "git+https://github.com/kristoff-it/tracy#67d2d89e351048c76fc6d161e0ac09d8a831dc60", 52 - "hash": "sha256-BKo1bhua/u+f5Z//ailur5aSHZWp3GiC0iwmVLrGZkE=", 53 - "rev": "67d2d89e351048c76fc6d161e0ac09d8a831dc60" 54 - }, 55 - "mime-3.0.0-zwmL--0gAAByELrj57sRm2EFBRzjKLFrMgHQcs7sFZev": { 56 - "name": "mime", 57 - "url": "git+https://github.com/kristoff-it/mime#a2ed0cba3b1463217168034ffed8c1604e72598d", 58 - "hash": "sha256-j/O/6pJg0hj3ytAMVBQwGjCRtaR+GYy8X7oqfIpuRi8=", 59 - "rev": "a2ed0cba3b1463217168034ffed8c1604e72598d" 60 - }, 61 - "wuffs-0.4.0-alpha.9+3837.20240914-3CHJgcMFAACyPvxsC7b48pJv9dPkPa4pSrB2VFbCXTfK": { 62 - "name": "wuffs", 63 - "url": "git+https://github.com/allyourcodebase/wuffs#5822dc06c75b30d53082debf68c90193cb2b2608", 64 - "hash": "sha256-Ung7shyFg+/I5Po393tWMp6Jb0Ia14pRJOUF36fr71c=", 65 - "rev": "5822dc06c75b30d53082debf68c90193cb2b2608" 66 - }, 67 - "N-V-__8AANEmUgA6aZZZKbfNMv6DSs5In7CDFU6nInu_Y6aY": { 68 - "name": "wuffs", 69 - "url": "https://github.com/google/wuffs-mirror-release-c/archive/90e4d81a6a8b7b601e8e568da32a105d7f7705e5.tar.gz", 70 - "hash": "sha256-3b68j7dAXnqRd+/fvfDfGK0CtgcxHZ5gSVnHwPYjavQ=" 71 - }, 72 - "N-V-__8AALShqgXkvqYU6f__FrA22SMWmi2TXCJjNTO1m8XJ": { 73 - "name": "frameworks", 74 - "url": "git+https://github.com/hexops/xcode-frameworks.git#8a1cfb373587ea4c9bb1468b7c986462d8d4e10e", 75 - "hash": "sha256-b1Ay3GfBHwubnrGi4lflPiaqGfzWtABEbEiE8+ZTL90=", 76 - "rev": "8a1cfb373587ea4c9bb1468b7c986462d8d4e10e" 77 - }, 78 - "superhtml-0.4.0-Y7MdPJTWDQBJJoaCLlBYLGrjhAnmWAtVhVGelveq3O-s": { 79 - "name": "superhtml", 80 - "url": "git+https://github.com/kristoff-it/superhtml#8cb16babb0c66b6512d6aeb4cbc37ed90641d980", 81 - "hash": "sha256-lLZqyqVEUCn9z++9lPnrK8R2uDvht5v+5Y8KOZDgPs0=", 82 - "rev": "8cb16babb0c66b6512d6aeb4cbc37ed90641d980" 83 - }, 84 - "known_folders-0.0.0-Fy-PJtTTAADUOhGKM0sxzG4eMkNQxRvx9e5dfHVyaeA3": { 85 - "name": "known_folders", 86 - "url": "git+https://github.com/ziglibs/known-folders#ab5cf5feb936fa3b72c95d3ad0c0c67791937ba1", 87 - "hash": "sha256-Pdn/nUclhHBB1COTzNNR5ysE13h6uLOFJjuFrasv/2I=", 88 - "rev": "ab5cf5feb936fa3b72c95d3ad0c0c67791937ba1" 89 - }, 90 - "lsp_kit-0.1.0-bi_PL5YyCgA2QFEza6llr2Uy08QUQsWBu2wKvtr8tbLx": { 91 - "name": "lsp_kit", 92 - "url": "git+https://github.com/kristoff-it/lsp-kit?ref=zig-0.15#01c14e592d25dc57dfebba27b8bd2b4aa91c1140", 93 - "hash": "sha256-HZ529k2WepqJEZ60y7bQ36qCFF5HjtiqQCpi66Rr0+8=", 94 - "rev": "01c14e592d25dc57dfebba27b8bd2b4aa91c1140" 95 - }, 96 - "zeit-0.6.0-5I6bk0J9AgCVa0nnyL0lNY9Xa9F68hHq-ZarhuXNV-Jb": { 97 - "name": "zeit", 98 - "url": "git+https://github.com/sam701/zeit?ref=zig-0.15#46583c4695bade6841a558c0ce5648426b556214", 99 - "hash": "sha256-IvXaqAzaWi3E1XBqQltCBFoRmXehZkVol3/RZwOsAKg=", 100 - "rev": "46583c4695bade6841a558c0ce5648426b556214" 101 - }, 102 - "flow_syntax-0.1.0-X8jOoXwNAQCYQg3lzNZrx0aNx9xGtWStsgcxv8IZ1olI": { 103 - "name": "flow_syntax", 104 - "url": "git+https://github.com/kristoff-it/flow-syntax?ref=zig-0.15#42b600c9e111b7836f2aed9e229637c7d8e63a25", 105 - "hash": "sha256-bL98gB/lwrEQebMHVhjSN+Ct1REqSIvnMGlsZ2XjKOM=", 106 - "rev": "42b600c9e111b7836f2aed9e229637c7d8e63a25" 107 - }, 108 - "tree_sitter-0.22.4-150-g7e3f5726-z0LhyN88UicDHlr22vQnOZ3DW9NWN1gOhDwLuCRXvrh2": { 109 - "name": "tree_sitter", 110 - "url": "https://github.com/neurocyte/tree-sitter/releases/download/master-f1f032d24f621e2ee4deab1c424d3bf9fb809f6e/source.tar.gz", 111 - "hash": "sha256-w0164ZvB2jHRRlumkwGsROZHInHj5z+Ny4e/x0tPrtU=" 112 - }, 113 - "cbor-1.0.0-RcQE_CUwAQChkeU-LO-eTSbLAdRox-wuxUGmi2nDAWri": { 114 - "name": "cbor", 115 - "url": "git+https://github.com/kristoff-it/cbor?ref=zig-0.15#66c3784a6b1cf56485d462502167ec2ce402e8fb", 116 - "hash": "sha256-EdT3Kg2opvjrD6zBUEfuJGAY7495y60FQV6mHQC8qn8=", 117 - "rev": "66c3784a6b1cf56485d462502167ec2ce402e8fb" 118 - }, 119 - "ziggy-0.1.0-kTg8v5pABgDztlefWHceH-Sh8tVveguFC61QkmLkIRaA": { 120 - "name": "ziggy", 121 - "url": "git+https://github.com/kristoff-it/ziggy#4353b20ef2ac750e35c6d68e4eb2a07c2d7cf901", 122 - "hash": "sha256-7XZNKUrOkpPMge6nDSiEBlUAf7dZLDcVcJ7fHT8fPh4=", 123 - "rev": "4353b20ef2ac750e35c6d68e4eb2a07c2d7cf901" 124 - }, 125 - "known_folders-0.0.0-Fy-PJtLDAADGDOwYwMkVydMSTp_aN-nfjCZw6qPQ2ECL": { 126 - "name": "known_folders", 127 - "url": "git+https://github.com/ziglibs/known-folders#aa24df42183ad415d10bc0a33e6238c437fc0f59", 128 - "hash": "sha256-YiJ2lfG1xsGFMO6flk/BMhCqJ3kB3MnOX5fnfDEcmMY=", 129 - "rev": "aa24df42183ad415d10bc0a33e6238c437fc0f59" 130 - }, 131 - "supermd-0.1.0-3Mco3FuSWADFrR3JOpE7xgETAd8kD8bikv_PsXE7qk18": { 132 - "name": "supermd", 133 - "url": "git+https://github.com/kristoff-it/supermd#e74d65e3cdf3a1c89e3f627b700b901896ee04f6", 134 - "hash": "sha256-D7/QNrogvvsXDzYN+/KWoWUBe0Vs/TAADtuEm+Dr35E=", 135 - "rev": "e74d65e3cdf3a1c89e3f627b700b901896ee04f6" 136 - }, 137 - "cmark_gfm-0.1.0-uQgTK6WZFwCG9y7_Z0IkCINtmMTwvEZTyVh_6nsaMVPq": { 138 - "name": "gfm", 139 - "url": "git+https://github.com/kristoff-it/cmark-gfm#b96c27a5152b9124d657dee7fb1186d0a13c1fe4", 140 - "hash": "sha256-NlTZ5if3h1zZjJs0JTMB8SsvTQM+4OSsScvFUbfq9nQ=", 141 - "rev": "b96c27a5152b9124d657dee7fb1186d0a13c1fe4" 142 - } 143 - }
+2
content/notes/markdown-overview/index.smd
··· 426 426 } 427 427 ``` 428 428 429 + [Included via `[...]($code.asset('foo.zig').language('zig'))`]($code.asset('foo.zig').language('zig')) 430 + 429 431 Obsidian uses Prism for syntax highlighting. For more information, refer to [Supported languages](https://prismjs.com/#supported-languages). 430 432 431 433 Note
-95
flake.lock
··· 1 - { 2 - "nodes": { 3 - "flake-utils": { 4 - "inputs": { 5 - "systems": "systems" 6 - }, 7 - "locked": { 8 - "lastModified": 1731533236, 9 - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 10 - "owner": "numtide", 11 - "repo": "flake-utils", 12 - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 13 - "type": "github" 14 - }, 15 - "original": { 16 - "owner": "numtide", 17 - "repo": "flake-utils", 18 - "type": "github" 19 - } 20 - }, 21 - "nixpkgs": { 22 - "locked": { 23 - "lastModified": 1757487488, 24 - "narHash": "sha256-zwE/e7CuPJUWKdvvTCB7iunV4E/+G0lKfv4kk/5Izdg=", 25 - "owner": "NixOS", 26 - "repo": "nixpkgs", 27 - "rev": "ab0f3607a6c7486ea22229b92ed2d355f1482ee0", 28 - "type": "github" 29 - }, 30 - "original": { 31 - "owner": "NixOS", 32 - "ref": "nixos-unstable", 33 - "repo": "nixpkgs", 34 - "type": "github" 35 - } 36 - }, 37 - "nixpkgs_2": { 38 - "locked": { 39 - "lastModified": 1757726359, 40 - "narHash": "sha256-tIlaiIPGu4IKD2NGZDeJ/Cli0AdUKcx6KbbImC2oVXc=", 41 - "owner": "nixos", 42 - "repo": "nixpkgs", 43 - "rev": "d5bde89ff2c6e2ee05b13a742c5cfeb874e9dad6", 44 - "type": "github" 45 - }, 46 - "original": { 47 - "owner": "nixos", 48 - "repo": "nixpkgs", 49 - "type": "github" 50 - } 51 - }, 52 - "root": { 53 - "inputs": { 54 - "nixpkgs": "nixpkgs", 55 - "zig2nix": "zig2nix" 56 - } 57 - }, 58 - "systems": { 59 - "locked": { 60 - "lastModified": 1681028828, 61 - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 62 - "owner": "nix-systems", 63 - "repo": "default", 64 - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 65 - "type": "github" 66 - }, 67 - "original": { 68 - "owner": "nix-systems", 69 - "repo": "default", 70 - "type": "github" 71 - } 72 - }, 73 - "zig2nix": { 74 - "inputs": { 75 - "flake-utils": "flake-utils", 76 - "nixpkgs": "nixpkgs_2" 77 - }, 78 - "locked": { 79 - "lastModified": 1757726783, 80 - "narHash": "sha256-CttFK7toq1z4bQl9tftLiyc5jKzWJy+a/4UGp+qqlSs=", 81 - "owner": "Cloudef", 82 - "repo": "zig2nix", 83 - "rev": "f9632691643d956cfda2c777d48a2ec89c7d0721", 84 - "type": "github" 85 - }, 86 - "original": { 87 - "owner": "Cloudef", 88 - "repo": "zig2nix", 89 - "type": "github" 90 - } 91 - } 92 - }, 93 - "root": "root", 94 - "version": 7 95 - }
-84
flake.nix
··· 1 - { 2 - description = "Flake for building my website"; 3 - 4 - inputs = { 5 - nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 6 - zig2nix.url = "github:Cloudef/zig2nix"; 7 - }; 8 - 9 - outputs = { 10 - nixpkgs, 11 - zig2nix, 12 - ... 13 - }: let 14 - flake-utils = zig2nix.inputs.flake-utils; 15 - in (flake-utils.lib.eachDefaultSystem (system: let 16 - # Zig flake helper 17 - # Check the flake.nix in zig2nix project for more options: 18 - # <https://github.com/Cloudef/zig2nix/blob/master/flake.nix> 19 - env = zig2nix.outputs.zig-env.${system} {zig = zig2nix.outputs.packages.${system}.zig-latest;}; 20 - pkgs = nixpkgs.legacyPackages.${system}; 21 - in 22 - with builtins; 23 - with env.pkgs.lib; rec { 24 - # Produces clean binaries meant to be ship'd outside of nix 25 - # nix build .#foreign 26 - packages.foreign = env.package { 27 - src = cleanSource ./.; 28 - 29 - # Packages required for compiling 30 - nativeBuildInputs = with pkgs; [dart-sass]; 31 - 32 - # Packages required for linking 33 - buildInputs = with env.pkgs; []; 34 - 35 - # Smaller binaries and avoids shipping glibc. 36 - zigPreferMusl = true; 37 - }; 38 - 39 - # nix build . 40 - packages.default = packages.foreign.override (attrs: { 41 - # Prefer nix friendly settings. 42 - zigPreferMusl = false; 43 - 44 - # Executables required for runtime 45 - # These packages will be added to the PATH 46 - zigWrapperBins = with env.pkgs; []; 47 - 48 - # Libraries required for runtime 49 - # These packages will be added to the LD_LIBRARY_PATH 50 - zigWrapperLibs = attrs.buildInputs or []; 51 - }); 52 - 53 - # For bundling with nix bundle for running outside of nix 54 - # example: https://github.com/ralismark/nix-appimage 55 - apps.bundle = { 56 - type = "app"; 57 - program = "${packages.foreign}/bin/master"; 58 - }; 59 - 60 - # nix run . 61 - apps.default = env.app [] "zig build serve -- \"$@\""; 62 - 63 - # nix run .#build 64 - apps.build = env.app [] "zig build \"$@\""; 65 - 66 - # nix run .#stylesheet 67 - apps.stylesheet = env.app [] "zig build stylesheet -- \"$@\""; 68 - 69 - # nix run .#zig2nix 70 - apps.zig2nix = env.app [] "zig2nix \"$@\""; 71 - 72 - # nix develop 73 - devShells.default = env.mkShell { 74 - # Packages required for compiling, linking and running 75 - # Libraries added here will be automatically added to the LD_LIBRARY_PATH and PKG_CONFIG_PATH 76 - nativeBuildInputs = 77 - [] 78 - ++ packages.default.nativeBuildInputs 79 - ++ packages.default.buildInputs 80 - ++ packages.default.zigWrapperBins 81 - ++ packages.default.zigWrapperLibs; 82 - }; 83 - })); 84 - }
+6 -4
layouts/templates/root.shtml
··· 39 39 <a href="https://github.com/altagos" rel="me">GitHub</a> 40 40 </li> 41 41 <li> 42 - <a href="https://sr.ht/~altagos" rel="me">Sourcehut</a> 42 + <a href="https://tangled.org/altagos.dev/" rel="me">Tangled</a> 43 43 </li> 44 44 <li> 45 45 <a href="https://bsky.app/profile/altagos.dev" rel="me">Bluesky</a> ··· 47 47 </ul> 48 48 </div> 49 49 </div> 50 - <div id="copyright"> 51 - <div :if="$build.git?()"><p>Version: 50 + <div class="info"> 51 + <div :if="$build.git?()" class="git"><p>Version: 52 52 <span :text="$if.commit_hash"></span></p></div> 53 - <p>&copy; 2025 Jakob Speer</p> 53 + <div class="copyright"> 54 + <p>&copy; 2025 Jakob Speer</p> 55 + </div> 54 56 </div> 55 57 </footer> 56 58 </content>
+6 -3
mise.toml
··· 1 1 [tools] 2 - bun = "latest" 2 + deno = "latest" 3 3 watchexec = "latest" 4 4 zig = "0.15.2" 5 5 6 6 [tasks.watch] 7 - run = "watchexec -q -r -e scss,zig,shtml,smd 'zig build -Ddrafts; and bunx -y pagefind --site zig-out/website --serve'" 7 + run = "watchexec -q -r -e scss,zig 'zig build serve -- --drafts'" 8 + 9 + [tasks.watch-index] 10 + run = "watchexec -q -r -e scss,zig,shtml,smd 'zig build -Ddrafts; and deno run --allow-env --allow-run npm:pagefind --site zig-out/website'" 8 11 9 12 [tasks.dev] 10 13 run = "zig build serve -- --drafts" 11 14 12 15 [tasks.create-index] 13 - run = "bunx -y pagefind --site zig-out/website" 16 + run = "deno run --allow-env --allow-run npm:pagefind --site zig-out/website" 14 17 15 18 [tasks.dist] 16 19 run = "zig build --summary all --verbose"
+12 -9
style/content/blocks.scss
··· 19 19 margin-right: 16px; 20 20 } 21 21 22 - summary::marker { 23 - content: "- "; 24 - // font-size-adjust: 0.6; 25 - } 22 + // summary::marker { 23 + // content: "- "; 24 + // // font-size-adjust: 0.6; 25 + // } 26 26 27 - &:open { 28 - summary::marker { 29 - content: "~ "; 30 - } 31 - } 27 + // &:open { 28 + // summary::marker { 29 + // content: "~ "; 30 + // } 31 + // } 32 32 33 33 h1, 34 34 h2, ··· 36 36 summary { 37 37 margin: 0; 38 38 padding: 0 16px; 39 + 40 + font-size: 1em; 41 + line-height: 2rem; 39 42 40 43 background: color-mix(in srgb, var(--block-highlight) 30%, transparent); 41 44 color: var(--block-header);
+4 -4
style/content/code.scss
··· 65 65 code > .variable_builtin { 66 66 // color: var(--syn-special2); 67 67 // font-style: italic; 68 - @include style($color: --syn-special2, $font-style: italic); 68 + @include style($color: --syn-special2, $font-style: bold); 69 69 } 70 70 71 71 code > .comment { ··· 234 234 code > .keyword_modifier, 235 235 code > .keyword_function, 236 236 code > .keyword_type { 237 - @include style($color: --syn-keyword, $font-style: italic); 237 + @include style($color: --syn-keyword); 238 238 } 239 239 240 240 code > .keyword_return { 241 - @include style($color: --syn-special3, $font-style: italic); 241 + @include style($color: --syn-special3); 242 242 } 243 243 244 244 code > .keyword_conditional { 245 - @include style($color: --syn-keyword, $font-style: italic); 245 + @include style($color: --syn-keyword); 246 246 } 247 247 248 248 code > .keyword_exception {
+12 -2
style/content/figures.scss
··· 16 16 } 17 17 18 18 img { 19 - resize: "horizontal"; 20 - object-fit: scale-down; 19 + object-fit: contain; 20 + height: 100%; 21 + width: auto; 21 22 } 22 23 23 24 svg { ··· 27 28 color: var(--text-color); 28 29 } 29 30 } 31 + 32 + figure:has(pre > code) { 33 + padding: 0; 34 + 35 + pre { 36 + text-align: left; 37 + margin: 0; 38 + } 39 + }
+13 -3
style/content/footer.scss
··· 37 37 } 38 38 } 39 39 40 - #copyright { 41 - font-size: 0.8rem; 42 - align-self: end; 40 + .info { 41 + display: flex; 42 + flex-direction: column; 43 + justify-content: end; 44 + 45 + .copyright, 46 + .git { 47 + font-size: 0.8rem; 48 + } 49 + 50 + .git { 51 + color: var(--bg-p2); 52 + } 43 53 } 44 54 } 45 55
-3
zig/.gitignore
··· 1 - * 2 - !download.sh 3 - !.gitignore
-64
zig/download.sh
··· 1 - #!/usr/bin/env bash 2 - set -e 3 - 4 - [ -z "$ZIG_VERSION" ] && ZIG_VERSION="0.15.1" 5 - [ -z "$ZIG_PUBLIC_KEY" ] && ZIG_PUBLIC_KEY="RWSGOq2NVecA2UPNdBUZykf1CCb147pkmdtYxgb3Ti+JO/wCYvhbAb/U" 6 - 7 - command -v jq >/dev/null || { echo "jq required"; exit 1; } 8 - command -v minisign >/dev/null || { echo "minisign required"; exit 1; } 9 - 10 - # Clean up previous installation 11 - if [ -L "zig/zig" ]; then 12 - prev_dir=$(readlink zig/zig | cut -d '/' -f 2) 13 - [ -d "zig/$prev_dir" ] && rm -rf "zig/$prev_dir" 14 - rm -f "zig/zig" 15 - fi 16 - 17 - case "$(uname -s)" in 18 - Linux) 19 - case "$(uname -m)" in 20 - x86_64) p="x86_64-linux" ;; 21 - aarch64) p="aarch64-linux" ;; 22 - armv7l) p="arm-linux" ;; 23 - i686) p="x86-linux" ;; 24 - *) echo "Arch unsupported"; exit 1 ;; 25 - esac 26 - ;; 27 - Darwin) 28 - case "$(uname -m)" in 29 - x86_64) p="x86_64-macos" ;; 30 - arm64) p="aarch64-macos" ;; 31 - *) echo "Arch unsupported"; exit 1 ;; 32 - esac 33 - ;; 34 - *) echo "OS unsupported"; exit 1 ;; 35 - esac 36 - 37 - u=$(curl -s https://ziglang.org/download/index.json | jq -r ".\"$ZIG_VERSION\".\"$p\".tarball") 38 - [ -z "$u" ] && { echo "Version not found"; exit 1; } 39 - 40 - f=$(basename "$u") 41 - curl -sfL "$u" -o "zig/$f" || { echo "Download failed"; exit 1; } 42 - curl -sfL "$u.minisig" -o "zig/$f.minisig" || { echo "Sig download failed"; exit 1; } 43 - minisign -Vm "zig/$f" -P "$ZIG_PUBLIC_KEY" || { echo "Sig verification failed"; exit 1; } 44 - 45 - # Extract directly to zig folder 46 - if [[ "$f" == *.zip ]]; then 47 - unzip -q "zig/$f" -d zig 48 - else 49 - tar -xJf "zig/$f" --no-same-owner -C zig 50 - fi 51 - 52 - # Derive directory name 53 - d=$(echo "$f" | sed -E 's/\.(tar\.xz|tar\.gz|zip|tgz|tar)$//') 54 - 55 - # Verify binary exists 56 - [ ! -f "zig/$d/zig" ] && { echo "Binary not found"; exit 1; } 57 - 58 - # Create symlink with absolute paths 59 - ln -sf "$(pwd)/zig/$d/zig" "$(pwd)/zig/zig" 60 - 61 - # Cleanup 62 - rm -f "zig/$f" "zig/$f.minisig" 63 - 64 - echo "Zig installed successfully"

History

2 rounds 0 comments
sign up or login to add to the discussion
37 commits
expand
get bun version
get bun version
small changes + fixing styling issues
fix tabs + set bun to specific version
run mise doctor
bootstrap mise
install toybox
fix permission to bootstrap mise
print .mise folder content
print .mise folder content
install mise via nix
mise trust
enable trace
run pagefind via deno
run exec command instead of install
use system installed deno
install which
unify step
don't deploy when testing workflows
adjust when to run workflows
1/1 timeout
expand
expand 0 comments
closed without merging
altagos.dev submitted #0
36 commits
expand
get bun version
get bun version
small changes + fixing styling issues
fix tabs + set bun to specific version
run mise doctor
bootstrap mise
install toybox
fix permission to bootstrap mise
print .mise folder content
print .mise folder content
install mise via nix
mise trust
enable trace
run pagefind via deno
run exec command instead of install
use system installed deno
install which
unify step
don't deploy when testing workflows
expand 0 comments