Skip to content

Commit

Permalink
fix nginx docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Oct 6, 2022
1 parent 5b4ada7 commit 86582a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Dockerfiles/nginx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ ARG GITHUB_TOKEN
ARG VCS_REVISION
ENV VCS_REVISION $VCS_REVISION

ADD README.md _includes _layouts _config.yml Gemfile docs /site/
ADD README.md _includes _layouts _config.yml Gemfile /site/
ADD docs/ /site/docs/

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" "{}" \; && \
if [ -n "${GITHUB_TOKEN}" ]; then \
export JEKYLL_GITHUB_TOKEN="${GITHUB_TOKEN}"; \
fi && \
( [ -n "${GITHUB_TOKEN}" ] && export JEKYLL_GITHUB_TOKEN="${GITHUB_TOKEN}" || true ) && \
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Name=Sensor README
Exec=/opt/firefox/firefox --setDefaultBrowser file:////usr/share/doc/hedgehog/HedgehogLinux.html
Exec=/opt/firefox/firefox --setDefaultBrowser http://localhost:8420/docs/hedgehog.html
Terminal=false
X-MultipleArgs=false
Type=Application
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Name=Sensor README
Exec=/opt/firefox/firefox --setDefaultBrowser file:////usr/share/doc/hedgehog/HedgehogLinux.html
Exec=/opt/firefox/firefox --setDefaultBrowser http://localhost:8420/docs/hedgehog.html
Terminal=false
X-MultipleArgs=false
Type=Application
Expand Down

0 comments on commit 86582a2

Please sign in to comment.