Use Docsy layout for community page

Adapt the existing page to work with (near-)vanilla Docsy.

This includes new localizable strings.
pull/49031/head
Tim Bannister 2024-08-09 09:57:19 +01:00
parent 4bd18c4960
commit a665cc6c13
No known key found for this signature in database
GPG Key ID: 31BA93F2DB289EFE
2 changed files with 45 additions and 0 deletions

View File

@ -1130,6 +1130,14 @@ body.cid-community #cncf-code-of-conduct h2:after {
}
}
body.cid-community {
section.linkbox {
max-width: clamp(50%, calc(100em + 2vw), 100vw);
margin-left: auto;
margin-right: auto;
}
}
#caseStudies body > #deprecation-warning, body.cid-casestudies > #deprecation-warning, body.cid-community > #deprecation-warning {
display: inline-block;
vertical-align: top;

View File

@ -0,0 +1,37 @@
---
title: Kubernetes Community Code of Conduct
body_class: code-of-conduct
---
<a class="td-offset-anchor"></a>
<section class="row td-box td-box--1 position-relative td-box--gradient td-box--height-auto">
<div class="container text-center">
<span class="h4 mb-0">
<h1>Kubernetes Community Code of Conduct</h1>
<p>
Kubernetes follows the
<a href="https://github.com/cncf/foundation/blob/main/code-of-conduct.md">CNCF Code of Conduct</a>.
The text of the CNCF CoC is replicated below, as of
<a href="https://github.com/cncf/foundation/blob/71412bb029090d42ecbeadb39374a337bfb48a9c/code-of-conduct.md">commit 71412bb02</a>.
</p>
<p>
If you notice that this is out of date, please
<a href="https://github.com/kubernetes/website/issues/new">file an issue</a>.
</p>
</span>
</div>
</section>
<div id="cncf-code-of-conduct">
{{< include "/static/cncf-code-of-conduct.md" >}}
</div>
<hr />
<p>
If you notice a violation of the Code of Conduct at an event or meeting, in
Slack, or in another communication mechanism, reach out to
the <a href="https://git.k8s.io/community/committee-code-of-conduct">Kubernetes Code of Conduct Committee</a>.
You can reach us by email at <a href="mailto:conduct@kubernetes.io">conduct@kubernetes.io</a>.
Your anonymity will be protected.
</p>