File tree Expand file tree Collapse file tree 10 files changed +36
-202
lines changed
Expand file tree Collapse file tree 10 files changed +36
-202
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,3 @@ npm-debug.log*
88.pre-commit-config.yaml
99# Local Netlify folder
1010.netlify
11-
12- @NixOS /branding
Original file line number Diff line number Diff line change @@ -16,13 +16,9 @@ const require = createRequire(import.meta.url);
1616function selectFavicon ( theme = 'default' ) {
1717 switch ( theme ) {
1818 case 'pride' :
19- return require . resolve (
20- `${ process . env . npm_config_local_prefix } /@NixOS/branding/artifacts/internal/nixos-logomark-rainbow-gradient-none.svg` ,
21- ) ;
19+ return require . resolve ( "@nixos/branding/artifacts/internal/nixos-logomark-rainbow-gradient-none.svg" ) ;
2220 default :
23- return require . resolve (
24- `${ process . env . npm_config_local_prefix } /@NixOS/branding/artifacts/internal/nixos-logomark-default-gradient-none.svg` ,
25- ) ;
21+ return require . resolve ( "@nixos/branding/artifacts/internal/nixos-logomark-default-gradient-none.svg" ) ;
2622 }
2723}
2824// https://astro.build/config
Original file line number Diff line number Diff line change 3535 "turndown" : " ^7.2.2"
3636 },
3737 "devDependencies" : {
38+ "@nixos/branding" : " ^0.1.0" ,
3839 "@iconify-json/mdi" : " ^1.2.3" ,
3940 "@iconify-json/simple-icons" : " ^1.2.59" ,
4041 "@iconify/tailwind" : " ^1.2.0"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { Image } from 'astro:assets';
88
99const footerMenu = await getEntry (' menus' , ' footer' );
1010
11- import logoWHite from ' @NixOS /branding/artifacts/internal/nixos-logomark-white-flat-none.svg' ;
11+ import logoWHite from ' @nixos /branding/artifacts/internal/nixos-logomark-white-flat-none.svg' ;
1212---
1313
1414<footer >
Original file line number Diff line number Diff line change 1- import logoDefault from '@NixOS /branding/artifacts/internal/nixos-logo-default-gradient-black-regular-horizontal-none.svg' ;
2- import logoRainbow from '@NixOS /branding/artifacts/internal/nixos-logo-rainbow-gradient-black-regular-horizontal-none.svg' ;
1+ import logoDefault from '@nixos /branding/artifacts/internal/nixos-logo-default-gradient-black-regular-horizontal-none.svg' ;
2+ import logoRainbow from '@nixos /branding/artifacts/internal/nixos-logo-rainbow-gradient-black-regular-horizontal-none.svg' ;
33import { THEME } from 'astro:env/client' ;
44
55export function getNixosLogoUrl ( ) {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import path from 'node:path';
55import parser from 'node-html-parser' ;
66import svgo from 'svgo' ;
77import defaultTheme from 'tailwindcss/defaultTheme' ;
8- import colors from '@NixOS /branding/colors/tailwind.js' ;
8+ import colors from '@nixos /branding/colors/tailwind.js' ;
99
1010const inlineSvgs = {
1111 hero : './src/assets/image/hero-bg.svg' ,
Original file line number Diff line number Diff line change 1414 released-nix-stable . url = "github:nixos/nix/latest-release" ;
1515 nix-pills . url = "github:NixOS/nix-pills" ;
1616 nix-pills . flake = false ;
17-
18- # NixOS branding
19- branding . url = "github:NixOS/branding" ;
2017 } ;
2118
2219 nixConfig = {
3532 self ,
3633 flake-parts ,
3734 git-hooks-nix ,
38- branding ,
3935 nixpkgs ,
4036 released-nixpkgs-unstable ,
4137 released-nixpkgs-stable ,
@@ -215,13 +211,6 @@ rec {
215211
216212 makeCacheWritable = true ;
217213
218- preConfigure = ''
219- mkdir -p @NixOS/branding
220- cp -R --no-preserve=mode,ownership ${
221- branding . hydraJobs . nixos-branding . ${ system } . npm-package
222- } /* ./@NixOS/branding
223- '' ;
224-
225214 buildPhase = ''
226215 export NIX_STABLE_VERSION="${ NIX_STABLE_VERSION } "
227216 export NIX_UNSTABLE_VERSION="${ NIX_UNSTABLE_VERSION } "
@@ -317,14 +306,6 @@ rec {
317306 export PATH_PILLS="${ pills } "
318307 export PATH_DEMOS="${ demos } "
319308
320- if [ -d @NixOS/branding ]; then
321- rm -rf @NixOS/branding
322- fi
323- mkdir -p @NixOS/branding
324- cp -R --no-preserve=mode,ownership ${
325- branding . hydraJobs . nixos-branding . ${ system } . npm-package
326- } /* ./@NixOS/branding
327-
328309 if [ ! -d node_modules ]; then
329310 ${ nodejs_current } /bin/npm install --workspaces --include-workspace-root
330311 fi
You can’t perform that action at this time.
0 commit comments