Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions MultiProjectRepository/publish-csharp-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions SingleProjectRepository/publish-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions Utils/LoadDocfxFiles.sh
Original file line number Diff line number Diff line change
@@ -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"