Skip to content

Commit

Permalink
Fix bad download links in embedded documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Nov 30, 2022
1 parent 153ddf1 commit 81124ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfiles/nginx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ WORKDIR /site
# build documentation, remove unnecessary files, then massage a bit to work nicely with NGINX (which will be serving it)
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 && \
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" "{}" \; && \
Expand Down
1 change: 1 addition & 0 deletions sensor-iso/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ if [ -d "$WORKDIR" ]; then
# format and copy documentation
[[ -f "$SCRIPT_PATH/shared/environment.chroot" ]] && \
. "$SCRIPT_PATH/shared/environment.chroot"
sed -i "s/^\(show_downloads:\).*/\1 false/" "$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
Expand Down

0 comments on commit 81124ed

Please sign in to comment.