mirror of
https://github.com/lux-tel/libsession-util.git
synced 2026-10-30 20:25:11 +00:00
20 lines
300 B
Bash
Executable File
20 lines
300 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ "$(basename $(pwd))" != "api" ]; then
|
|
echo "Error: you must run this from the docs/api directory" >&2
|
|
exit 1
|
|
fi
|
|
|
|
destdir="$1"
|
|
shift
|
|
|
|
if [ -d "$destdir" ]; then
|
|
rm -rf "$destdir"
|
|
fi
|
|
|
|
|
|
./api-to-markdown.py --out="$destdir" "$@"
|
|
cd $destdir && mkdocs build && cd -
|