Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ den.oeiuwq.com
configurations den dendritic nix aspect oriented
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

move versions to root of site

+40 -9
+1 -1
.github/workflows/gh-pages.yml
··· 29 29 unzip -u -d ~/versioned/docs ~/versioned/${id}.zip 30 30 done 31 31 - uses: actions/checkout@v6 32 - - run: cp ~/versioned/docs.json docs/src/components/versions.json 33 32 - uses: pnpm/action-setup@v4 34 33 with: 35 34 version: latest ··· 40 39 pnpm run build 41 40 popd 42 41 - run: cp -r ~/versioned/docs/* docs/dist/ 42 + - run: cp ~/versioned/docs.json docs/dist/versions.json 43 43 - name: Setup Pages 44 44 uses: actions/configure-pages@v5 45 45 - name: Upload artifact
+11 -7
docs/src/components/Versions.astro
··· 1 1 --- 2 - import versions from './versions.json'; 2 + const versions = await fetch('https://den.oeiuwq.com/versions.json').then(r => r.ok ? r.json() : []).catch(e => []); 3 3 --- 4 4 5 - <select id="versions"> 6 - <option value="/">main</option> 5 + { 6 + versions.length > 0 && <select id="versions"> 7 + <option value="/">main {versions.length}</option> 7 8 {versions.map(v => <option value={"/"+v.name.replace("docs-","")}>{v.name.replace("docs-","")}</option>)} 8 9 </select> 10 + } 9 11 10 12 <script> 11 13 const versions = document.getElementById("versions"); 12 - versions.addEventListener("change", _ => { document.location.pathname = versions.value; }); 13 - document.querySelectorAll("#versions options").map(opt => { 14 - if (document.location.pathname.startsWith(opt.value)) { opt.selected = "selected"; } 15 - }); 14 + if (versions != null) { 15 + versions.addEventListener("change", _ => { document.location.pathname = versions.value; }); 16 + document.querySelectorAll("#versions options").map(opt => { 17 + if (document.location.pathname.startsWith(opt.value)) { opt.selected = "selected"; } 18 + }); 19 + } 16 20 </script>
-1
docs/src/components/versions.json
··· 1 - [ ]
+28
templates/ci/modules/features/schema-base-modules.nix
··· 128 128 } 129 129 ); 130 130 131 + test-user-nested-submodule = denTest ( 132 + { den, lib, ... }: 133 + { 134 + den.schema.user = 135 + { 136 + options.meta = lib.mkOption { 137 + type = lib.types.submodule ({ ... }: { 138 + options = { 139 + email = lib.mkOption { type = lib.types.str; }; 140 + key = lib.mkOption { type = lib.types.str; }; 141 + }; 142 + }); 143 + }; 144 + }; 145 + 146 + den.hosts.x86_64-linux.igloo.users.tux = { }; 147 + 148 + expr = [ 149 + den.hosts.x86_64-linux.igloo.users.tux.main-group 150 + den.hosts.x86_64-linux.igloo.users.tux.description 151 + ]; 152 + expected = [ 153 + "tux" 154 + "tux@igloo" 155 + ]; 156 + } 157 + ); 158 + 131 159 }; 132 160 }