From 41d38509d46e27ad464798a23e7d39d29ac170d9 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Fri, 29 Aug 2025 14:22:59 -0400 Subject: misc: re-indent --- config.cfg | 14 ++++---- flake.nix | 46 ++++++++++++------------ index.html | 24 ++++++------- partials/footer.html | 6 ++-- partials/navbar.html | 20 +++++------ partials/project-list.html | 46 ++++++++++++------------ projects/autograd.md | 8 ++--- projects/bubbl.md | 16 ++++----- projects/index.html | 18 +++++----- projects/msg.md | 32 ++++++++--------- tailwind_in.css | 88 +++++++++++++++++++++++----------------------- templates/base.html | 48 ++++++++++++------------- templates/project.html | 78 ++++++++++++++++++++-------------------- 13 files changed, 222 insertions(+), 222 deletions(-) diff --git a/config.cfg b/config.cfg index d737d10..55a62d7 100644 --- a/config.cfg +++ b/config.cfg @@ -1,12 +1,12 @@ resources = { - index.html, - projects/index.html, - projects/autograd.md, - projects/bubbl.md, - projects/chip8emu.md, - projects/msg.md + index.html, + projects/index.html, + projects/autograd.md, + projects/bubbl.md, + projects/chip8emu.md, + projects/msg.md } static = { - assets + assets } diff --git a/flake.nix b/flake.nix index 78168e4..16c969f 100644 --- a/flake.nix +++ b/flake.nix @@ -1,28 +1,28 @@ { - inputs = { - nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - msgpkgs.url = "git+ssh://git@github.com/compromyse/msg.git"; - self.submodules = true; - }; + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + msgpkgs.url = "git+ssh://git@github.com/compromyse/msg.git"; + self.submodules = true; + }; - outputs = { self, nixpkgs, msgpkgs, ... }: - let - pkgs = import nixpkgs { system = "x86_64-linux"; }; - msg = msgpkgs.packages.x86_64-linux.default; + outputs = { self, nixpkgs, msgpkgs, ... }: + let + pkgs = import nixpkgs { system = "x86_64-linux"; }; + msg = msgpkgs.packages.x86_64-linux.default; in { - devShells.x86_64-linux.default = pkgs.mkShell { - buildInputs = with pkgs; [ - http-server - tailwindcss_4 - watchman - ] ++ [ - (pkgs.writeShellScriptBin "css" '' - tailwindcss -i tailwind_in.css -o assets/stylesheet.css -m $@ - '') - (pkgs.writeShellScriptBin "serve" '' - http-server -c-1 $@ - '') - ] ++ [ msg ]; - }; + devShells.x86_64-linux.default = pkgs.mkShell { + buildInputs = with pkgs; [ + http-server + tailwindcss_4 + watchman + ] ++ [ + (pkgs.writeShellScriptBin "css" '' + tailwindcss -i tailwind_in.css -o assets/stylesheet.css -m $@ + '') + (pkgs.writeShellScriptBin "serve" '' + http-server -c-1 $@ + '') + ] ++ [ msg ]; + }; }; } diff --git a/index.html b/index.html index 72ec984..4f33a1f 100644 --- a/index.html +++ b/index.html @@ -3,19 +3,19 @@ title = HOME
-
- -
-

- Hi there! I'm RAGHU. -

-

Programmer and Hacker.

+
+ +
+

+ Hi there! I'm RAGHU. +

+

Programmer and Hacker.

- + +
-
diff --git a/partials/footer.html b/partials/footer.html index e763b96..f3724fe 100644 --- a/partials/footer.html +++ b/partials/footer.html @@ -1,5 +1,5 @@
-
-

The Quieter You Become, The More You Are Able To Hear.

-
+
+

The Quieter You Become, The More You Are Able To Hear.

+
diff --git a/partials/navbar.html b/partials/navbar.html index 44688b1..31e7036 100644 --- a/partials/navbar.html +++ b/partials/navbar.html @@ -1,16 +1,16 @@ diff --git a/partials/project-list.html b/partials/project-list.html index 2552385..b94d422 100644 --- a/partials/project-list.html +++ b/partials/project-list.html @@ -1,30 +1,30 @@ diff --git a/projects/autograd.md b/projects/autograd.md index fe076eb..0a9997f 100644 --- a/projects/autograd.md +++ b/projects/autograd.md @@ -25,15 +25,15 @@ X = [ [ 3.0, 3.0, 3.0 ] ] -y = [ 1.0, -1.0, 1.0, -1.0 ] + y = [ 1.0, -1.0, 1.0, -1.0 ] n = MLP(3, [ 4, 4, 1 ]) -for i in range(400): + for i in range(400): pred = [ n(x) for x in X ] loss = mse(y, pred) loss.zero_grad() loss.backward() n.optimise(0.01) -print(pred) -``` + print(pred) + ``` diff --git a/projects/bubbl.md b/projects/bubbl.md index 324b821..2d1b8de 100644 --- a/projects/bubbl.md +++ b/projects/bubbl.md @@ -16,14 +16,14 @@ priority = 3 After entering the devshell (with direnv or `nix develop`), -```sh -mkdir build && cd build -cmake -G Ninja .. -ninja -``` + ```sh + mkdir build && cd build + cmake -G Ninja .. + ninja + ``` ## Running -```sh -ninja run # or run-headless or run-gdb -``` + ```sh + ninja run # or run-headless or run-gdb + ``` diff --git a/projects/index.html b/projects/index.html index 9ffb78c..beb392c 100644 --- a/projects/index.html +++ b/projects/index.html @@ -2,23 +2,23 @@ title = PROJECTS ---
-

PROJECTS

-

Here's a bunch of things I've done.

+

PROJECTS

+

Here's a bunch of things I've done.

- {{ eachdo resources.projects }} + {{ eachdo resources.projects }} -
-

{{ put name }}

-

{{ put description }}

-
+
+

{{ put name }}

+

{{ put description }}

+
-
{{ put languages }}
+
{{ put languages }}
- {{ endeachdo }} + {{ endeachdo }}
diff --git a/projects/msg.md b/projects/msg.md index 64893cb..a9c4989 100644 --- a/projects/msg.md +++ b/projects/msg.md @@ -23,11 +23,11 @@ $ ./msg -h msg: The Minimal Static Site Generator Usage: ./msg [-h] [-w] [-v] [-o ] - -h : Help - -w : Watch working directory for changes - -v : Verbose - -o : Output directory - : Working directory +-h : Help +-w : Watch working directory for changes +-v : Verbose +-o : Output directory +: Working directory ``` ### Site Structure @@ -42,7 +42,7 @@ Usage: ./msg [-h] [-w] [-v] [-o ] │   ├── navbar.html ├── projects.html └── templates - └── base.html +└── base.html ``` ### Features @@ -52,10 +52,10 @@ Usage: ./msg [-h] [-w] [-v] [-o ] ```html - - {{ include "navbar.html" }} - ... - + +{{ include "navbar.html" }} +... + ``` @@ -64,12 +64,12 @@ Usage: ./msg [-h] [-w] [-v] [-o ] ```html - - {{ content "head" }} - - - {{ body }} - + +{{ content "head" }} + + +{{ body }} + diff --git a/tailwind_in.css b/tailwind_in.css index 9fb4f19..b3e2304 100644 --- a/tailwind_in.css +++ b/tailwind_in.css @@ -2,54 +2,54 @@ @plugin "@tailwindcss/typography"; @layer components { - .project-list-heading { - @apply text-lg group-hover:underline group-hover:text-pink-900 group-hover:bg-pink-100 p-1; - } - - .project-list-description { - @apply pl-3 border-l-3 border-dashed border-pink-300 group-hover:text-pink-900 group-hover:bg-pink-100 group-hover:underline flex items-center; - } - - .button { - @apply hover:underline hover:text-pink-900 hover:bg-pink-100 p-1 border-2 px-4; - } - - .button-inverted { - @apply h-full bg-pink-100 text-pink-900 hover:bg-zinc-900 hover:text-pink-300 hover:underline border-transparent hover:border-pink-300 border-2 selection:bg-zinc-400; - } - - /* auto-rows-[1fr] is to make sure that all cards have the same height across rows */ - .card-container { - @apply px-16 gap-8 justify-center grid grid-cols-3 auto-rows-[1fr]; - } - - .card-anchor { - @apply max-w-128 py-2 px-4 flex flex-col justify-center; - } + .project-list-heading { + @apply text-lg group-hover:underline group-hover:text-pink-900 group-hover:bg-pink-100 p-1; + } + + .project-list-description { + @apply pl-3 border-l-3 border-dashed border-pink-300 group-hover:text-pink-900 group-hover:bg-pink-100 group-hover:underline flex items-center; + } + + .button { + @apply hover:underline hover:text-pink-900 hover:bg-pink-100 p-1 border-2 px-4; + } + + .button-inverted { + @apply h-full bg-pink-100 text-pink-900 hover:bg-zinc-900 hover:text-pink-300 hover:underline border-transparent hover:border-pink-300 border-2 selection:bg-zinc-400; + } + + /* auto-rows-[1fr] is to make sure that all cards have the same height across rows */ + .card-container { + @apply px-16 gap-8 justify-center grid grid-cols-3 auto-rows-[1fr]; + } + + .card-anchor { + @apply max-w-128 py-2 px-4 flex flex-col justify-center; + } } @layer utilities { - .prose { - --tw-prose-body: var(--color-text); - --tw-prose-headings: var(--color-primary); - --tw-prose-links: var(--color-primary); - --tw-prose-bold: var(--color-primary-light); - --tw-prose-hr: var(--color-border); - --tw-prose-code: var(--color-primary); - --tw-prose-quotes: var(--color-primary); - } - - .prose a:hover { - color: var(--color-primary-light); - } + .prose { + --tw-prose-body: var(--color-text); + --tw-prose-headings: var(--color-primary); + --tw-prose-links: var(--color-primary); + --tw-prose-bold: var(--color-primary-light); + --tw-prose-hr: var(--color-border); + --tw-prose-code: var(--color-primary); + --tw-prose-quotes: var(--color-primary); + } + + .prose a:hover { + color: var(--color-primary-light); + } } @layer base { - code, - kbd, - samp, - pre { - font-family: "Jersey 15"; - font-size: 40px; - } + code, + kbd, + samp, + pre { + font-family: "Jersey 15"; + font-size: 40px; + } } diff --git a/templates/base.html b/templates/base.html index 4f25c81..6b9f811 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,37 +1,37 @@ - + - - - - + + + + - {{ putpage title }} | COMPROMYSE + {{ putpage title }} | COMPROMYSE - - - - + + + + - + - - - + + + - - -
+ + +
- {{ include "navbar.html" }} + {{ include "navbar.html" }} -
- {{ body }} -
+
+ {{ body }} +
- {{ include "footer.html" }} + {{ include "footer.html" }} -
- +
+ diff --git a/templates/project.html b/templates/project.html index e7b98e3..6f6b958 100644 --- a/templates/project.html +++ b/templates/project.html @@ -1,56 +1,56 @@ - + - - - - + + + + - {{ putpage name }} | COMPROMYSE + {{ putpage name }} | COMPROMYSE - - - - + + + + - + - - - + + + - - - + + + - - -
+ + +
- {{ include "navbar.html" }} + {{ include "navbar.html" }} -
+
-
-

{{ putpage name }}

-
-

{{ putpage description }}

-
{{ putpage languages }}
-
+
+

{{ putpage name }}

+
+

{{ putpage description }}

+
{{ putpage languages }}
+
- {{ eachdo page.links }} - {{ put label }} - {{ endeachdo }} -
+ {{ eachdo page.links }} + {{ put label }} + {{ endeachdo }} +
-
- {{ body }} -
+
+ {{ body }} +
-
- {{ include "footer.html" }} +
+ {{ include "footer.html" }} -
- +
+ -- cgit v1.2.3