From a672a7f47f1096afe8b7c5e36ca6a86902602c9b Mon Sep 17 00:00:00 2001 From: konard Date: Sat, 13 Sep 2025 07:44:36 +0300 Subject: [PATCH 1/3] Initial commit with task details for issue #6 Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: https://github.com/linksplatform/Scripts/issues/6 --- CLAUDE.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..bf64295 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,5 @@ +Issue to solve: https://github.com/linksplatform/Scripts/issues/6 +Your prepared branch: issue-6-4a2136d4 +Your prepared working directory: /tmp/gh-issue-solver-1757738674283 + +Proceed. \ No newline at end of file From 95a3abaa1d615bc93dc076b530d2fd01f6ee4105 Mon Sep 17 00:00:00 2001 From: konard Date: Sat, 13 Sep 2025 07:46:56 +0300 Subject: [PATCH 2/3] Add auto-loading for docfx files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Create LoadDocfxFiles.sh script to automatically download docfx configuration files from Files repository - Update publish-docs.sh and publish-csharp-docs.sh to use auto-loading functionality - Resolves issue #6 by implementing automatic loading from https://github.com/linksplatform/Files/tree/main/docfx 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- MultiProjectRepository/publish-csharp-docs.sh | 3 +++ SingleProjectRepository/publish-docs.sh | 3 +++ Utils/LoadDocfxFiles.sh | 23 +++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100755 Utils/LoadDocfxFiles.sh diff --git a/MultiProjectRepository/publish-csharp-docs.sh b/MultiProjectRepository/publish-csharp-docs.sh index 612028b..db2d4bd 100755 --- a/MultiProjectRepository/publish-csharp-docs.sh +++ b/MultiProjectRepository/publish-csharp-docs.sh @@ -10,6 +10,9 @@ COMMIT_USER_NAME="linksplatform" COMMIT_USER_EMAIL="linksplatformtechnologies@gmail.com" REPOSITORY="github.com/linksplatform/$REPOSITORY_NAME" +# Load DocFX configuration files +../Utils/LoadDocfxFiles.sh . + # Insert repository name into DocFX's configuration files sed -i "s/\$REPOSITORY_NAME/$REPOSITORY_NAME/g" toc.yml sed -i "s/\$REPOSITORY_NAME/$REPOSITORY_NAME/g" docfx.json diff --git a/SingleProjectRepository/publish-docs.sh b/SingleProjectRepository/publish-docs.sh index 8a36fb7..e5bbae6 100755 --- a/SingleProjectRepository/publish-docs.sh +++ b/SingleProjectRepository/publish-docs.sh @@ -10,6 +10,9 @@ COMMIT_USER_NAME="linksplatform" COMMIT_USER_EMAIL="linksplatformtechnologies@gmail.com" REPOSITORY="github.com/linksplatform/$REPOSITORY_NAME" +# Load DocFX configuration files +../Utils/LoadDocfxFiles.sh . + # Insert repository name into DocFX's configuration files sed -i "s/\$REPOSITORY_NAME/$REPOSITORY_NAME/g" toc.yml sed -i "s/\$REPOSITORY_NAME/$REPOSITORY_NAME/g" docfx.json diff --git a/Utils/LoadDocfxFiles.sh b/Utils/LoadDocfxFiles.sh new file mode 100755 index 0000000..b491041 --- /dev/null +++ b/Utils/LoadDocfxFiles.sh @@ -0,0 +1,23 @@ +#!/bin/bash +set -e # Exit with nonzero exit code if anything fails + +# Load docfx configuration files from the Files repository +# Usage: ./LoadDocfxFiles.sh [target_directory] + +TARGET_DIR="${1:-.}" +FILES_REPO_BASE="https://raw.githubusercontent.com/linksplatform/Files/main/docfx" + +echo "Loading docfx files to $TARGET_DIR..." + +# Create target directory if it doesn't exist +mkdir -p "$TARGET_DIR" + +# Download docfx configuration files +curl -s "$FILES_REPO_BASE/docfx.json" -o "$TARGET_DIR/docfx.json" +curl -s "$FILES_REPO_BASE/toc.yml" -o "$TARGET_DIR/toc.yml" +curl -s "$FILES_REPO_BASE/filter.yml" -o "$TARGET_DIR/filter.yml" + +echo "Docfx files loaded successfully:" +echo " - docfx.json" +echo " - toc.yml" +echo " - filter.yml" \ No newline at end of file From b7a7da676d3ce2596bd6e269894437808d8c9b3c Mon Sep 17 00:00:00 2001 From: konard Date: Sat, 13 Sep 2025 07:47:25 +0300 Subject: [PATCH 3/3] Remove CLAUDE.md - Claude command completed --- CLAUDE.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index bf64295..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,5 +0,0 @@ -Issue to solve: https://github.com/linksplatform/Scripts/issues/6 -Your prepared branch: issue-6-4a2136d4 -Your prepared working directory: /tmp/gh-issue-solver-1757738674283 - -Proceed. \ No newline at end of file