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:
   
![hint_boxes_and_codetabs](https://user-images.githubusercontent.com/43911210/164126829-e2cf290b-b9b7-44d4-bc73-dcb10d7125db.gif)
   
   
   
   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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to