Skip to content

Commit 320199d

Browse files
authored
fix language switcher (#394)
* Update build_website.sh Minor fix * Fix: language switcher
1 parent b1241d7 commit 320199d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

DISCOVER/_templates/language-switcher.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ul class="dropdown-menu" aria-labelledby="language-switcher-button">
77
{% for item in languages %}
88
<li>
9-
<a class="dropdown-item{% if current_language == item.code %}active{% endif %}"
9+
<a class="dropdown-item{% if current_language == item.code %} active{% endif %}"
1010
href="{{ baseurl }}/{{ current_version }}/{{ item.code }}/{{ pagename }}.html"
1111
{% if item.direction %}dir="{{ item.direction }}"{% endif %}>
1212
{{ item.name_local }}

ci/build_website.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
echo "Starting build process..."
33

44
# Get parameters with defaults
5-
VERSION=${VERSION:-${1:-"dev"}}
5+
VERSION=${VERSION:-${1:-"2.0"}}
66
LANGUAGE=${LANGUAGE:-${2:-"en"}}
77

88
echo "Building version: $VERSION, language: $LANGUAGE"
@@ -15,4 +15,4 @@ rm -rf DISCOVER/_tags/*
1515

1616
# Build the documentation
1717
echo "Building $LANGUAGE version..."
18-
WEBSITE_VERSION="$VERSION" WEBSITE_LANGUAGE="$LANGUAGE" sphinx-build -b html DISCOVER/ DISCOVER/_build/html
18+
WEBSITE_VERSION="$VERSION" WEBSITE_LANGUAGE="$LANGUAGE" sphinx-build -b html DISCOVER/ DISCOVER/_build/html

0 commit comments

Comments
 (0)