diff --git a/Makefile b/Makefile index 73c85165d9..48440aabc3 100644 --- a/Makefile +++ b/Makefile @@ -19,10 +19,6 @@ export-csv: $(REGISTRY)/$(COMPANY)/docs-scriptrunner:latest \ /workdir/scripts/export-csv/script.py -# Update content from external repositories that gets copied in here. -update-external-repos: - ./scripts/update-external-repos/main.sh - # Aggregate changelog entries from various repositories into our Changes section. changes: @if [ -z "${GITHUB_TOKEN}" ]; then echo "Please set the GITHUB_TOKEN environment variable"; exit 1; fi diff --git a/scripts/update-external-repos/main.sh b/scripts/update-external-repos/main.sh deleted file mode 100755 index 9ed756d848..0000000000 --- a/scripts/update-external-repos/main.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -# Here we pull in content from external repositories. While doing so we do -# - copy images (png, jpg) to a special folder -# - copy markdown content to another folder -# - Rewrite image references in the markdown -# - add a link to the recipe repository for collaboration -# -# This assumes: -# - list of repository URLs in repositories.txt -# - recipe repositories have a "docs" subfolder -# - In the "docs" folder is an "index.md" file -# - This index.md file has HUGO frontmatter -# - There may be additional markdown files in that folder -# - There may be PNG and/or JPG images in that folder - -mytmpdir=$(mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir') -echo "Temp dir: $mytmpdir" - -cat ./scripts/update-external-repos/repositories.txt | while read repoline -do - - # split line into repository URL, target path - parts=(${repoline// / }) - repourl=${parts[0]} - targetpath=${parts[1]} - - echo "Copying repo ${repourl} to ${targetpath}" - - # derive reponame from repourl - filename=$(basename ${repourl}) - parts=(${filename//./ }) - reponame=${parts[0]} - - # Empty sub-folder for this repo here in the build folder - rm -rf ${reponame} - - # Clone the repository from github - git clone --depth 1 https://github.com/giantswarm/${reponame}.git $mytmpdir/${reponame} - - # Copy content into src tree - if [ -d "$mytmpdir/${reponame}/docs" ]; then - rm -rf ${targetpath} - mkdir ${targetpath} - cp $mytmpdir/${reponame}/docs/*.md ${targetpath}/ || echo "WARN: no Markdown files" - cp $mytmpdir/${reponame}/docs/*.png ${targetpath}/ || echo "INFO: no PNG files" - cp $mytmpdir/${reponame}/docs/*.jpg ${targetpath}/ || echo "INFO: no JPG files" - fi -done diff --git a/scripts/update-external-repos/repositories.txt b/scripts/update-external-repos/repositories.txt deleted file mode 100644 index 105ad14c54..0000000000 --- a/scripts/update-external-repos/repositories.txt +++ /dev/null @@ -1 +0,0 @@ -https://github.com/giantswarm/kubernetes-gpu.git src/content/vintage/advanced/gpu