ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/
2
fork

Configure Feed

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

show unstable and stable in web version selector

+29 -6
+4 -1
.github/workflows/pages.yml
··· 2 2 name: "Pages" 3 3 on: 4 4 push: 5 - branches: 5 + branches: 6 6 - stable 7 7 - trunk 8 8 workflow_dispatch: ··· 27 27 with: 28 28 cachixToken: ${{ secrets.CACHIX_AUTH_TOKEN }} 29 29 - run: nix build .#docs 30 + if: github.ref == 'refs/heads/stable' 31 + - run: nix build .#docs-unstable 32 + if: github.ref != 'refs/heads/stable' 30 33 - name: Deploy to Cloudflare Pages 31 34 id: deployment 32 35 uses: cloudflare/wrangler-action@v3
+13 -2
doc/.vitepress/config.ts
··· 8 8 localIconLoader, 9 9 } from "vitepress-plugin-group-icons"; 10 10 11 + const MODE = (process.env.MODE ?? "unstable") as "unstable" | "stable"; 12 + 11 13 // https://vitepress.dev/reference/site-config 12 14 export default withMermaid( 13 15 defineConfig({ 14 - title: "wire", 16 + title: MODE === "stable" ? "wire" : "wire (unstable!)", 15 17 description: "a tool to deploy nixos systems", 16 18 themeConfig: { 17 19 search: { ··· 31 33 { text: "Guides", link: "/guides/installation" }, 32 34 { text: "Reference", link: "/reference/cli" }, 33 35 { 34 - text: pkg.version, 36 + text: MODE === "stable" ? pkg.version : "Unstable", 35 37 items: [ 38 + MODE === "unstable" 39 + ? { 40 + text: `View ${pkg.version}`, 41 + link: "https://wire.althaea.zone", 42 + } 43 + : { 44 + text: "View Unstable", 45 + link: "https://trunk.wire-docs.pages.dev", 46 + }, 36 47 { 37 48 text: "Changelog", 38 49 link: "https://github.com/mrshmllow/wire/blob/trunk/CHANGELOG.md",
+1 -1
doc/README.md
··· 12 12 ## Build 13 13 14 14 ```sh 15 - nix build .#docs 15 + nix build .#docs-unstable 16 16 17 17 # or 18 18
+9 -2
doc/default.nix
··· 6 6 ... 7 7 }: 8 8 { 9 - packages.docs = pkgs.callPackage ./package.nix { 10 - inherit (self'.packages) wire-small-dev wire-dignostics-md; 9 + packages = { 10 + docs = pkgs.callPackage ./package.nix { 11 + mode = "stable"; 12 + inherit (self'.packages) wire-small-dev wire-dignostics-md; 13 + }; 14 + 15 + docs-unstable = pkgs.callPackage ./package.nix { 16 + inherit (self'.packages) wire-small-dev wire-dignostics-md; 17 + }; 11 18 }; 12 19 }; 13 20 }
+2
doc/package.nix
··· 8 8 nodejs, 9 9 pnpm, 10 10 stdenv, 11 + mode ? "unstable", 11 12 ... 12 13 }: 13 14 let ··· 65 66 nix-instantiate --eval --strict ./snippets > /dev/null 66 67 ''; 67 68 DEBUG = "*"; 69 + MODE = mode; 68 70 })