ClickHouse/docs/build.sh

19 lines
450 B
Bash
Raw Normal View History

2017-12-29 12:43:05 +00:00
#!/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"
2018-02-08 09:34:24 +00:00
mkdir $lang'_single_page'
cp -r $lang/images $lang'_single_page'
2017-12-29 12:43:05 +00:00
./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