Skip to content

Commit 33d6ba5

Browse files
authored
Merge branch 'main' into contprof-java
2 parents 2de3bdc + 8ffbe82 commit 33d6ba5

File tree

14 files changed

+115
-70
lines changed

14 files changed

+115
-70
lines changed

sites/upsun/layouts/shortcodes/home.html

+4-7
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,17 @@ <h1>{{ .Site.Title }}</h1>
3535

3636
.start-cta {
3737
color: white !important;
38-
/* color: #191C1E !important; */
3938
text-decoration: none !important;
4039
font-size: 16px !important;
4140
font-weight: 700 !important;
4241
letter-spacing: 0.48px !important;
4342
background: #6046FF !important;
44-
/* background: #FFBDBB!important; */
4543
padding: 10px 16px !important;
46-
margin-right: 1rem;
47-
border-radius: 0px !important;
4844
border-radius: 80px !important;
45+
display: inline-block !important;
4946
}
5047
.start-cta:hover {
5148
background: #4D38CC !important;
52-
/* background: #FF9F9F !important; */
53-
/* color: #191C1E !important; */
5449
color: white !important;
5550
}
5651

@@ -62,10 +57,12 @@ <h1>{{ .Site.Title }}</h1>
6257
letter-spacing: 0.48px !important;
6358
background: white !important;
6459
padding: 10px 16px !important;
60+
margin: 0.5rem !important;
6561
border-radius: 80px !important;
66-
/* border-radius: 0px !important; */
6762
border: 2px solid #191C1E;
6863
border-color: #191C1E !important;
64+
display: inline-block !important;
65+
white-space: nowrap !important;
6966
}
7067
.info-cta:hover {
7168
background: #191C1E !important;

sites/upsun/src/get-started/stacks/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Frameworks
2+
title: How to deploy
33
weight: -80
44
layout: single
55
# aliases:

sites/upsun/static/scripts/xss/src/containers/Search.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ const Search = ({ fullPage }) => {
131131
<input
132132
id={`searchwicon-${fullPage ? 'fullpage' : 'header'}`}
133133
value={query}
134-
placeholder="What are you looking for?"
134+
placeholder="Can we help you find something?"
135135
onChange={handleInputChange}
136-
className={`bg-no-repeat bg-[length:15px_15px] bg-left-4 h-16 w-full pl-12 text-slate border-none focus-visible:outline-none ${fullPage ? 'bg-grey' : ''}`}
136+
className={`bg-no-repeat bg-[length:15px_15px] bg-left-4 h-16 w-full pl-12 text-slate rounded border-none focus-visible:outline-none ${fullPage ? 'bg-grey' : ''}`}
137137
style={{ 'background-image': 'url(/images/svg/search-solid.svg)' }}
138138
autoComplete="off"
139139
/>

themes/psh-docs/layouts/_default/_markup/render-codeblock.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
{{ $configFiles := .Page.Site.Params.vendor.config.files }}
1111
{{ $configDir := .Page.Site.Params.vendor.config.dir }}
1212

13+
<div class="relative">
1314
{{ with $location }}
1415
{{ $fullFile := . }}
1516
{{ $prefixLen := len $prefixdir }}
@@ -18,15 +19,21 @@
1819
{{ else if gt $prefixLen 0 }}
1920
{{ $fullFile = delimit ( slice $prefixdir . ) "/" }}
2021
{{ end }}
21-
<div class="bg-stone px-4 pt-2 rounded-t-lg inline-block text-base pb-1">{{ $fullFile }}</div>
22+
<div class="bg-stone px-4 pt-2 rounded-t-lg inline-block text-base relative">
23+
<span class="relative z-10">{{ $fullFile }}</span>
24+
<div class="absolute bottom-[-0.5rem] left-0 w-full h-4 bg-stone"></div>
25+
</div>
2226
{{ end }}
2327
{{ with $configFile }}
2428
{{ $fullFile := index $configFiles . }}
2529
{{ $prefixLen := len $prefixdir }}
2630
{{ if gt $prefixLen 0 }}
2731
{{ $fullFile = delimit ( slice $prefixdir (index $configFiles .) ) "/" }}
2832
{{ end }}
29-
<div class="bg-stone px-4 pt-2 rounded-t-lg inline-block text-base pb-1">{{ $fullFile }}</div>
33+
<div class="bg-stone px-4 pt-2 rounded-t-lg inline-block text-base relative">
34+
<span class="relative z-10">{{ $fullFile }}</span>
35+
<div class="absolute bottom-[-0.5rem] left-0 w-full h-4 bg-stone"></div>
36+
</div>
3037
{{ end }}
3138
{{ if transform.CanHighlight $lang }}
3239
{{ $content := .Inner | safeHTML }}
@@ -45,5 +52,6 @@
4552
{{ else }}
4653
<pre><code>{{ .Inner }}</code></pre>
4754
{{ end }}
55+
</div>
4856

4957
{{ end }}

themes/psh-docs/layouts/_default/baseof.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{{ partial "sidebar/sidebar" . }}
4040

4141
<!-- Main content block -->
42-
<main class="md:col-span-8 xl:max-w-[120ch] xl:text-lg px-4 md:px-8 pt-4 pb-12 print:border-none print:max-w-full xl:print:max-w-full print:text-sm xl:print:text-sm">
42+
<main class="md:col-span-8 xl:max-w-[120ch] xl:text-lg px-4 md:pr-0 md:pl-8 pt-4 pb-12 print:border-none print:max-w-full xl:print:max-w-full print:text-sm xl:print:text-sm">
4343

4444
{{- block "main" . }}{{- end }}
4545
</main>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<!-- Edit page button link -->
2-
<div class="mb-6">
2+
<div class="hidden md:block mb-6 mr-2 text-right">
33
{{ $editLocation := printf "%sedit/main/%s/src/%s" site.Params.repo site.Params.folder .File.Path }}
4-
<a href="{{ $editLocation }}" rel="noopener" class="print:hidden text-sm {{ partial "pink-button-styles" }}">
5-
Edit page <img class="inline" aria-hidden="true" alt="" src="/images/icons/chevrons.svg" />
4+
<a href="{{ $editLocation }}" rel="noopener" target="_blank" class="print:hidden font-semibold bg-gray-400 text-white hover:bg-ebony focus:bg-ebony pl-4 pr-3 py-2 font-['Space_Grotesk'] text-xs rounded-full inline-flex items-center gap-2">
5+
6+
Edit page<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="inline">
7+
<path d="M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"/>
8+
<path d="m15 5 4 4"/>
9+
</svg>
610
</a>
711
</div>

themes/psh-docs/layouts/partials/feedback/form.html

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
<div class="p-4" x-data="FeedbackForm()">
22
<h3 class="pt-4 pb-2 font-light">Is this page helpful?</h3>
33
<div class="text-sm">
4-
<button x-show="!feedbackSubmitted" @click="handleClick" title="Yes" class="py-4 px-4 hover:bg-skye-light text-xl">
5-
👍️
4+
<button x-show="!feedbackSubmitted" @click="handleClick" title="Yes" class="py-2 px-4 hover:bg-skye-light text-xl">
5+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
6+
<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"/>
7+
</svg>
68
</button>
7-
<button x-show="!feedbackSubmitted" @click="handleClick" title="No" class="py-4 px-4 hover:bg-skye-light text-xl">
8-
👎️
9+
<button x-show="!feedbackSubmitted" @click="handleClick" title="No" class="py-2 px-4 hover:bg-skye-light text-xl">
10+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
11+
<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"/>
12+
</svg>
913
</button>
1014
<div
1115
x-show="feedbackSubmitted && feedback === 'positive'"
@@ -48,7 +52,9 @@ <h3 class="pt-4 pb-2 font-light">Is this page helpful?</h3>
4852
"&title=%F0%9F%90%9B%20Issue%20on%20the%20page%20" +
4953
document.title.replace({{ printf " · %s Documentation" .Site.Params.vendor.name }}, ""),
5054
handleClick(event) {
51-
const title = event.target.getAttribute("title");
55+
// Get the closest button element from the click target
56+
const button = event.target.closest('button');
57+
const title = button ? button.getAttribute("title") : null;
5258

5359
if (title === "Yes") this.feedback = "positive";
5460
else if (title === "No") this.feedback = "negative";

themes/psh-docs/layouts/partials/head/head.html

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
{{ partial "head/opengraph" . }}
2727
{{ partial "head/css" . }}
2828
{{ partial "scripts/global" . }}
29+
{{ partial "head/llms" . }}
2930

3031
{{ if .Param "math" }}
3132
{{ partialCached "head/math.html" . }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{ if ( eq .Site.Params.vendor.config.version 2 ) }}
2+
<!-- LLMS.txt -->
3+
<meta name="llms.txt" content="{{ .Site.Params.vendor.urls.docs }}/llms.txt">
4+
<meta name="llms-full.txt" content="{{ .Site.Params.vendor.urls.docs }}/llms-full.txt">
5+
{{ end }}

themes/psh-docs/layouts/partials/header/actions.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<!-- Links to log in or start a trial -->
22

33
{{ if eq ( index .Site.Params.theme "use_vendor") true }}
4-
<div class="hidden md:flex basis-3/12 items-center justify-around">
4+
<div class="hidden md:flex basis-3/12 items-center justify-end">
55
{{ else }}
6-
<div class="hidden md:flex basis-1/6 items-center justify-around">
6+
<div class="hidden md:flex basis-1/6 items-center justify-end">
77
{{ end }}
88
{{ $currentPage := printf "%s%s" ( .Site.BaseURL ) ( .Page.RelPermalink ) }}
99
{{ with .Site.Params.headerActions }}
1010
{{ with .headerActionSecondary }}
11-
<a class="font-semibold secondary-action text-sm xl:text-base px-4 py-2 rounded hidden lg:inline xl:px-8 hover:bg-skye-light focus:bg-skye-light hover:text-slate focus:text-slate"
11+
<a class="font-semibold secondary-action text-sm xl:text-base px-4 py-2 mx-2 rounded hidden lg:inline xl:px-8 hover:bg-skye-light focus:bg-skye-light hover:text-slate focus:text-slate"
1212
onclick="dataLayer.push({'event': 'click_login', 'click_name': 'Login', 'link_url': '{{ $currentPage }}'});"
1313
href="{{ .destination }}" rel="noopener">{{ .linkText }}</a>
1414
{{ end }}

themes/psh-docs/layouts/partials/note.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{{- $bg = "skye-light" -}}
1414
{{- end -}}
1515
{{- end -}}
16-
<div class="bg-{{ $bg }} p-4 mb-4 [&>p:last-child]:mb-0 [&>h3]:mt-0" role="alert" {{if eq .theme "info-sticky"}}style="position: sticky; top: 6rem;"{{ end }}>
16+
<div class="bg-{{ $bg }} p-4 mb-4 [&>p:last-child]:mb-0 [&>h3]:mt-0 rounded-lg" role="alert" {{if eq .theme "info-sticky"}}style="position: sticky; top: 6rem;"{{ end }}>
1717
{{- if ne $title "none" -}}
1818
<h3 class="font-bold text-base">{{ $title }}</h3>
1919
{{- end -}}

themes/psh-docs/layouts/partials/page-content.html

+56-32
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
<!-- Page banners -->
2-
{{ if ( eq (string .context.Site.Params.vendor.config.version) "1" )}}
3-
{{ partial "banners/banner.html" .context }}
4-
{{ else if and ( ne (string .context.Page.Params.banner.type) "tiered-feature" ) ( ne (string .context.Page.Params.banner.type) "observability-suite" )}}
5-
{{ partial "banners/banner.html" .context }}
6-
{{ end }}
71

8-
<!-- Tier-gated features -->
9-
{{ if eq (string .Site.Params.vendor.config.version) "1"}}
10-
{{ partial "tiered-features/banner.html" .context }}
11-
{{ end }}
12-
13-
<!-- If the feature is part of the Observability Suite -->
14-
{{ if eq (string .Site.Params.vendor.config.version) "1"}}
15-
{{ partial "observability-suite/banner.html" .context }}
16-
{{ end }}
172

183
<!-- If the feature is in beta -->
194
{{ partial "beta-flag/banner.html" .context }}
205

21-
{{ if ne .context.Params.editPage false }}
22-
{{ partial "editpagebutton.html" .context }}
23-
{{ end }}
6+
<div class="flex justify-end mr-4">
7+
<!-- Add a Button to open the Markdown version of this page (Upsun only) -->
8+
{{ if and ( eq .context.Site.Params.vendor.config.version 2 ) ( ne .context.Page.RelPermalink "/" ) }}
9+
<div class="hidden md:block mb-6 mr-2 text-right">
10+
<a href="{{ if eq .context.Page.RelPermalink "/" }}/index.md{{ else }}{{ .context.Page.RelPermalink | replaceRE ".html" ".md" }}{{ end }}"
11+
class="print:hidden font-semibold bg-skye text-white hover:bg-skye-dark focus:bg-skye-dark px-4 py-2 font-['Space_Grotesk'] text-xs rounded-full inline-flex items-center gap-2"
12+
title="Open this page in a markdown format. This format is easier for AI and other tools to read."
13+
target="_blank">
14+
View in markdown
15+
</a>
16+
</div>
17+
{{ end }}
18+
19+
<!-- Edit page button link -->
20+
{{ if ne .context.Params.editPage false }}
21+
{{ partial "editpagebutton.html" .context }}
22+
{{ end }}
23+
</div>
2424

2525
<!-- Page title -->
2626
{{ if ne .context.Params.showTitle false }}
2727
<h1 class="font-black text-2xl mb-8 xl:text-4xl">{{ .context.Title | .context.RenderString }}</h1>
2828
{{ end }}
2929

30-
<div class="grid md:grid-cols-80-20 md:gap-4 print:block">
30+
<div class="grid md:grid-cols-[minmax(0,1fr),270px] md:gap-4 md:pr-4 print:block">
3131

32-
<div class="print:hidden max-w-[92vw] md:max-w-none md:order-2 md:top-24 md:sticky md:max-h-fullv md:overflow-y-auto border-t border-stone">
32+
<div class="print:hidden max-w-[92vw] md:max-w-none md:order-2 md:top-24 md:sticky md:h-[calc(100vh-6rem)] md:overflow-y-auto border-t border-stone">
3333
<!-- Table of contents -->
3434
{{ if and (ne .context.Params.toc false) (ne .context.TableOfContents "<nav id=\"TableOfContents\"></nav>") }}
35-
<div class="border border-stone border-t-0 px-6 pt-1 pb-4 mb-8 md:mb-0 text-sm [&_a]:text-skye-dark hover:[&_a]:underline focus:[&_a]:underline [&_ul_ul]:pl-4">
35+
<div class="border border-stone border-t-0 px-6 pt-1 pb-4 mb-8 md:mb-0 text-sm [&_a]:text-skye-dark hover:[&_a]:underline focus:[&_a]:underline [&_ul_ul]:pl-4 [&_nav_ul>li]:mb-2 [&_nav_ul_ul>li]:mt-2">
3636

3737
{{ if not .context.Page.IsHome }}
3838
<h3 class="pt-4 pb-2 font-light text-base text-slate"><a href="/">Back to home</a></h3>
@@ -57,7 +57,7 @@ <h3 class="pt-4 pb-2 font-light text-base text-slate">On this page</h3>
5757
{{ end }}
5858

5959
<div
60-
class="bg-gradient-to-b from-[#FF4A11] from-0% via-[#ED49F0] via-45% to-[#DDF933] to-100% rounded-2xl p-[1px] my-1">
60+
class="bg-gradient-to-b from-[#FF4A11] from-0% via-[#ED49F0] via-45% to-[#DDF933] to-100% rounded-2xl p-[1px] mt-1 mb-4">
6161
<div class="rounded-2xl p-5 bg-[#f9f9f9] flex-col justify-start items-start gap-4 inline-flex">
6262
{{ $recruitment := .context.Site.Params.vendor.recruit }}
6363
{{ $vendorName := .context.Site.Params.vendor.name }}
@@ -89,39 +89,63 @@ <h3 class="pt-4 pb-2 font-light text-base text-slate">On this page</h3>
8989
<div class="cta-body">
9090
{{ index $recruitment "description"}}
9191
</div>
92-
<div class="cta-terms">
93-
{{ index $recruitment "fine" }}
94-
</div>
92+
9593
</div>
9694
</div>
9795
<a href="{{ index $recruitment "link" }}" class="px-6 py-2 bg-[#6046FF] hover:!bg-[#4D38CC] rounded-3xl text-white text-center text-sm font-semibold">
9896
{{ index $recruitment "cta" }}
9997
</a>
98+
<div class="cta-terms">
99+
{{ index $recruitment "fine" }}
100+
</div>
100101
</div>
101102
</div>
102103
{{ end }}
103104

104105
</div>
105106

106-
<div class="prose xl:prose-lg max-w-[96vw] md:max-w-none prose-code:!mb-0 prose-h2:text-xl prose-h3:text-xl prose-h4:text-lg">
107+
<div class="prose xl:prose-lg max-w-[96vw] md:max-w-full w-full prose-code:!mb-0 prose-h2:text-xl prose-h3:text-xl prose-h4:text-lg">
107108
<!-- Add the stack picker for Get started section -->
108109
{{ if and ( eq .context.Section "get-started" ) ( ne .context.Title "Introduction" ) }}
109110
{{ if eq $.Site.Params.vendor.name "Platform.sh" }}
110111
{{ partial "get-started/stack-picker" }}
111112
{{ end }}
112113
{{ end }}
113114

115+
<!-- Page banners -->
116+
{{ if ( eq (string .context.Site.Params.vendor.config.version) "1" )}}
117+
{{ partial "banners/banner.html" .context }}
118+
{{ else if and ( ne (string .context.Page.Params.banner.type) "tiered-feature" ) ( ne (string .context.Page.Params.banner.type) "observability-suite" )}}
119+
{{ partial "banners/banner.html" .context }}
120+
{{ end }}
121+
122+
<!-- Tier-gated features -->
123+
{{ if eq (string .Site.Params.vendor.config.version) "1"}}
124+
{{ partial "tiered-features/banner.html" .context }}
125+
{{ end }}
126+
127+
<!-- If the feature is part of the Observability Suite -->
128+
{{ if eq (string .Site.Params.vendor.config.version) "1"}}
129+
{{ partial "observability-suite/banner.html" .context }}
130+
{{ end }}
131+
114132
<!-- Page content, anchorized -->
115133
{{ partial "headline-hash.html" .context.Content }}
116134

117135
<!-- If the page is a list page, add section cards -->
118136
{{ if .isList }}
119-
{{ range .context.Pages }}
120-
<button onclick="location.href = '{{ .RelPermalink }}';" class="block text-left mb-7 p-8 text-primary-darker border-l-4 border-skye-dark hover:no-underline bg-stone hover:bg-skye-dark hover:text-white focus:bg-skye-dark focus:text-white hover:cursor-pointer [&:hover_a]:text-snow [&:focus_a]:text-snow [&:hover_a]:font-extrabold [&:focus_a]:font-extrabold">
121-
<span class="block font-bold mb-4">{{ if isset .Params "sidebartitle" }}{{ .Params.sidebarTitle | .RenderString }}{{ else }}{{ .Title | .RenderString }}{{ end }}</span>
122-
<span class="block">{{ .Params.description | .RenderString }}</span>
123-
</button>
124-
{{ end }}
137+
<div class="space-y-4 not-prose">
138+
{{ range .context.Pages }}
139+
<a href="{{ .RelPermalink }}" class="block p-[2px] bg-stone hover:bg-skye-dark rounded-xl transition-all">
140+
<div class="p-8 bg-white rounded-xl h-full hover:shadow-lg">
141+
<h3 class="text-xl font-medium mb-2 text-gray-900">
142+
{{ if isset .Params "sidebartitle" }}{{ .Params.sidebarTitle | .RenderString }}{{ else }}{{ .Title | .RenderString }}{{ end }}
143+
</h3>
144+
<p class="text-gray-600 m-0">{{ .Params.description | .RenderString }}</p>
145+
</div>
146+
</a>
147+
{{ end }}
148+
</div>
125149
{{ end }}
126150

127151
{{ if .context.Params.related }}

themes/psh-docs/layouts/partials/sidebar/nav.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{{ if $isHome }}
3030
{{ $inCurrentSection = false }}
3131
{{ end }}
32-
<div x-data="{ expanded: {{ $inCurrentSection }} }">
32+
<div x-data="{ expanded: {{ or $inCurrentSection (eq .section "home") }} }">
3333
<h3 class="font-semibold">
3434
<button class="bg-no-repeat bg-right-2 w-[95%] py-4 pl-2 pr-6 my-2 text-left bg-grey" :style="expanded ? 'background-image: url(/images/icons/minus.svg);' : 'background-image: url(/images/icons/add.svg);'" @click="expanded = ! expanded" aria-controls="section-{{ .section }}" aria-expanded="{{ $inCurrentSection }}">
3535
{{ .title }}

0 commit comments

Comments
 (0)