Explicitly fail if there are errors during docs build

This commit is contained in:
Ivan Blinkov 2018-07-09 14:26:11 +03:00
parent 014c8a93f2
commit 610bb98eab
6 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash
set -e
if [ $# -lt 1 ]; then
LANGS="ru en"
@ -8,7 +9,7 @@ fi
for lang in $LANGS; do
echo -e "\n\nLANG=$lang. Creating single page source"
mkdir $lang'_single_page' 2>/dev/null
mkdir $lang'_single_page' 2>/dev/null || true
cp -r $lang/images $lang'_single_page'
./concatenate.py $lang
echo -e "\n\nLANG=$lang. Building multipage..."

View File

@ -68,7 +68,7 @@ for path in files_to_concatenate:
if sharp_pos > -1:
return '[' + text + '](' + link[sharp_pos:] + ')'
else:
print('ERROR: Link [' + text + '](' + link + ') in file ' + path + ' has no anchor. Please provide it.')
raise RuntimeError('ERROR: Link [' + text + '](' + link + ') in file ' + path + ' has no anchor. Please provide it.')
# return '['+text+'](#'+link.replace('/','-')+')'
for l in file:

View File

@ -4,6 +4,7 @@ copyright: ©20162018 Yandex LLC
docs_dir: en
site_dir: build/docs/en
use_directory_urls: true
strict: true
repo_name: 'yandex/ClickHouse'
repo_url: 'https://github.com/yandex/ClickHouse/'

View File

@ -4,6 +4,7 @@ copyright: ©20162018 Yandex LLC
docs_dir: en_single_page
site_dir: build/docs/en/single
use_directory_urls: false
strict: true
repo_name: 'yandex/ClickHouse'
repo_url: 'https://github.com/yandex/ClickHouse/'

View File

@ -4,6 +4,7 @@ copyright: ©20162018 Yandex LLC
docs_dir: ru
site_dir: build/docs/ru
use_directory_urls: true
strict: true
repo_name: 'yandex/ClickHouse'
repo_url: 'https://github.com/yandex/ClickHouse/'

View File

@ -4,6 +4,7 @@ copyright: ©20162018 Yandex LLC
docs_dir: ru_single_page
site_dir: build/docs/ru/single
use_directory_urls: false
strict: true
repo_name: 'yandex/ClickHouse'
repo_url: 'https://github.com/yandex/ClickHouse/'