Skip to content

Commit

Permalink
more work on development of documentation to split out into github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Oct 5, 2022
1 parent d661336 commit 964669b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfiles/nginx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@
# first build documentation with jekyll
FROM ghcr.io/mmguero-dev/jekyll:latest as docbuild

ARG VCS_REVISION
ENV VCS_REVISION $VCS_REVISION

ADD . /site

WORKDIR /site

# build documentation, remove unnecessary files, then massage a bit to work nicely with NGINX (which will be serving it)
RUN docker-entrypoint.sh bundle exec jekyll build && \
RUN find /site -type f -name "*.md" -exec sed -i "s/{{[[:space:]]*site.github.build_revision[[:space:]]*}}/$VCS_REVISION/g" "{}" \; && \
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" "{}" \; && \
find /site/_site -type f -name "*.html" -exec sed -i 's@\(href=\)"/"@\1"/readme/"@g' "{}" \;
Expand Down

0 comments on commit 964669b

Please sign in to comment.