Skip to content

Commit

Permalink
Merge pull request #926 from NMD03/relations
Browse files Browse the repository at this point in the history
Mkdocs relations and statistics
  • Loading branch information
adulau authored Feb 7, 2024
2 parents d1138bf + ce55d87 commit d7c003e
Show file tree
Hide file tree
Showing 67 changed files with 1,026 additions and 99 deletions.
4 changes: 4 additions & 0 deletions tools/mkdocs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/site/docs/*
!/site/docs/01_attachements

/site/site
4 changes: 0 additions & 4 deletions tools/mkdocs/REQUIREMENTS

This file was deleted.

17 changes: 16 additions & 1 deletion tools/mkdocs/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
#!/bin/bash

requirements_path="requirements.txt"

pip freeze > installed.txt
diff -u <(sort $requirements_path) <(sort installed.txt)

if [ $? -eq 0 ]; then
echo "All dependencies are installed with correct versions."
else
echo "Dependencies missing or with incorrect versions. Please install all dependencies from $requirements_path into your environment."
rm installed.txt # Clean up
exit 1
fi

rm installed.txt # Clean up

python3 generator.py
cd site
cd ./site/ || exit
mkdocs build
rsync --include ".*" -v -rz --checksum site/ [email protected]:/var/www/misp-galaxy.org
Loading

0 comments on commit d7c003e

Please sign in to comment.