From 55a3f0c320414b37278e2ec770503d8969236a7b Mon Sep 17 00:00:00 2001 From: Julien Negrotto Date: Wed, 16 Apr 2025 20:26:30 -0500 Subject: [PATCH] Add text-based pages for cURL --- .eleventy.js | 11 +++++++++++ justfile | 17 +++++++++++++++-- index.html => src/index.html | 0 src/index.txt | 8 ++++++++ 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .eleventy.js rename index.html => src/index.html (100%) create mode 100644 src/index.txt diff --git a/.eleventy.js b/.eleventy.js new file mode 100644 index 0000000..41b43f2 --- /dev/null +++ b/.eleventy.js @@ -0,0 +1,11 @@ +export default function(eleventyConfig) { + // Copy textfiles to the output folder + eleventyConfig.addPassthroughCopy("src/**/*.txt"); + + return { + dir: { + input: "src", + output: "_site", + }, + }; +} diff --git a/justfile b/justfile index c4221c6..68fb8aa 100644 --- a/justfile +++ b/justfile @@ -1,5 +1,18 @@ -dev: - npx @11ty/eleventy --serve +INSTANCE_ID := 'instance-20250416-195354' + +default: dev + +clean: + rm -rf _site build: npx @11ty/eleventy + +dev: + npx @11ty/eleventy --serve + +deploy: + gcloud compute scp --recurse ./_site/* {{INSTANCE_ID}}:/var/www/crawfi.sh/ + +ssh: + gcloud compute ssh {{INSTANCE_ID}} diff --git a/index.html b/src/index.html similarity index 100% rename from index.html rename to src/index.html diff --git a/src/index.txt b/src/index.txt new file mode 100644 index 0000000..0937883 --- /dev/null +++ b/src/index.txt @@ -0,0 +1,8 @@ +┌───────────────────────────────────────────┐ +│ __ _ _ │ +│ ___ _ __ __ ___ __/ _(_) ___| |__ │ +│ / __| '__/ _` \ \ /\ / / |_| | / __| '_ \ │ +│| (__| | | (_| |\ V V /| _| |_\__ \ | | |│ +│ \___|_| \__,_| \_/\_/ |_| |_(_)___/_| |_|│ +│ │ +└───────────────────────────────────────────┘