Skip to content

Commit

Permalink
Dev: Begin Vel rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
NamesCode committed Dec 24, 2024
1 parent 3fa6924 commit da982f2
Show file tree
Hide file tree
Showing 365 changed files with 620 additions and 1,498 deletions.
665 changes: 0 additions & 665 deletions LICENSE.md

This file was deleted.

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added assets/favicons/apple-touch-icon.png
Binary file added assets/favicons/favicon-96x96.png
Binary file added assets/favicons/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions assets/favicons/favicon.svg

Large diffs are not rendered by default.

Binary file added assets/favicons/web-app-manifest-192x192.png
Binary file added assets/favicons/web-app-manifest-512x512.png
File renamed without changes.
File renamed without changes
File renamed without changes
Binary file added assets/gifs/alien-dance.gif
Binary file added assets/gifs/astolfo-nix.gif
Binary file added assets/gifs/cat-dance.gif
Binary file added assets/gifs/coke-bert.gif
Binary file added assets/gifs/doc-ock-dance.gif
Binary file added assets/gifs/dollar-eyes-mrcrab.gif
Binary file added assets/gifs/dumb-picmix.gif
Binary file added assets/gifs/evangalion-congratulations.gif
Binary file added assets/gifs/evangelion-congratulations-afar.gif
Binary file added assets/gifs/flag-esperanto.gif
Binary file added assets/gifs/kaworu-explode.gif
Binary file added assets/gifs/kaworu-picmix.gif
Binary file added assets/gifs/kaworu-picmix2.gif
Binary file added assets/gifs/kaworu-smile.gif
Binary file added assets/gifs/kawoshin-good-morning.gif
Binary file added assets/gifs/kawoshin-pinterest.gif
Binary file added assets/gifs/lain-depression.gif
Binary file added assets/gifs/lain-fix.gif
Binary file added assets/gifs/lain-papas-pizzeria.gif
Binary file added assets/gifs/lain-picmix.gif
Binary file added assets/gifs/lain-smash.gif
Binary file added assets/gifs/lain-spin.gif
Binary file added assets/gifs/lain-static.gif
Binary file added assets/gifs/less-mondays.gif
Binary file added assets/gifs/lgbtq-polyamorous-88x31.gif
Binary file added assets/gifs/markiplier-picmix.gif
Binary file added assets/gifs/mpreg.gif
Binary file added assets/gifs/no-charity-gravity.gif
Binary file added assets/gifs/patch.gif
Binary file added assets/gifs/randos-kiss.gif
Binary file added assets/gifs/shinji-picmix.gif
Binary file added assets/gifs/sins.gif
Binary file added assets/gifs/slow-internet.gif
Binary file added assets/gifs/superbad-donuts.gif
Binary file added assets/gifs/weed-bert.gif
Binary file added assets/gifs/will-wood-picmix.gif
Binary file added assets/gifs/will-wood-thumbs-up.gif
Binary file added assets/gifs/worm-pixmix.gif
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
65 changes: 65 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
#!/usr/bin/env sh

### -- INITIALISATION STAGE --

# Exit on fail
set -e

# Create the build directory, clearing the old one
rm -rf build; mkdir -p build

## -- Server root --
echo "Copying to site root..."

# Copy all files in the root of src/pages (not directories) into build/
find src -maxdepth 1 -type f | while read -r file; do
# Extract the filename
filename=$(basename "$file")

# Copy the file to the build directory
cp "$file" "build/$filename"

echo "Copied $file -> build/$filename"
done


### -- RENDER STAGE --

## -- Velox --
echo "Building Vel pages..."

# Find all .vtml files in src/pages recursively
# find src/pages -type f -name "*.vtml" | while read -r file; do
find src/pages -type f -name "*.html" | while read -r file; do
# Remove the "src/pages/" prefix to get the relative path
relative_path="${file#src/pages/}"

# Generate the output path in the build directory (preserving structure)
# output="build/${relative_path%.vtml}.html"
output="build/${relative_path%.html}.html"

# Ensure the output directory exists
mkdir -p "$(dirname "$output")"

# Process the file with velox and output to the build directory
./velox -c ./src/components "$file" > "$output"

echo "Built $file -> $output"
done

# ## -- SCSS --
# echo "Building SCSS..."
#
# # Find all .scss files in src/css recursively
# find src/css -type f -name "*.scss" | while read -r file; do
# # Extract the filename from the path
# filename=$(basename "$file")
#
# # Generate the output path in the build directory
# output="build/css/${filename%.scss}.css"
#
# # Process the file with the sass cli and output to the build directory
# sass "$file" "$output"
#
# echo "Built $file -> $output"
# done
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
nativeBuildInputs = with pkgs; [
# Build tools
dart-sass
pandoc-cli
pandoc
# velox

# LSPs
Expand Down
28 changes: 0 additions & 28 deletions package.json

This file was deleted.

10 changes: 0 additions & 10 deletions playwright.config.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added src-old/lib/assets/88x31/agplv3.gif
Binary file added src-old/lib/assets/88x31/anything_but_chrome.gif
Binary file added src-old/lib/assets/88x31/cat.gif
Binary file added src-old/lib/assets/88x31/classicgaming.gif
Binary file added src-old/lib/assets/88x31/ctp_webring.webp
Binary file not shown.
Binary file added src-old/lib/assets/88x31/discord_now.gif
Binary file added src-old/lib/assets/88x31/fftake.gif
Binary file added src-old/lib/assets/88x31/frenz/isabel_nix-gf.gif
Binary file added src-old/lib/assets/88x31/furnow.gif
Binary file added src-old/lib/assets/88x31/garfunkles-space.webp
Binary file not shown.
Binary file added src-old/lib/assets/88x31/gay.gif
Binary file added src-old/lib/assets/88x31/hatems.gif
Binary file added src-old/lib/assets/88x31/html3.gif
Binary file added src-old/lib/assets/88x31/internetprivacy.gif
Binary file added src-old/lib/assets/88x31/kittylink.gif
Binary file added src-old/lib/assets/88x31/linux_now.gif
Binary file added src-old/lib/assets/88x31/local_network.gif
Binary file added src-old/lib/assets/88x31/made_with_emacs.png
Binary file added src-old/lib/assets/88x31/made_with_mac.gif
Binary file added src-old/lib/assets/88x31/made_with_neovim.gif
Binary file added src-old/lib/assets/88x31/mafumafu.gif
Binary file added src-old/lib/assets/88x31/monazilla.gif
Binary file added src-old/lib/assets/88x31/monero_now.gif
Binary file added src-old/lib/assets/88x31/nocookie.gif
Binary file added src-old/lib/assets/88x31/piracy.gif
Binary file added src-old/lib/assets/88x31/publicdomain.gif
Binary file added src-old/lib/assets/88x31/seedyourtorrents.gif
Binary file added src-old/lib/assets/88x31/stop_feeding_ai.webp
Binary file not shown.
Binary file added src-old/lib/assets/88x31/typhrakromer.gif
Binary file added src-old/lib/assets/88x31/void.gif
Binary file added src-old/lib/assets/88x31/webdesign.gif
Binary file added src-old/lib/assets/88x31/written_in_vi.gif
Binary file added src-old/lib/assets/88x31/y2k.gif
Binary file added src-old/lib/assets/Will_Wood_Wednesday.gif
12 changes: 12 additions & 0 deletions src-old/lib/assets/apple_logo.svg
Binary file added src-old/lib/assets/bbc_micro.gif
Binary file added src-old/lib/assets/danger_to_society.gif
Binary file added src-old/lib/assets/dndStamp.png
Binary file added src-old/lib/assets/fonts/Rockwell.woff2
Binary file not shown.
Binary file added src-old/lib/assets/garf_line.gif
Binary file added src-old/lib/assets/garfpfp.png
Binary file added src-old/lib/assets/nekoAtsumeStamp.gif
Loading

0 comments on commit da982f2

Please sign in to comment.