Modified dockerfile to support overriding files within quartz repo by placing modified files under quartz_overrides/ with an identical folder structure. Modified Footer.tsx to include some quotes at the very bottom of each page. Added force option to rebuild script. Updated links appearing in page footer.
This commit is contained in:
+20
-9
@@ -20,6 +20,12 @@ cd "$QUARTZ_PROJECT_DIR" || { log_message "FATAL: Failed to cd to project direct
|
||||
|
||||
log_message "--- Quartz Docker Update Script Started ---"
|
||||
|
||||
FORCE_REBUILD=false
|
||||
if [ "$1" == "force" ]; then
|
||||
log_message "Force rebuild argument ('$1') received."
|
||||
FORCE_REBUILD=true
|
||||
fi
|
||||
|
||||
# --- Step 1: Ensure Quartz Framework Source is Present and Updated ---
|
||||
FRAMEWORK_FULL_PATH="${QUARTZ_PROJECT_DIR}/${QUARTZ_FRAMEWORK_DIR_NAME}"
|
||||
if [ -d "${FRAMEWORK_FULL_PATH}/.git" ]; then
|
||||
@@ -43,19 +49,24 @@ fi
|
||||
|
||||
# --- Step 2: Change Detection for Obsidian Content ---
|
||||
NEEDS_REBUILD=false
|
||||
|
||||
if [ ! -d "$OBSIDIAN_CONTENT_SOURCE" ]; then
|
||||
log_message "ERROR: Obsidian content source directory does not exist: ${OBSIDIAN_CONTENT_SOURCE}"
|
||||
NEEDS_REBUILD=false
|
||||
elif [ ! -f "$LAST_BUILD_TIMESTAMP_FILE" ]; then
|
||||
log_message "No last build timestamp found. Triggering initial rebuild."
|
||||
if [ "$FORCE_REBUILD" = true ]; then
|
||||
log_message "Forcing rebuild as per argument."
|
||||
NEEDS_REBUILD=true
|
||||
else
|
||||
if find "$OBSIDIAN_CONTENT_SOURCE" -type f -newer "$LAST_BUILD_TIMESTAMP_FILE" -print -quit | grep -q .; then
|
||||
log_message "Changes detected in Obsidian content. Triggering rebuild."
|
||||
if [ ! -d "$OBSIDIAN_CONTENT_SOURCE" ]; then
|
||||
log_message "ERROR: Obsidian content source directory does not exist: ${OBSIDIAN_CONTENT_SOURCE}"
|
||||
# Decide if this is fatal or if you want to try building without new content
|
||||
# For now, it will not set NEEDS_REBUILD=true, so script might exit if no prior timestamp
|
||||
elif [ ! -f "$LAST_BUILD_TIMESTAMP_FILE" ]; then
|
||||
log_message "No last build timestamp found at ${LAST_BUILD_TIMESTAMP_FILE}. Triggering initial rebuild."
|
||||
NEEDS_REBUILD=true
|
||||
else
|
||||
log_message "No changes detected in Obsidian content since last build."
|
||||
if find "$OBSIDIAN_CONTENT_SOURCE" -type f -newer "$LAST_BUILD_TIMESTAMP_FILE" -print -quit | grep -q .; then
|
||||
log_message "Changes detected in Obsidian content. Triggering rebuild."
|
||||
NEEDS_REBUILD=true
|
||||
else
|
||||
log_message "No changes detected in Obsidian content since last build."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user