Skip to content

Commit 539b4c4

Browse files
committed
Merge branch 'main' into mainframe
2 parents a218e11 + 0226a4d commit 539b4c4

File tree

7 files changed

+51
-11
lines changed

7 files changed

+51
-11
lines changed

.github/workflows/build-push.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: build preview
22

33
on:
4-
release:
5-
types:
6-
- published
74
pull_request:
85
branches:
96
- "*"

.github/workflows/release-build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build preview on documentation repo upon release publish
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
env:
9+
OWNER: nginx
10+
REPO: documentation
11+
12+
jobs:
13+
trigger-documentation-build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Trigger 'Build and deploy' workflow in 'documentation' repo
17+
run: |
18+
curl -L \
19+
-X POST \
20+
-H "Accept: application/vnd.github+json" \
21+
-H "Authorization: Bearer ${{ secrets.DOCUMENTATION_SLACK_FLOW_PAT }}" \
22+
-H "X-GitHub-Api-Version: 2022-11-28" \
23+
"https://api.github.com/repos/${{ env.OWNER }}/${{ env.REPO }}/dispatches" \
24+
-d "{\"event_type\": \"trigger-preview-build\", \"client_payload\": {\"environment\": \"preview\", \"hugo_theme_override\": \"\", \"author\": \"${{ github.event.release.author.login }}\", \"tag_name\": \"${{ github.event.release.tag_name }}\", \"release_name\": \"${{ github.event.release.name }}\"}}"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BIOME_BASE_CMD := $(if $(shell which biome),biome,npx @biomejs/biome)
1+
BIOME_BASE_CMD := $(if $(shell which biome),biome,npx @biomejs/biome@1.9.4)
22
BIOME_CONFIG_PATH := --config-path="biome.json"
33
WRITE_FLAG := --write
44

assets/css/v2/style.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ atomic-search-interface {
732732
margin-top: 2rem;
733733
}
734734

735-
atomic-search-box {
735+
.header-search-box {
736736
&::part(wrapper) {
737737
border-radius: 0;
738738
border-color: oklch(var(--color-foreground));
@@ -770,15 +770,15 @@ atomic-query-summary {
770770
atomic-search-layout {
771771
grid-template-areas:
772772
"atomic-section-search"
773+
"atomic-section-status"
773774
"atomic-section-facets"
774-
"atomic-section-main"
775-
"." !important;
775+
"atomic-section-main";
776776

777777
grid-template-columns: minmax(50%, 100%) !important;
778778

779779
@media (min-width: 1024px) {
780780
grid-template-areas:
781-
". atomic-section-search"
781+
"atomic-section-search atomic-section-status"
782782
"atomic-section-facets atomic-section-main "
783783
"atomic-section-facets . " !important;
784784

@@ -787,10 +787,17 @@ atomic-search-layout {
787787
}
788788
}
789789

790-
atomic-search-layout atomic-layout-section[section="search"] {
790+
atomic-search-layout atomic-layout-section[section="status"] {
791791
/* Override Coveo's width to be full */
792792
max-width: 100%;
793+
display: block;
794+
width: 100%;
795+
}
796+
797+
atomic-search-layout atomic-layout-section[section="search"] {
798+
/* Override Coveo's width to be full */
793799
width: 100% !important;
800+
max-width: 100% !important;
794801
}
795802

796803
.atomic-full-summary-and-sort {

exampleSite/content/search.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
type: search
3+
title: Search
4+
params:
5+
searchOnPage: true
6+
url: search.html
7+
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{ $redirectionUrl := .redirectionUrl | default "/search.html" }}
22
<atomic-search-interface id="search-standalone-header">
3-
<atomic-search-box redirection-url={{ $redirectionUrl }}>
3+
<atomic-search-box redirection-url={{ $redirectionUrl }} class="header-search-box">
44
</atomic-search-box>
55
</atomic-search-interface>

layouts/partials/coveo-atomic.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<atomic-search-interface id="search-v2">
22
<atomic-search-layout>
33
<!-- Search/Metadata Section -->
4-
<atomic-layout-section section="search">
4+
{{ if .Params.searchOnPage }}
5+
<atomic-layout-section section="search">
6+
<atomic-search-box></atomic-search-box>
7+
</atomic-layout-section>
8+
{{ end }}
9+
<atomic-layout-section section="status">
510
<div class="atomic-full-summary-and-sort">
611
<atomic-refine-toggle></atomic-refine-toggle>
712
<atomic-query-summary></atomic-query-summary>

0 commit comments

Comments
 (0)