Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions docs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,8 @@ home = [ "HTML", "RSS", "SearchIndex" ]
{ name = "0.12.1", pre = "relative", url = "../0.12.1", weight = 1000 }
]
topnav = [
{ name = "Docs", url = "/docs/latest", weight = 100 },
{ name = "Releases", pre = "relative", url = "../../releases", weight = 600 },
{ name = "Spark", url = "/docs/latest/getting-started", weight = 200 },
{ name = "Flink", url = "/docs/latest/flink", weight = 300 },
{ name = "Trino", url = "https://trino.io/docs/current/connector/iceberg.html", weight = 400 },
{ name = "Presto", url = "https://prestodb.io/docs/current/connector/iceberg.html" , weight = 500 },
{ name = "Quickstart", url = "/spark-quickstart", weight = 100 },
{ name = "Docs", url = "/docs/latest", weight = 200 },
{ name = "Blogs", pre = "relative", url = "../../blogs", weight = 998 },
{ name = "Talks", pre = "relative", url = "../../talks", weight = 999 },
{ name = "Roadmap", pre = "relative", url = "../../roadmap", weight = 997 },
Expand Down
4 changes: 2 additions & 2 deletions iceberg-theme/layouts/partials/body.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
{{ partial "header.html" . }}
<body dir="{{ .Site.Language.LanguageDirection | default " ltr" }}">
<section>
<div class="grid-container {{ if and (not .Params.disableSidebar) (not .Params.disableToc) }}leftnav-and-toc{{ else if not .Params.disableSidebar }}left-nav-only{{ else if not .Params.disableToc }}toc-only{{ end }}">
<div class="grid-container {{ if and (not .Params.disableSidebar) (not .Params.disableToc) }}leftnav-and-toc{{ else if not .Params.disableSidebar }}left-nav-only{{ else if not .Params.disableToc }}toc-only{{ else }}content-only{{ end }}">
{{ if not .Params.disableSidebar }}
{{ partial "sidebar.html" . }}
{{ end }}
<div id="content" class="markdown-body">
<div class="{{ if not .Params.disableToc }}margin-for-toc{{ end }}">
<div class="{{ if not .Params.disableToc }}margin-for-toc{{ else }}margin-without-toc{{ end }}">
{{- .Content -}}
</div>
{{ if not .Params.disableToc }}
Expand Down
76 changes: 76 additions & 0 deletions iceberg-theme/static/css/iceberg-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,15 @@ h4:hover a { visibility: visible}
width: 100%;
}

/* Cards at the top of each quickstart page */
.quickstart-container {
display: flex;
flex-wrap: wrap;
width: 80vw;
grid-template-columns: 1fr 1fr 1fr;
grid-gap: 1rem;
}

.content-only {
grid-template-columns: auto;
}
Expand All @@ -263,6 +272,10 @@ h4:hover a { visibility: visible}
margin-right: 40%;
}

.margin-without-toc {
margin-right: 20%;
}

#toc {
position: fixed;
right: 0;
Expand Down Expand Up @@ -637,4 +650,67 @@ div#full ul.sub-menu {

.versions-dropdown:hover .versions-dropdown-content {
display: block;
}

.quickstart-card {
color: #fff;
width:300px;
position: relative;
-webkit-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.3);
-o-box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.3);
box-shadow: 0px 5px 5px 0px rgba(0,0,0,0.3);
background-image: linear-gradient(to bottom right, #2879be, #57A7D8);
}

.quickstart-card .quickstart-card-content {
padding: 30px;
height: 250px;
}

.quickstart-card .quickstart-card-title {
font-size: 25px;
font-family: 'Open Sans', sans-serif;
}

.quickstart-card .quickstart-card-text {
line-height: 1.6;
}

.quickstart-card .quickstart-card-link {
padding: 25px;
width: -webkit-fill-available;
border-top:1px solid #82c1bb;
}

.quickstart-card-link a {
text-decoration: none;
position: relative;
padding: 10px 0px;
color: #fff;
}

.quickstart-card .quickstart-card-link a:after {
top: 30px;
content: "";
display: block;
height: 2px;
left: 50%;
position: absolute;
width: 0;
background:#fff;

-webkit-transition: width 0.3s ease 0s, left 0.3s ease 0s;
-moz-transition: width 0.3s ease 0s, left 0.3s ease 0s;
-o-transition: width 0.3s ease 0s, left 0.3s ease 0s;
transition: width 0.3s ease 0s, left 0.3s ease 0s;
}

.quickstart-card .quickstart-card-link a:hover:after {
width: 100%;
left: 0;
}

.quickstart-card .quickstart-card-link a:after {
background:#fff;
}
10 changes: 5 additions & 5 deletions landing-page/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ home = [ "HTML", "RSS", "SearchIndex" ]
{ name = "0.12.1", url = "/docs/0.12.1", weight = 1000 }
]
topnav = [
{ name = "Docs", url = "/docs/latest", weight = 100 },
{ name = "Quickstart", url = "/spark-quickstart", weight = 100 },
{ name = "Docs", url = "/docs/latest", weight = 200 },
{ name = "Releases", url = "/releases", weight = 600 },
{ name = "Spark", url = "/docs/latest/getting-started", weight = 200 },
{ name = "Flink", url = "/docs/latest/flink", weight = 300 },
{ name = "Trino", identifier = "_trino", url = "https://trino.io/docs/current/connector/iceberg.html", weight = 400 },
{ name = "Presto", identifier = "_presto", url = "https://prestodb.io/docs/current/connector/iceberg.html", weight = 500 },
{ name = "Blogs", url = "/blogs", weight = 998 },
{ name = "Talks", url = "/talks", weight = 999 },
{ name = "Roadmap", url = "/roadmap", weight = 997 },
Expand All @@ -63,6 +60,9 @@ home = [ "HTML", "RSS", "SearchIndex" ]
{ name = "Donate", identifier = "_donate", parent = "ASF", url = "https://www.apache.org/foundation/sponsorship.html" },
{ name = "Events", identifier = "_events", parent = "ASF", url = "https://www.apache.org/events/current-event.html" },
]
quickstarts = [
{ name = "Spark and Iceberg Quickstart", weight = 100, url = "spark-quickstart", post = "This quickstart will get you up and running with an Iceberg and Spark environment, including sample notebooks." }
]

[markup.goldmark.renderer]
unsafe= true
Loading