Skip to content

Commit f904ca1

Browse files
authored
Merge pull request #48842 from hacktivist123/merged-main-dev-1.32
Merge `main` into `dev-1.32`
2 parents 1ce3733 + de1e09d commit f904ca1

File tree

54 files changed

+2121
-652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2121
-652
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
**
2+
!package.json
3+
!package-lock.json

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[submodule "themes/docsy"]
22
path = themes/docsy
33
url = https://github.com/google/docsy.git
4-
branch = v0.2.0
4+
branch = v0.3.0
55
[submodule "api-ref-generator"]
66
path = api-ref-generator
77
url = https://github.com/kubernetes-sigs/reference-docs

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ RUN apk add --no-cache \
2929
git \
3030
openssh-client \
3131
rsync \
32-
npm && \
33-
npm install -D autoprefixer postcss-cli
32+
npm
3433

3534
RUN mkdir -p /var/hugo && \
3635
addgroup -Sg 1000 hugo && \
@@ -41,6 +40,8 @@ RUN mkdir -p /var/hugo && \
4140
COPY --from=0 /go/bin/hugo /usr/local/bin/hugo
4241

4342
WORKDIR /src
43+
COPY package.json package-lock.json ./
44+
RUN npm ci
4445

4546
USER hugo:hugo
4647

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,17 @@ docker-push: ## Build a multi-architecture image and push that into the registry
9797
rm Dockerfile.cross
9898

9999
container-build: module-check
100-
$(CONTAINER_RUN) --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 $(CONTAINER_IMAGE) sh -c "npm ci && hugo --minify --environment development"
100+
mkdir -p public
101+
$(CONTAINER_RUN) --read-only \
102+
--mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 \
103+
--mount type=bind,source=$(CURDIR)/public,target=/src/public $(CONTAINER_IMAGE) \
104+
hugo --cleanDestinationDir --buildDrafts --buildFuture --environment preview --noBuildLock
101105

102106
# no build lock to allow for read-only mounts
103107
container-serve: module-check ## Boot the development server using container.
104-
$(CONTAINER_RUN) --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/hugo --cleanDestinationDir --noBuildLock
108+
$(CONTAINER_RUN) --cap-drop=ALL --cap-add=AUDIT_WRITE --read-only \
109+
--mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 -p 1313:1313 $(CONTAINER_IMAGE) \
110+
hugo server --buildFuture --environment development --bind 0.0.0.0 --destination /tmp/public --cleanDestinationDir --noBuildLock
105111

106112
test-examples:
107113
scripts/test_examples.sh install

assets/scss/_base.scss

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -437,12 +437,6 @@ $ocean-nodes-h3-margin-bottom: 30px;
437437
// video
438438
$video-section-height: 200px;
439439

440-
// features
441-
$features-h3-margin-bottom: 20px;
442-
$feature-box-div-width: 100%;
443-
$feature-box-margin-bottom: 0;
444-
$feature-box-div-margin-bottom: 40px;
445-
446440
// Home-specific
447441

448442
.td-home {
@@ -687,47 +681,58 @@ section#cncf {
687681
}
688682

689683
// Features
690-
#features {
691-
padding-top: 140px;
684+
body.td-home section.features-container {
685+
padding: 0; // reset
686+
padding-top: 140px; // make room for logo
687+
692688
background-color: $light-grey;
693689
background-image: url(/images/wheel.svg);
694690
background-position: center 60px;
695691
background-repeat: no-repeat;
696692
background-size: 60px;
697-
}
698693

699-
.feature-box {
700-
//padding: 50px 0
701-
width: 100%;
702-
overflow: hidden;
703-
clear: both;
704-
display: flex;
705-
justify-content: space-evenly;
706-
flex-wrap: wrap;
694+
padding-bottom: 2em;
707695

708-
h4 {
709-
line-height: normal;
710-
margin-bottom: 15px;
696+
.k8s-features-heading {
697+
color: $primary;
698+
text-align: center;
711699
}
712700

713701
& > div {
714-
background-color: #daeaf9;
715-
border-radius: 20px;
716-
padding: 25px;
717-
}
718-
}
702+
display: flex;
703+
flex-direction: row;
704+
justify-content: center;
705+
flex-wrap: wrap;
706+
align-content: flex-start;
707+
align-items: stretch;
708+
gap: 1.2rem;
719709

720-
#features {
721-
h3 {
722-
margin-bottom: $features-h3-margin-bottom;
723-
}
710+
margin-top: 1.8em;
711+
712+
max-width: clamp(75em, 25cm, 90vw);
713+
margin-left: auto;
714+
margin-right: auto;
715+
716+
background: initial;
717+
718+
& > .feature-box {
719+
margin: 0;
720+
721+
h3 {
722+
text-align: center;
723+
line-height: normal;
724+
font-size: 1.3em;
725+
margin-bottom: 1rem;
726+
}
727+
728+
flex-basis: calc(min(75vw, 12.5cm, 35em));
729+
flex-shrink: 0;
724730

725-
.feature-box {
726-
margin-bottom: $feature-box-margin-bottom;
731+
border-radius: 0.5em;
732+
padding: 1em;
733+
padding-bottom: 1.2em;
727734

728-
& > div {
729-
width: $feature-box-div-width;
730-
margin-bottom: $feature-box-div-margin-bottom;
735+
background-color: #daeaf9; // light blue
731736
}
732737
}
733738
}

assets/scss/_custom.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,6 +1954,14 @@ body.td-search #search {
19541954
padding: 0.2rem;
19551955
}
19561956

1957+
1958+
// handle main page features on narrow viewports
1959+
@media screen and (max-width: 768px) {
1960+
.features-container div.feature-box {
1961+
min-width: 80vw;
1962+
}
1963+
}
1964+
19571965
@media screen and (max-aspect-ratio: 9/15) {
19581966
gap: 0.4rem;
19591967
}

assets/scss/_tablet.scss

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ $vendor-strip-font-size: 16px;
3131
//video
3232
$video-section-height: 400px;
3333

34-
//features
35-
$features-h3-margin-bottom: 40px;
36-
$feature-box-margin-bottom: 60px;
37-
$feature-box-div-margin-bottom: 0;
38-
$feature-box-div-width: 45%;
39-
4034
////////////////////////////////////////////////////////////////////////////////////////////////////
4135
////////////////////////////////////////////////////////////////////////////////////////////////////
4236
////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -156,29 +150,6 @@ $feature-box-div-width: 45%;
156150
display: none;
157151
}
158152

159-
#features {
160-
padding-bottom: 60px;
161-
162-
.feature-box {
163-
margin-bottom: 30px;
164-
165-
&:last-child {
166-
margin-bottom: 0;
167-
}
168-
}
169-
170-
h3 {
171-
margin-bottom: $features-h3-margin-bottom;
172-
}
173-
174-
.feature-box {
175-
& > div {
176-
width: $feature-box-div-width;
177-
margin-bottom: $feature-box-div-margin-bottom;
178-
}
179-
}
180-
}
181-
182153
#talkToUs {
183154
#bigSocial {
184155
div {
@@ -211,4 +182,9 @@ $feature-box-div-width: 45%;
211182
width: 48%;
212183
}
213184
}
185+
186+
.features-container div.feature-box {
187+
min-width: clamp(20rem, 6cm, 90vw);
188+
max-width: clamp(90rem, 10cm, 90vw);
189+
}
214190
}

content/en/blog/_posts/2023-12-15-volume-attributes-class/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ If you would like to see the feature in action and verify it works fine in your
6868
name: csi-sc-example
6969
provisioner: pd.csi.storage.gke.io
7070
parameters:
71-
disk-type: "hyperdisk-balanced"
71+
type: "hyperdisk-balanced"
7272
volumeBindingMode: WaitForFirstConsumer
7373
```
7474
@@ -174,4 +174,4 @@ Special thanks to all the contributors that provided great reviews, shared valua
174174
* Jordan Liggitt (liggitt)
175175
* Matthew Cary (mattcary)
176176
* Michelle Au (msau42)
177-
* Xing Yang (xing-yang)
177+
* Xing Yang (xing-yang)
Lines changed: 26 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)