Skip to content

Commit c4249e0

Browse files
committedOct 6, 2024
Reformat code blocks. Show code on site rather than format text.
On page https://www.selenium.dev/documentation/webdriver/drivers/ in section 'Quitting Sessions', the Java code example shows text: ``` {< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >} ``` Instead of this, we want to show the code from that file. This commit adds an extra layer of `{}` in order to show the code. The panels for other languages that work (i.e. Python, Ruby) have this extra layer of `{}`.
1 parent 376bf51 commit c4249e0

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed
 

‎website_and_docs/content/documentation/webdriver/drivers/_index.en.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,21 @@ and it is recommended to always use `quit` to end the session
6161

6262
{{< tabpane text=true >}}
6363
{{< tab header="Java" >}}
64-
{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}
64+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}}
6565
{{< /tab >}}
6666
{{% tab header="Python" %}}
6767
{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}}
6868
{{% /tab %}}
6969
{{< tab header="CSharp" >}}
70-
{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}
70+
{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}}
7171
{{< /tab >}}
7272
{{< tab header="Ruby" >}}
7373
{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}}
7474
{{< /tab >}}
7575
{{< tab header="JavaScript" >}}
76-
{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}
76+
{{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}}
7777
{{< /tab >}}
7878
{{< tab header="Kotlin" >}}
79-
{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}
79+
{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}}
8080
{{< /tab >}}
8181
{{< /tabpane >}}

‎website_and_docs/content/documentation/webdriver/drivers/_index.ja.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,21 @@ weight: 3
6060

6161
{{< tabpane text=true >}}
6262
{{< tab header="Java" >}}
63-
{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}
63+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}}
6464
{{< /tab >}}
6565
{{% tab header="Python" %}}
6666
{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}}
6767
{{% /tab %}}
6868
{{< tab header="CSharp" >}}
69-
{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}
69+
{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}}
7070
{{< /tab >}}
7171
{{< tab header="Ruby" >}}
7272
{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}}
7373
{{< /tab >}}
7474
{{< tab header="JavaScript" >}}
75-
{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}
75+
{{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}}
7676
{{< /tab >}}
7777
{{< tab header="Kotlin" >}}
78-
{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}
78+
{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}}
7979
{{< /tab >}}
8080
{{< /tabpane >}}

‎website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,21 @@ and it is recommended to always use `quit` to end the session
6161

6262
{{< tabpane text=true >}}
6363
{{< tab header="Java" >}}
64-
{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}
64+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}}
6565
{{< /tab >}}
6666
{{% tab header="Python" %}}
6767
{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}}
6868
{{% /tab %}}
6969
{{< tab header="CSharp" >}}
70-
{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}
70+
{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}}
7171
{{< /tab >}}
7272
{{< tab header="Ruby" >}}
7373
{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}}
7474
{{< /tab >}}
7575
{{< tab header="JavaScript" >}}
76-
{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}
76+
{{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}}
7777
{{< /tab >}}
7878
{{< tab header="Kotlin" >}}
79-
{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}
79+
{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}}
8080
{{< /tab >}}
8181
{{< /tabpane >}}

‎website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,21 @@ weight: 3
6161

6262
{{< tabpane text=true >}}
6363
{{< tab header="Java" >}}
64-
{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}
64+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScript.java#L29" >}}
6565
{{< /tab >}}
6666
{{% tab header="Python" %}}
6767
{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L13" >}}
6868
{{% /tab %}}
6969
{{< tab header="CSharp" >}}
70-
{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}
70+
{{< gh-codeblock path="examples/dotnet/HelloSelenium.cs#L13" >}}
7171
{{< /tab >}}
7272
{{< tab header="Ruby" >}}
7373
{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L16" >}}
7474
{{< /tab >}}
7575
{{< tab header="JavaScript" >}}
76-
{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}
76+
{{< gh-codeblock path="examples/javascript/test/getting_started/firstScript.spec.js#L28" >}}
7777
{{< /tab >}}
7878
{{< tab header="Kotlin" >}}
79-
{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}
79+
{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/getting_started/FirstScriptTest.kt#L35" >}}
8080
{{< /tab >}}
8181
{{< /tabpane >}}

0 commit comments

Comments
 (0)