ClickHouse/docs/build.sh

19 lines
450 B
Bash
Executable File

#!/bin/bash
if [ $# -lt 1 ]; then
LANGS="ru en"
elif [[ $# -eq 1 ]]; then
LANGS=$1
fi
for lang in $LANGS; do
echo -e "\n\nLANG=$lang. Creating single page source"
mkdir $lang'_single_page'
cp -r $lang/images $lang'_single_page'
./concatenate.py $lang
echo -e "\n\nLANG=$lang. Building multipage..."
mkdocs build -f mkdocs_$lang.yml
echo -e "\n\nLANG=$lang. Building single page..."
mkdocs build -f mkdocs_$lang'_single_page.yml'
done