add logomark

This commit is contained in:
tnichols217 2025-02-26 21:59:33 -05:00
parent 8fac68c128
commit 4c18f0c9fc
12 changed files with 191 additions and 13 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ out
_book* _book*
*.html *.html
site_libs site_libs
branding

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

View File

@ -1,13 +1,14 @@
{ stdenv, buildenv, ... }: { stdenv, buildenv, src, ... }:
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "BetaNuLBL"; pname = "BetaNuLBL";
version = "0.0.1"; version = "0.0.1";
src = ./src; inherit src;
nativeBuildInputs = buildenv; nativeBuildInputs = buildenv;
buildPhase = '' buildPhase = ''
cp branding/_brand-color.yml ./_brand.yml
export HOME=$(pwd) export HOME=$(pwd)
quarto render --no-cache quarto render --no-cache
''; '';

0
build.sh Normal file → Executable file
View File

0
deploy.nix Normal file → Executable file
View File

151
flake.lock generated
View File

@ -1,5 +1,26 @@
{ {
"nodes": { "nodes": {
"branding": {
"inputs": {
"flake-utils": "flake-utils",
"gitignore": "gitignore",
"nixpkgs": "nixpkgs_2",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1740617758,
"narHash": "sha256-PdomnJeMfW7xaoPdp6PLk5zfBtssmRgZxrhOq1e7Xec=",
"owner": "beta-nu-theta-chi",
"repo": "branding",
"rev": "05dfbc1a45a5b8dcf3fe5bebee1d52d98656c0c7",
"type": "github"
},
"original": {
"owner": "beta-nu-theta-chi",
"repo": "branding",
"type": "github"
}
},
"flake-utils": { "flake-utils": {
"inputs": { "inputs": {
"systems": "systems" "systems": "systems"
@ -18,6 +39,24 @@
"type": "github" "type": "github"
} }
}, },
"flake-utils_2": {
"inputs": {
"systems": "systems_2"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"gitignore": { "gitignore": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
@ -36,6 +75,24 @@
"type": "github" "type": "github"
} }
}, },
"gitignore_2": {
"inputs": {
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1709087332,
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
"owner": "hercules-ci",
"repo": "gitignore.nix",
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "gitignore.nix",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1666603677, "lastModified": 1666603677,
@ -52,11 +109,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1739446958, "lastModified": 1739580444,
"narHash": "sha256-+/bYK3DbPxMIvSL4zArkMX0LQvS7rzBKXnDXLfKyRVc=", "narHash": "sha256-+/bSz4EAVbqz8/HsIGLroF8aNaO8bLRL7WfACN+24g4=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "2ff53fe64443980e139eaa286017f53f88336dd0", "rev": "8bb37161a0488b89830168b81c48aed11569cb93",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -82,12 +139,59 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_4": {
"locked": {
"lastModified": 1666603677,
"narHash": "sha256-apAEIj+z1iwMaMJ4tB21r/VTetfGDLDzuhXRHJknIAU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "074da18a72269cc5a6cf444dce42daea5649b2fe",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_5": {
"locked": {
"lastModified": 1739446958,
"narHash": "sha256-+/bYK3DbPxMIvSL4zArkMX0LQvS7rzBKXnDXLfKyRVc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "2ff53fe64443980e139eaa286017f53f88336dd0",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_6": {
"locked": {
"lastModified": 1735554305,
"narHash": "sha256-zExSA1i/b+1NMRhGGLtNfFGXgLtgo+dcuzHzaWA6w3Q=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "0e82ab234249d8eee3e8c91437802b32c74bb3fd",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"flake-utils": "flake-utils", "branding": "branding",
"gitignore": "gitignore", "flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs_2", "gitignore": "gitignore_2",
"treefmt-nix": "treefmt-nix" "nixpkgs": "nixpkgs_5",
"treefmt-nix": "treefmt-nix_2"
} }
}, },
"systems": { "systems": {
@ -105,6 +209,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"treefmt-nix": { "treefmt-nix": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
@ -122,6 +241,24 @@
"repo": "treefmt-nix", "repo": "treefmt-nix",
"type": "github" "type": "github"
} }
},
"treefmt-nix_2": {
"inputs": {
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1738953846,
"narHash": "sha256-yrK3Hjcr8F7qS/j2F+r7C7o010eVWWlm4T1PrbKBOxQ=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "4f09b473c936d41582dd744e19f34ec27592c5fd",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -4,6 +4,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
treefmt-nix.url = "github:numtide/treefmt-nix"; treefmt-nix.url = "github:numtide/treefmt-nix";
gitignore.url = "github:hercules-ci/gitignore.nix"; gitignore.url = "github:hercules-ci/gitignore.nix";
branding.url = "github:beta-nu-theta-chi/branding";
}; };
outputs = {...} @ inputs: outputs = {...} @ inputs:
inputs.flake-utils.lib.eachDefaultSystem ( inputs.flake-utils.lib.eachDefaultSystem (
@ -28,9 +29,11 @@
(rWrapper.override { (rWrapper.override {
packages = rpkgs; packages = rpkgs;
}) })
librsvg
texliveFull texliveFull
texworks texworks
texstudio texstudio
ghostscript
]; ];
in { in {
devShells = rec { devShells = rec {
@ -58,7 +61,8 @@
apps = rec { apps = rec {
}; };
packages = rec { packages = rec {
book = pkgs.callPackage ./build.nix { buildenv = p; }; branding = pkgs.callPackage ./source.nix { branding = inputs.branding.packages.${system}.branding-white; };
book = pkgs.callPackage ./build.nix { buildenv = p; src = branding; };
deploy = pkgs.callPackage ./deploy.nix { src = book; }; deploy = pkgs.callPackage ./deploy.nix { src = book; };
default = book; default = book;
}; };

13
source.nix Executable file
View File

@ -0,0 +1,13 @@
{ stdenv, branding, ... }:
stdenv.mkDerivation {
pname = "BetaNuLBL-source";
version = "0.0.1";
src = ./src;
installPhase = ''
mkdir -p $out/branding
cp -r * .* $out
cp -r ${branding}/* $out/branding
'';
}

2
src/.gitignore vendored Normal file → Executable file
View File

@ -1 +1,3 @@
.quarto .quarto
/.quarto/

View File

@ -35,9 +35,12 @@ nocite: |
@* @*
format: format:
html: html:
theme: cosmo theme: darkly
pdf: pdf:
documentclass: scrreprt documentclass: scrreprt
theme: template-partials:
dark: darkly - before-body.tex
keep-tex: true
# use-rsvg-convert: false

17
src/before-body.tex Normal file
View File

@ -0,0 +1,17 @@
\centering
\includegraphics[width=2in,clip=false]{branding/logomark-uni-color.png}
$if(has-frontmatter)$
\frontmatter
$endif$
$if(title)$
$if(beamer)$
\frame{\titlepage}
$else$
{\let\newpage\relax\maketitle}
$endif$
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
$endif$