From f81c2a6e21c36de771e1e2ff8d7e2c129dad3dad Mon Sep 17 00:00:00 2001 From: Anson Date: Sat, 23 Aug 2025 11:47:05 -0600 Subject: [PATCH] Enable RSS feed generation and remove debug code --- _quarto.yml | 1 + ghost-upload/.gitlab-ci.yml | 6 ------ ghost-upload/src/main.rs | 27 --------------------------- 3 files changed, 1 insertion(+), 33 deletions(-) diff --git a/_quarto.yml b/_quarto.yml index 41f3e48..4309dc3 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -17,6 +17,7 @@ profiles: # - icon: gitlab # href: https://gitlab.com/MisterBiggs open-graph: true + feed: true format: html: theme: zephyr diff --git a/ghost-upload/.gitlab-ci.yml b/ghost-upload/.gitlab-ci.yml index b9dd633..3565437 100644 --- a/ghost-upload/.gitlab-ci.yml +++ b/ghost-upload/.gitlab-ci.yml @@ -2,12 +2,6 @@ publish: stage: deploy image: rust:latest script: - - echo "Listing project root directory:" - - ls -la - - echo "Listing public directory:" - - ls -la public/ || echo "public directory not found" - - echo "Looking for index.xml:" - - find . -name "index.xml" -type f || echo "No index.xml files found" - cd ./ghost-upload - cargo run needs: diff --git a/ghost-upload/src/main.rs b/ghost-upload/src/main.rs index 4a3f064..fe4601a 100644 --- a/ghost-upload/src/main.rs +++ b/ghost-upload/src/main.rs @@ -228,33 +228,6 @@ async fn get_existing_post_id(slug: &str, token: &str) -> Option { } async fn fetch_feed(path: &str) -> Vec { - // Debug: Print current directory and list files - if let Ok(current_dir) = std::env::current_dir() { - eprintln!("Current directory: {:?}", current_dir); - } - - // Debug: List files in parent directory - if let Ok(entries) = std::fs::read_dir("..") { - eprintln!("Files in parent directory:"); - for entry in entries { - if let Ok(entry) = entry { - eprintln!(" {:?}", entry.path()); - } - } - } - - // Debug: Check if public directory exists - if let Ok(entries) = std::fs::read_dir("../public") { - eprintln!("Files in ../public:"); - for entry in entries { - if let Ok(entry) = entry { - eprintln!(" {:?}", entry.path()); - } - } - } else { - eprintln!("../public directory does not exist or cannot be read"); - } - // Read from local file instead of HTTP request let content = std::fs::read_to_string(path).expect("Failed to read RSS feed file");