diff --git a/landing-page/config.toml b/landing-page/config.toml index 0c96f7e0a..acc658f23 100644 --- a/landing-page/config.toml +++ b/landing-page/config.toml @@ -19,3 +19,6 @@ title = "Apache Iceberg" title = "slack" icon = "slack" url = "https://join.slack.com/t/apache-iceberg/shared_invite/zt-tlv0zjz6-jGJEkHfb1~heMCJA3Uycrg" + +[markup.goldmark.renderer] +unsafe= true \ No newline at end of file diff --git a/landing-page/layouts/shortcodes/addtab.html b/landing-page/layouts/shortcodes/addtab.html new file mode 100644 index 000000000..00422f2ff --- /dev/null +++ b/landing-page/layouts/shortcodes/addtab.html @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/landing-page/layouts/shortcodes/codetabs.html b/landing-page/layouts/shortcodes/codetabs.html new file mode 100644 index 000000000..96d510970 --- /dev/null +++ b/landing-page/layouts/shortcodes/codetabs.html @@ -0,0 +1,91 @@ + +
{{ .Inner }}
\ No newline at end of file diff --git a/landing-page/layouts/shortcodes/hint.html b/landing-page/layouts/shortcodes/hint.html new file mode 100644 index 000000000..496f67775 --- /dev/null +++ b/landing-page/layouts/shortcodes/hint.html @@ -0,0 +1,3 @@ +
+ {{ .Inner | .Page.RenderString }} +
\ No newline at end of file diff --git a/landing-page/layouts/shortcodes/tabcontent.html b/landing-page/layouts/shortcodes/tabcontent.html new file mode 100644 index 000000000..b1b3c6c01 --- /dev/null +++ b/landing-page/layouts/shortcodes/tabcontent.html @@ -0,0 +1,3 @@ +
+ {{ .Inner }} +
\ No newline at end of file diff --git a/landing-page/static/css/landing-page.css b/landing-page/static/css/landing-page.css index fa8bfcc4c..8f1114beb 100644 --- a/landing-page/static/css/landing-page.css +++ b/landing-page/static/css/landing-page.css @@ -265,4 +265,27 @@ h4:hover a { visibility: visible} @media screen and (max-width: 1280px) { #toc { display: none; } /* Hide the TOC if the page is less than 1280px */ - } \ No newline at end of file + } + +/* Style for the hint shortcode */ +.info, .success, .warning, .error { + margin: 10px 0px; + padding:12px; + +} +.info { + color: #00529B; + background-color: #BDE5F8; +} +.success { + color: #4F8A10; + background-color: #DFF2BF; +} +.warning { + color: #9F6000; + background-color: #FEEFB3; +} +.error { + color: #D8000C; + background-color: #FFD2D2; +}