13 lines
283 B
Bash
Executable file
13 lines
283 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -Eeuo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
cd "$ROOT"
|
|
|
|
mkdocs build --clean
|
|
|
|
PRINT_PAGE='site/print_page/index.html'
|
|
if [[ -f "$PRINT_PAGE" ]] && command -v htmlark >/dev/null 2>&1; then
|
|
htmlark "$PRINT_PAGE" -o site/standalone.html
|
|
fi
|