Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions build-site.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
#!/bin/bash
set -x

if [[ -z "${DEPLOY_PRIME_URL}" ]]; then
USE_BASE_URL_SITE=""
USE_BASE_URL_SITE_DOCS=""
USE_BASE_URL_SITE=""
USE_BASE_URL_DOCS=""
else
echo -e "\033[0;32mNetlify DEPLOY_PRIME_URL detected, this seems to be a PR, deployment happening at ${DEPLOY_PRIME_URL}...\033[0m"
USE_BASE_URL_SITE="-b ${DEPLOY_PRIME_URL}"
USE_BASE_URL_DOCS="-b ${DEPLOY_PRIME_URL}/documentation"
USE_BASE_URL_SITE="--baseURL ${DEPLOY_PRIME_URL}"
USE_BASE_URL_DOCS="--baseURL ${DEPLOY_PRIME_URL}/documentation"
fi

echo -e "\033[0;32mDeleting Hugo previously generated directories for docs and main site...\033[0m"
rm -rf site_source_files/public && rm -rf docs_source_files/public

echo -e "\033[0;32mGenerating Hugo site for docs...\033[0m"
cd docs_source_files && hugo --minify ${URL_BASE_DOCS} && cd ..
cd docs_source_files && hugo --minify ${USE_BASE_URL_DOCS} && cd ..

echo -e "\033[0;32mGenerating Hugo site for main website...\033[0m"
cd site_source_files && hugo --minify ${URL_BASE_SITE} && cd ..
cd site_source_files && hugo --minify ${USE_BASE_URL_SITE} && cd ..

echo -e "\033[0;32mMerging both sites into a single one...\033[0m"
mv docs_source_files/public/* site_source_files/public/documentation
Expand Down
8 changes: 0 additions & 8 deletions docs_source_files/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ home = [ "HTML", "RSS", "JSON"]
title = "Documentation for Selenium"
weight = 1
languageName = "English"
baseURL = "https://www.selenium.dev/documentation/en"

[[Languages.en.menu.shortcuts]]
name = "<i class='fas fa-home'></i> Selenium Home"
Expand Down Expand Up @@ -69,7 +68,6 @@ weight = 30
title = "Documentación de Selenium"
weight = 2
languageName = "Español"
baseURL = "https://www.selenium.dev/documentation/es"

[[Languages.es.menu.shortcuts]]
name = "<i class='fas fa-home'></i> Selenium Home"
Expand Down Expand Up @@ -101,7 +99,6 @@ weight = 30
title = "Selenium documentatie"
weight = 3
languageName = "Nederlands"
baseURL = "https://www.selenium.dev/documentation/nl"

[[Languages.nl.menu.shortcuts]]
name = "<i class='fas fa-home'></i> Selenium Home"
Expand Down Expand Up @@ -133,7 +130,6 @@ weight = 30
title = "Selenium 文档"
weight = 4
languageName = "中文简体"
baseURL = "https://www.selenium.dev/documentation/zh-cn"

[[Languages.zh-cn.menu.shortcuts]]
name = "<i class='fas fa-home'></i> Selenium Home"
Expand Down Expand Up @@ -165,7 +161,6 @@ weight = 30
title = "Documentation Selenium"
weight = 5
languageName = "Français"
baseURL = "https://www.selenium.dev/documentation/fr"

[[Languages.fr.menu.shortcuts]]
name = "<i class='fas fa-fw fa-exclamation-triangle'></i> Signaler un problème"
Expand Down Expand Up @@ -197,7 +192,6 @@ weight = 10
title = "Seleniumドキュメント"
weight = 6
languageName = "日本語"
baseURL = "https://www.selenium.dev/documentation/ja"

[[Languages.ja.menu.shortcuts]]
name = "<i class='fas fa-home'></i> Selenium Home"
Expand Down Expand Up @@ -229,7 +223,6 @@ weight = 30
title = "Selenium 문서"
weight = 7
languageName = "한국어"
baseURL = "https://www.selenium.dev/documentation/ko"

[[Languages.ko.menu.shortcuts]]
name = "<i class='fas fa-home'></i> Selenium 홈"
Expand Down Expand Up @@ -261,7 +254,6 @@ weight = 30
title = "Dokumentation für Selenium"
weight = 1
languageName = "Deutsch"
baseURL = "https://www.selenium.dev/documentation/de"

[[Languages.de.menu.shortcuts]]
name = "<i class='fas fa-home'></i> Selenium Home"
Expand Down