2022-11-02 04:17:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-04-12 20:34:43 +00:00
|
|
|
pushd "$(dirname "$0")" || exit 1
|
2022-11-23 21:01:41 +00:00
|
|
|
|
2022-11-02 04:17:15 +00:00
|
|
|
if [ ! -d "venv" ]; then
|
2024-02-21 21:09:02 +00:00
|
|
|
echo "You need to set up a venv! Check the running from source help for more info!"
|
|
|
|
popd || exit 1
|
|
|
|
exit 1
|
2022-11-02 04:17:15 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "help" ]; then
|
2024-02-21 21:09:02 +00:00
|
|
|
echo "Deleting old help..."
|
|
|
|
rm -rf help
|
2022-11-02 04:17:15 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Creating new help..."
|
|
|
|
|
|
|
|
source venv/bin/activate
|
|
|
|
|
|
|
|
pip install mkdocs-material
|
|
|
|
|
|
|
|
mkdocs build -d help
|
|
|
|
|
|
|
|
deactivate
|
|
|
|
|
|
|
|
echo "Done!"
|
2022-11-23 21:01:41 +00:00
|
|
|
|
2023-04-12 20:34:43 +00:00
|
|
|
popd || exit
|