Skip to content

Commit 0c43e6f

Browse files
Docs: Minor updates in the build scripts.
1 parent 048ba7e commit 0c43e6f

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

docs/build_docs.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# Stop script execution if a command has an error
4+
set -e
5+
36
# Check if Docker is available
47
if ! command -v docker &> /dev/null
58
then
@@ -17,9 +20,11 @@ writerside_artifacts_tmp_path="docs/writerside-lpk"
1720
sys_user_id=$(id -u)
1821
sys_group_id=$(id -g)
1922

20-
# Clean build dir, run Dokka, run Docker (to build Writerside part)
21-
rm -rf $root_path/$build_path && \
22-
./gradlew dokkaHtml && \
23+
# Clean build dir
24+
rm -rf $root_path/$build_path
25+
# Run Dokka
26+
./gradlew dokkaHtml
27+
# Run Docker (to build Writerside part)
2328
docker run --rm -v $root_path:/opt/sources \
2429
$docker_image \
2530
/bin/bash -c "

docs/update_algolia_index.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# Stop script execution if a command has an error
4+
set -e
5+
36
# Check if Docker is available
47
if ! command -v docker &> /dev/null
58
then
@@ -62,6 +65,8 @@ docker run --rm -v $root_path:/opt/sources \
6265
unzip -O UTF-8 -qq '/opt/sources/${writerside_artifacts_tmp_path}/algolia-indexes*.zip' -d /opt/sources/${algolia_index_tmp_path}/; \
6366
rm -rf /opt/sources/${writerside_artifacts_tmp_path}
6467
"; \
68+
69+
# Run Docker (to update Aligola index)
6570
docker run --rm -v $root_path:/opt/sources \
6671
$algolia_publisher_docker_image \
6772
/bin/bash -c "

0 commit comments

Comments
 (0)