Skip to content

Commit 0f8ef8b

Browse files
committed
fix broken code references
[deploy site]
1 parent dcfeb63 commit 0f8ef8b

File tree

8 files changed

+208
-200
lines changed

8 files changed

+208
-200
lines changed

website_and_docs/content/documentation/about/style.en.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ All code examples to be in our
162162
[example directories](https://github.com/SeleniumHQ/seleniumhq.github.io/tree/dev/examples).
163163

164164
This code can be automatically displayed in the documentation using the `gh-codeblock` shortcode.
165-
The shortcode automatically generates its own html, so set `code=false` to prevent the auto-formatting.
166-
We still need `langEqualsHeader=true` to keep the language tabs synchronized throughout the page.
165+
The shortcode automatically generates its own html, so if any tab is using this shortcode,
166+
set `code=false` in the `tabpane` to prevent the auto-formatting, and add `code=true` in any
167+
`tab` that still needs to get formatted with code.
168+
Either way, set `langEqualsHeader=true` to keep the language tabs synchronized throughout the page.
167169
Note that the `gh-codeblock` line can not be indented at all.
168170

169171
One great thing about using `gh-codeblock` is that it adds a link to the full example.
@@ -225,11 +227,11 @@ then change the Hugo syntax for the `tab`to use `%` instead of `<` and `>` with
225227
{{</* tabpane code=false langEqualsHeader=true */>}}
226228
{{%/* tab header="Java" */%}}
227229
1. Start the driver
228-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L29" */>}}
230+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L17" */>}}
229231
2. Navigate to a page
230-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L39" */>}}
232+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L18" */>}}
231233
3. Quit the driver
232-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L34" */>}}
234+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L35" */>}}
233235
{{%/* /tab */%}}
234236
< ... >
235237
{{</* /tabpane */>}}
@@ -239,11 +241,11 @@ This produces:
239241
{{< tabpane code=false langEqualsHeader=true >}}
240242
{{% tab header="Java" %}}
241243
1. Start the driver
242-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L29" >}}
244+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L17" >}}
243245
2. Navigate to a page
244-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L39" >}}
246+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L18" >}}
245247
3. Quit the driver
246-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L34" >}}
248+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L35" >}}
247249
{{% /tab %}}
248250
{{< /tabpane >}}
249251

website_and_docs/content/documentation/about/style.ja.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ All code examples to be in our
162162
[example directories](https://github.com/SeleniumHQ/seleniumhq.github.io/tree/dev/examples).
163163

164164
This code can be automatically displayed in the documentation using the `gh-codeblock` shortcode.
165-
The shortcode automatically generates its own html, so set `code=false` to prevent the auto-formatting.
166-
We still need `langEqualsHeader=true` to keep the language tabs synchronized throughout the page.
165+
The shortcode automatically generates its own html, so if any tab is using this shortcode,
166+
set `code=false` in the `tabpane` to prevent the auto-formatting, and add `code=true` in any
167+
`tab` that still needs to get formatted with code.
168+
Either way, set `langEqualsHeader=true` to keep the language tabs synchronized throughout the page.
167169
Note that the `gh-codeblock` line can not be indented at all.
168170

169171
One great thing about using `gh-codeblock` is that it adds a link to the full example.
@@ -225,11 +227,11 @@ then change the Hugo syntax for the `tab`to use `%` instead of `<` and `>` with
225227
{{</* tabpane code=false langEqualsHeader=true */>}}
226228
{{%/* tab header="Java" */%}}
227229
1. Start the driver
228-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L29" */>}}
230+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L17" */>}}
229231
2. Navigate to a page
230-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L39" */>}}
232+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L18" */>}}
231233
3. Quit the driver
232-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L34" */>}}
234+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L35" */>}}
233235
{{%/* /tab */%}}
234236
< ... >
235237
{{</* /tabpane */>}}
@@ -239,11 +241,11 @@ This produces:
239241
{{< tabpane code=false langEqualsHeader=true >}}
240242
{{% tab header="Java" %}}
241243
1. Start the driver
242-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L29" >}}
244+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L17" >}}
243245
2. Navigate to a page
244-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L39" >}}
246+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L18" >}}
245247
3. Quit the driver
246-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L34" >}}
248+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L35" >}}
247249
{{% /tab %}}
248250
{{< /tabpane >}}
249251

website_and_docs/content/documentation/about/style.pt-br.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ All code examples to be in our
162162
[example directories](https://github.com/SeleniumHQ/seleniumhq.github.io/tree/dev/examples).
163163

164164
This code can be automatically displayed in the documentation using the `gh-codeblock` shortcode.
165-
The shortcode automatically generates its own html, so set `code=false` to prevent the auto-formatting.
166-
We still need `langEqualsHeader=true` to keep the language tabs synchronized throughout the page.
165+
The shortcode automatically generates its own html, so if any tab is using this shortcode,
166+
set `code=false` in the `tabpane` to prevent the auto-formatting, and add `code=true` in any
167+
`tab` that still needs to get formatted with code.
168+
Either way, set `langEqualsHeader=true` to keep the language tabs synchronized throughout the page.
167169
Note that the `gh-codeblock` line can not be indented at all.
168170

169171
One great thing about using `gh-codeblock` is that it adds a link to the full example.
@@ -225,11 +227,11 @@ then change the Hugo syntax for the `tab`to use `%` instead of `<` and `>` with
225227
{{</* tabpane code=false */>}}
226228
{{%/* tab header="Java" */%}}
227229
1. Start the driver
228-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L29" */>}}
230+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L17" */>}}
229231
2. Navigate to a page
230-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L39" */>}}
232+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L18" */>}}
231233
3. Quit the driver
232-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L34" */>}}
234+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L35" */>}}
233235
{{%/* /tab */%}}
234236
< ... >
235237
{{</* /tabpane */>}}
@@ -239,11 +241,11 @@ This produces:
239241
{{< tabpane code=false langEqualsHeader=true >}}
240242
{{% tab header="Java" %}}
241243
1. Start the driver
242-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L29" >}}
244+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L17" >}}
243245
2. Navigate to a page
244-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L39" >}}
246+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L18" >}}
245247
3. Quit the driver
246-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L34" >}}
248+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L35" >}}
247249
{{% /tab %}}
248250
{{< /tabpane >}}
249251

website_and_docs/content/documentation/about/style.zh-cn.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,10 @@ All code examples to be in our
162162
[example directories](https://github.com/SeleniumHQ/seleniumhq.github.io/tree/dev/examples).
163163

164164
This code can be automatically displayed in the documentation using the `gh-codeblock` shortcode.
165-
The shortcode automatically generates its own html, so set `code=false` to prevent the auto-formatting.
166-
We still need `langEqualsHeader=true` to keep the language tabs synchronized throughout the page.
165+
The shortcode automatically generates its own html, so if any tab is using this shortcode,
166+
set `code=false` in the `tabpane` to prevent the auto-formatting, and add `code=true` in any
167+
`tab` that still needs to get formatted with code.
168+
Either way, set `langEqualsHeader=true` to keep the language tabs synchronized throughout the page.
167169
Note that the `gh-codeblock` line can not be indented at all.
168170

169171
One great thing about using `gh-codeblock` is that it adds a link to the full example.
@@ -225,11 +227,11 @@ then change the Hugo syntax for the `tab`to use `%` instead of `<` and `>` with
225227
{{</* tabpane code=false */>}}
226228
{{%/* tab header="Java" */%}}
227229
1. Start the driver
228-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L29" */>}}
230+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L17" */>}}
229231
2. Navigate to a page
230-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L39" */>}}
232+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L18" */>}}
231233
3. Quit the driver
232-
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L34" */>}}
234+
{{</* gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L35" */>}}
233235
{{%/* /tab */%}}
234236
< ... >
235237
{{</* /tabpane */>}}
@@ -239,11 +241,11 @@ This produces:
239241
{{< tabpane code=false langEqualsHeader=true >}}
240242
{{% tab header="Java" %}}
241243
1. Start the driver
242-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L29" >}}
244+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L17" >}}
243245
2. Navigate to a page
244-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L39" >}}
246+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L18" >}}
245247
3. Quit the driver
246-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L34" >}}
248+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/FirstScriptTest.java#L35" >}}
247249
{{% /tab %}}
248250
{{< /tabpane >}}
249251

0 commit comments

Comments
 (0)