Skip to content

Commit

Permalink
added links for r/Malcolm on reddit if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Jun 26, 2024
1 parent 43af6cc commit 2c6c3fb
Show file tree
Hide file tree
Showing 4 changed files with 8 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 @@ -27,6 +27,7 @@ RUN find /site -type f -name "*.md" -exec sed -i "s/{{[[:space:]]*site.github.bu
( [ -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 && \
sed -i -e "/^reddit:/,+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" "{}" \; && \
Expand Down
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ youtube_url: https://www.youtube.com/@MalcolmNetworkTrafficAnalysis
mastodon:
id: [email protected]
url: https://infosec.exchange/@mmguero
reddit:
id: Malcolm on Reddit
url: https://reddit.com/r/Malcolm
docs_uri: docs/
alerting_docs_uri: docs/alerting.html
anomaly_detection_docs_uri: docs/anomaly-detection.html
Expand Down
3 changes: 3 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ <h1><a href="{{ "/" | absolute_url }}">{{ site.title | default: site.github.repo
{% if site.mastodon.id %}
<p class="view"><i class="fa fa-share-alt" aria-hidden="true"></i> <a rel="me" href="{{ site.mastodon.url }}">@{{ site.mastodon.id }} <i class="fa fa-sign-out" aria-hidden="true"></i></a></p>
{% endif %}
{% if site.reddit.id %}
<p class="view"><i class="fa fa-reddit" aria-hidden="true"></i> <a rel="me" href="{{ site.reddit.url }}">{{ site.reddit.id }} <i class="fa fa-sign-out" aria-hidden="true"></i></a></p>
{% endif %}
</footer>
</div>
<script src="{{ "/assets/js/scale.fix.js" | relative_url }}"></script>
Expand Down
1 change: 1 addition & 0 deletions hedgehog-iso/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ if [ -d "$WORKDIR" ]; then
. "$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
sed -i -e "/^reddit:/,+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
Expand Down

0 comments on commit 2c6c3fb

Please sign in to comment.