File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 77 nodejs ,
88 cacert ,
99 quickshell-types ? null ,
10+ masterBranch ? false ,
1011} : stdenv . mkDerivation ( final : let
1112 nodeModules = stdenv . mkDerivation {
1213 pname = "${ final . pname } -node_modules" ;
6970 '' ;
7071
7172 PRODUCTION = true ;
73+ MASTER_BRANCH = masterBranch ;
7274 SECRET_MODULES_PATH = if quickshell-types == null then "" else quickshell-types ;
7375
7476 buildPhase = ''
Original file line number Diff line number Diff line change @@ -57,8 +57,18 @@ const types = {
5757 })
5858 ),
5959};
60+
61+ const masterBranch = import .meta .env .MASTER_BRANCH ;
6062---
6163<nav class =" navtree" >
64+ { masterBranch && <Link
65+ title = " Docs Version: Master Branch (Switch)"
66+ link =`https://quickshell.outfoxxed.me${Astro.url.pathname}`
67+ />}
68+ { ! masterBranch && <Link
69+ title = " Docs Version: Release 0.1.0 (Switch)"
70+ link =`https://quickshell-master.outfoxxed.me${Astro.url.pathname}`
71+ />}
6272 <Link
6373 title =" About Quickshell"
6474 link =" /docs/about"
You can’t perform that action at this time.
0 commit comments