From 935745d90d5ee6040ff5c60ead121da3b9df92d4 Mon Sep 17 00:00:00 2001 From: Seth Grover Date: Wed, 30 Nov 2022 15:25:49 -0700 Subject: [PATCH] remove fediverse link in embedded documentation --- Dockerfiles/nginx.Dockerfile | 1 + sensor-iso/build.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfiles/nginx.Dockerfile b/Dockerfiles/nginx.Dockerfile index 1c442ff16..243121bf2 100644 --- a/Dockerfiles/nginx.Dockerfile +++ b/Dockerfiles/nginx.Dockerfile @@ -26,6 +26,7 @@ WORKDIR /site RUN find /site -type f -name "*.md" -exec sed -i "s/{{[[:space:]]*site.github.build_revision[[:space:]]*}}/$VCS_REVISION/g" "{}" \; && \ ( [ -n "${GITHUB_TOKEN}" ] && export JEKYLL_GITHUB_TOKEN="${GITHUB_TOKEN}" || true ) && \ sed -i "s/^\(show_downloads:\).*/\1 false/" /site/_config.yml && \ + sed -i -e "/^mastodon:/,+2d" /site/_config.yml && \ docker-entrypoint.sh bundle exec jekyll build && \ find /site/_site -type f -name "*.md" -delete && \ find /site/_site -type f -name "*.html" -exec sed -i "s@/\(docs\|assets\)@/readme/\1@g" "{}" \; && \ diff --git a/sensor-iso/build.sh b/sensor-iso/build.sh index a6b6f09e5..151fe59f0 100755 --- a/sensor-iso/build.sh +++ b/sensor-iso/build.sh @@ -136,6 +136,7 @@ if [ -d "$WORKDIR" ]; then [[ -f "$SCRIPT_PATH/shared/environment.chroot" ]] && \ . "$SCRIPT_PATH/shared/environment.chroot" sed -i "s/^\(show_downloads:\).*/\1 false/" "$SCRIPT_PATH"/_config.yml + sed -i -e "/^mastodon:/,+2d" "$SCRIPT_PATH"/_config.yml bash "$SCRIPT_PATH/docs/documentation_build.sh" -v -r "${VCS_REVSION:-main}" -t "${GITHUB_TOKEN:-}" mkdir -p ./config/includes.chroot/usr/share/doc cp -r "$SCRIPT_PATH/_site" ./config/includes.chroot/usr/share/doc/hedgehog