Skip to content

Commit 7200e45

Browse files
authored
Merge pull request #45872 from sftim/20240414_vanillaify_content_community
Ready community pages for vanilla Docsy
2 parents 4c2c256 + b78e1cd commit 7200e45

File tree

6 files changed

+63
-74
lines changed

6 files changed

+63
-74
lines changed

assets/scss/_custom.scss

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,44 @@ body.cid-community > #deprecation-warning > .deprecation-warning > * {
850850
background-color: inherit;
851851
}
852852

853+
body.cid-code-of-conduct main {
854+
max-width: calc(min(90vw, 100em));
855+
padding-top: 3rem;
856+
padding-left: 0.5em;
857+
padding-right: 0.5em;
858+
margin-left: auto;
859+
margin-right: auto;
860+
861+
#cncf-code-of-conduct {
862+
margin-top: 4rem;
863+
margin-bottom: 4rem;
864+
padding-left: 4rem;
865+
866+
> h2, h3, h4, h5 {
867+
color: #0662EE;
868+
}
869+
870+
> h2:first-child {
871+
margin-top: 0.25em;
872+
margin-bottom: 1em;
873+
}
874+
}
875+
876+
> hr {
877+
margin-top: 4rem;
878+
margin-bottom: 4rem;
879+
}
880+
881+
> hr:last-of-type ~ * {
882+
text-align: center;
883+
font-size: 1.15rem;
884+
}
885+
886+
> *:last-child {
887+
margin-bottom: 4rem;
888+
}
889+
}
890+
853891
#caseStudies body > #deprecation-warning > .deprecation-warning, body.cid-casestudies > #deprecation-warning > .deprecation-warning {
854892
color: inherit;
855893
background: inherit;

content/en/community/_index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
---
22
title: Community
33
layout: basic
4+
body_class: community
45
cid: community
56
community_styles_migrated: true
7+
menu:
8+
main:
9+
weight: 50
610
---
711
<img
812
id="banner"
Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,25 @@
11
---
22
title: Kubernetes Community Code of Conduct
3-
layout: basic
4-
cid: community
5-
community_styles_migrated: true
3+
body_class: code-of-conduct
4+
cid: code-of-conduct
65
---
76

8-
<div class="community-section" id="cncf-code-of-conduct-intro">
9-
<p>
10-
Kubernetes follows the
11-
<a href="https://github.com/cncf/foundation/blob/main/code-of-conduct.md">CNCF Code of Conduct</a>.
7+
_Kubernetes follows the
8+
[CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md).
129
The text of the CNCF CoC is replicated below, as of
13-
<a href="https://github.com/cncf/foundation/blob/c79711b5127e2d963107bc1be4a41975c8791acc/code-of-conduct.md">commit c79711b51</a>.
14-
If you notice that this is out of date, please
15-
<a href="https://github.com/kubernetes/website/issues/new">file an issue</a>.
16-
</p>
10+
[commit c79711b51](https://github.com/cncf/foundation/blob/c79711b5127e2d963107bc1be4a41975c8791acc/code-of-conduct.md)._
1711

12+
<div id="cncf-code-of-conduct">
13+
{{< include "static/cncf-code-of-conduct.md" >}}
14+
</div>
15+
16+
---
1817

19-
<p>
2018
If you notice a violation of the Code of Conduct at an event or meeting, in
2119
Slack, or in another communication mechanism, reach out to
22-
the <a href="https://git.k8s.io/community/committee-code-of-conduct">Kubernetes Code of Conduct Committee</a>.
23-
You can reach us by email at <a href="mailto:[email protected]">[email protected]</a>.
20+
the [Kubernetes Code of Conduct Committee](https://git.k8s.io/community/committee-code-of-conduct)
21+
22+
You can reach them by email at [[email protected]](mailto:[email protected]).
2423
Your anonymity will be protected.
25-
</p>
26-
</div>
2724

28-
<div id="cncf-code-of-conduct">
29-
{{< include "/static/cncf-code-of-conduct.md" >}}
30-
</div>
25+
If you notice that this page is out of date, please [file an issue](https://github.com/kubernetes/website/issues/new/choose).

content/en/community/static/community-values.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

content/en/community/values.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

data/i18n/en/en.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,20 @@ other = "Forum"
4343
[community_github_name]
4444
other = "GitHub"
4545

46+
[community_server_fault_name]
47+
other = "Server Fault"
48+
4649
[community_slack_name]
4750
other = "Slack"
4851

4952
[community_stack_overflow_name]
5053
other = "Stack Overflow"
5154

5255
[community_twitter_name]
53-
other = "Twitter"
56+
other = "X (formerly Twitter)"
57+
58+
[community_x_name]
59+
other = "X (formerly Twitter)"
5460

5561
[community_youtube_name]
5662
other = "YouTube"

0 commit comments

Comments
 (0)