You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/04/20 01:09:42 UTC
[GitHub] [iceberg-docs] samredai opened a new pull request, #73: Add hint boxes and codetabs to landing-page
samredai opened a new pull request, #73:
URL: https://github.com/apache/iceberg-docs/pull/73
This adds some shortcodes to the landing-page theme that allows us to include hint-boxes and codetabs (code blocks in a tabbed container for multiple languages). Here's an example of what this looks like:

Here's the code directly in the markdown file that utilized the shortcodes to create what's seen above.
~~~
# Example
## Hint Boxes
{{< hint info >}}
This is an info hint box
{{< /hint >}}
{{< hint success >}}
This is a success hint box
{{< /hint >}}
{{< hint warning >}}
This is a warning hint box
{{< /hint >}}
{{< hint error >}}
This is an error hint box
{{< /hint >}}
## Codetabs
{{% codetabs %}}
{{% addtab "Python" %}}
{{% addtab "Java" %}}
{{% addtab "Scala" %}}
{{% tabcontent "Python" %}}
```py
print("Hello, World")
```
{{% /tabcontent %}}
{{% tabcontent "Java" %}}
```java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World");
}
}
```
{{% /tabcontent %}}
{{% tabcontent "Scala" %}}
```scala
object HelloWorld extends App {
println("Hello, World")
}
```
{{% /tabcontent %}}
{{% /codetabs %}}
~~~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg-docs] rdblue commented on pull request #73: Add hint boxes and codetabs to landing-page
Posted by GitBox <gi...@apache.org>.
rdblue commented on PR #73:
URL: https://github.com/apache/iceberg-docs/pull/73#issuecomment-1130156149
Looks great. Thanks, @samredai!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg-docs] rdblue merged pull request #73: Add hint boxes and codetabs to landing-page
Posted by GitBox <gi...@apache.org>.
rdblue merged PR #73:
URL: https://github.com/apache/iceberg-docs/pull/73
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org