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 48ac4f4 commit d661336
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Dockerfiles/nginx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ WORKDIR /site
RUN 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' "{}" \;
find /site/_site -type f -name "*.html" -exec sed -i 's@\(href=\)"/"@\1"/readme/"@g' "{}" \;

# build NGINX image
FROM alpine:3.16
Expand Down
1 change: 0 additions & 1 deletion malcolm-iso/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ if [ -d "$WORKDIR" ]; then
ln -s ./control.py wipe
popd >/dev/null 2>&1
cp ./scripts/malcolm_common.py "$MALCOLM_DEST_DIR/scripts/"
cp ./README.md "$MALCOLM_DEST_DIR/"
cp ./logstash/certs/*.conf "$MALCOLM_DEST_DIR/logstash/certs/"
cp ./logstash/maps/malcolm_severity.yaml "$MALCOLM_DEST_DIR/logstash/maps/"
cp -r ./netbox/config/ "$MALCOLM_DEST_DIR/netbox/"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Version=1.0
Name=Malcolm - README
Exec=/opt/firefox/firefox https://localhost/readme
Exec=/opt/firefox/firefox https://localhost/readme/
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=Malcolm - README
Exec=/opt/firefox/firefox https://localhost/readme
Exec=/opt/firefox/firefox https://localhost/readme/
Terminal=false
X-MultipleArgs=false
Type=Application
Expand Down
14 changes: 1 addition & 13 deletions sensor-iso/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,8 @@ if [ -d "$WORKDIR" ]; then
mv "$SCRIPT_PATH/arkime"/*.deb ./config/packages.chroot/

# format and copy documentation
# TODO
pushd "$SCRIPT_PATH/"
pushd ./docs/images
ls -1 *.png | xargs -n 1 bash -c 'convert "$0" "${0%.*}.jpg"'
popd >/dev/null 2>&1
cp README.md HedgehogLinux.jpg.md
sed -i "s/.png/.jpg/g" HedgehogLinux.jpg.md
sed -i "s@/docs/logo/@/docs/images/@g" HedgehogLinux.jpg.md
sed -i "s/^# Hedgehog Linux$//" HedgehogLinux.jpg.md
sed -i 's/\!\[.*\](.*\/badge.svg)//g' HedgehogLinux.jpg.md
pandoc -s --self-contained --metadata title="Hedgehog Linux" --css doc.css -o HedgehogLinux.html HedgehogLinux.jpg.md
rm -f HedgehogLinux.jpg.md
popd >/dev/null 2>&1
mkdir -p ./config/includes.chroot/usr/share/doc/hedgehog
cp "$SCRIPT_PATH/"*.html ./config/includes.chroot/usr/share/doc/hedgehog/
mkdir -p ./config/includes.chroot/usr/share/fonts/truetype/ubuntu/ ./config/includes.chroot/usr/share/images/hedgehog/ ./config/includes.chroot/usr/share/images/desktop-base/
cp "$SCRIPT_PATH/docs/logo/"*.png ./config/includes.chroot/usr/share/images/hedgehog/
ln -r -s ./config/includes.chroot/usr/share/images/hedgehog/*wallpaper*.png ./config/includes.chroot/usr/share/images/desktop-base/
Expand Down

0 comments on commit d661336

Please sign in to comment.