mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
Explicitly fail if there are errors during docs build
This commit is contained in:
parent
014c8a93f2
commit
610bb98eab
@ -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..."
|
||||
|
@ -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:
|
||||
|
@ -4,6 +4,7 @@ copyright: ©2016–2018 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/'
|
||||
|
@ -4,6 +4,7 @@ copyright: ©2016–2018 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/'
|
||||
|
@ -4,6 +4,7 @@ copyright: ©2016–2018 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/'
|
||||
|
@ -4,6 +4,7 @@ copyright: ©2016–2018 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/'
|
||||
|
Loading…
Reference in New Issue
Block a user