Skip to content

Commit ebfc1ea

Browse files
author
Tim Bannister
committed
Ready community pages for vanilla Docsy
Align how we style the community section to work more the way Docsy expects it to.
1 parent b3538b0 commit ebfc1ea

File tree

5 files changed

+56
-73
lines changed

5 files changed

+56
-73
lines changed

assets/scss/_custom.scss

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

823+
body.cid-code-of-conduct main {
824+
max-width: calc(min(90vw, 100em));
825+
padding-top: 3rem;
826+
padding-left: 0.5em;
827+
padding-right: 0.5em;
828+
margin-left: auto;
829+
margin-right: auto;
830+
831+
#cncf-code-of-conduct {
832+
margin-top: 4rem;
833+
margin-bottom: 4rem;
834+
padding-left: 4rem;
835+
836+
> h2, h3, h4, h5 {
837+
color: #0662EE;
838+
}
839+
840+
> h2:first-child {
841+
margin-top: 0.25em;
842+
margin-bottom: 1em;
843+
}
844+
}
845+
846+
> hr {
847+
margin-top: 4rem;
848+
margin-bottom: 4rem;
849+
}
850+
851+
> hr:last-of-type ~ * {
852+
text-align: center;
853+
font-size: 1.15rem;
854+
}
855+
856+
> *:last-child {
857+
margin-bottom: 4rem;
858+
}
859+
}
860+
823861
#caseStudies body > #deprecation-warning > .deprecation-warning, body.cid-casestudies > #deprecation-warning > .deprecation-warning {
824862
color: inherit;
825863
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.

0 commit comments

Comments
 (0)