Skip to content

Commit 44cb993

Browse files
author
exoego
committed
Fix language dropdown not shown in translated Getting Started pages
1 parent eade469 commit 44cb993

8 files changed

+9
-3
lines changed

_config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ collections:
3737
permalink: /:collection/:path.html
3838
books:
3939
output: false
40+
getting-started-intellij-track:
41+
output: true
42+
permalink: /:collection/:path.html
43+
getting-started-sbt-track:
44+
output: true
45+
permalink: /:collection/:path.html
4046
ja: # Japanese translations
4147
output: true
4248
permalink: /:collection/:path.html

_includes/sidebar-toc-singlepage-overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h5 class="contents">Contents</h5>
1515
</ul>
1616
{% elsif page.language %}
1717
{% assign engPath = page.id | remove_first: "/" | remove_first: page.language | append: '.html' %}
18-
{% assign engPg = site.overviews | where: 'partof', page.partof | first %}
18+
{% assign engPg = site.documents | where: 'partof', page.partof | first %}
1919
<ul id="available-languages" style="display: none;">
2020
<li><a href="{{ site.baseurl }}{{ engPath }}">English</a></li>
2121
{% for l in engPg.languages %}

getting-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ If you prefer using a text editor like emacs, Vim, Atom, or Sublime Text, then
4444
the best way to compile, test, and run Scala code is using _sbt_, Scala's build
4545
tool.
4646

47-
* [Getting Started with Scala and sbt on the Command Line](getting-started-sbt-track/getting-started-with-scala-and-sbt-on-the-command-line.html)
48-
* [Testing Scala with sbt and ScalaTest on the Command Line](getting-started-sbt-track/testing-scala-with-sbt-on-the-command-line.html)
47+
* [Getting Started with Scala and sbt on the Command Line](_getting-started-sbt-track/getting-started-with-scala-and-sbt-on-the-command-line.html)
48+
* [Testing Scala with sbt and ScalaTest on the Command Line](_getting-started-sbt-track/testing-scala-with-sbt-on-the-command-line.html)
4949

5050
<!-- sbt is the easiest way to ensure that your Scala project is reproducible;
5151
you specify a Scala version, any libraries you depend on, and sbt takes care of

0 commit comments

Comments
 (0)