Skip to content

Commit

Permalink
add tree structure to Community page
Browse files Browse the repository at this point in the history
Signed-off-by: NikitaSkrynnik <[email protected]>
  • Loading branch information
NikitaSkrynnik committed Aug 23, 2024
1 parent d66db87 commit 2890a0d
Show file tree
Hide file tree
Showing 13 changed files with 189 additions and 37 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ weight = 1

[[menu.navbar]]
name = "Community"
url = "/community"
url = "/community/multirepo"
weight = 2

[[menu.navbar]]
Expand Down
36 changes: 1 addition & 35 deletions content/community/_index.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
---
title: Community
---

## Getting Involved

We encourage discussion on our mailing list and IRC channel and accept pull requests.

### Weekly Meetings
[![Weekly Meeting](https://img.shields.io/badge/Weekly%20Meeting%20Minutes-Tue%208am%20PT-blue.svg?style=plastic)](https://docs.google.com/document/d/1C9NKjo0PWNWypROEO9-Y6haw5h9Xmurvl14SXpciz2Y/edit#heading=h.rc9df0a6n3ng)
[![Calendar](https://img.shields.io/badge/Calendar-Subscribe-blue.svg?style=plastic)](https://calendar.google.com/calendar/embed?src=iae5pl3qbf2g5ehm6jb2h7gv08%40group.calendar.google.com&ctz=America%2FLos_Angeles)

### Communication Channels
[![Mailing List](https://img.shields.io/badge/Mailing%20List-networkservicemesh-blue.svg?style=plastic)](https://groups.google.com/forum/#!forum/networkservicemesh)
[![Slack Channel](https://img.shields.io/badge/Slack:-%23nsm%20on%20CNCF%20Slack-blue.svg?style=plastic&logo=slack)](https://cloud-native.slack.com/messages/CHQNNUPN1/)
[![Slack Channel](https://img.shields.io/badge/Slack:-%23nsm--dev%20on%20CNCF%20Slack-blue.svg?style=plastic&logo=slack)](https://cloud-native.slack.com/messages/CHSKJ4849/)
[![Slack Invite](https://img.shields.io/badge/Slack-CNCF%20Slack%20Invite-blue.svg?style=plastic&logo=slack)](https://slack.cncf.io/)
[![Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/nservicemesh)


### Developer Resources

Network Service Mesh is 'multi-repo'. The repos and their relationships are shown below:

{{< object class="repoMap" data="/img/multi-repo.svg" type="image/svg+xml" >}}


## Security Policy

### Reporting a security issue

If you believe you have found a security issue in Network Service Mesh, please send a description of the issue to
`[email protected]`. We will send a confirmation to acknowledge your report, and an additional email with the result of our assessment (normally within 1-2 working days).

### Supported versions

Note that Network Service Mesh is developed and maintained on one track, thus we encourage our users to follow our latest releases. For this reason we only investigate whether the reported issue is affecting the latest release of Network Service Mesh and provide a fix in a patch release on top of the latest release.
---
9 changes: 9 additions & 0 deletions content/community/adopters/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
+++
title = "Adopters"
date = "2024-08-22"
weight = 2
+++

# Code of Conduct

We follow the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
1 change: 1 addition & 0 deletions content/community/code_of_conduct/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
+++
title = "Code of Conduct"
date = "2024-08-22"
weight = 3
+++

# Code of Conduct
Expand Down
9 changes: 9 additions & 0 deletions content/community/contributing/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
+++
title = "Contributng"
date = "2024-08-22"
weight = 4
+++

# Code of Conduct

We follow the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
9 changes: 9 additions & 0 deletions content/community/governance/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
+++
title = "Governance"
date = "2024-08-22"
weight = 5
+++

# Code of Conduct

We follow the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
40 changes: 40 additions & 0 deletions content/community/multirepo/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
+++
title = "Multirepo"
date = "2024-08-22"
weight = 1
showToC = false
+++

## Getting Involved

We encourage discussion on our mailing list and IRC channel and accept pull requests.

### Weekly Meetings
[![Weekly Meeting](https://img.shields.io/badge/Weekly%20Meeting%20Minutes-Tue%208am%20PT-blue.svg?style=plastic)](https://docs.google.com/document/d/1C9NKjo0PWNWypROEO9-Y6haw5h9Xmurvl14SXpciz2Y/edit#heading=h.rc9df0a6n3ng)
[![Calendar](https://img.shields.io/badge/Calendar-Subscribe-blue.svg?style=plastic)](https://calendar.google.com/calendar/embed?src=iae5pl3qbf2g5ehm6jb2h7gv08%40group.calendar.google.com&ctz=America%2FLos_Angeles)

### Communication Channels
[![Mailing List](https://img.shields.io/badge/Mailing%20List-networkservicemesh-blue.svg?style=plastic)](https://groups.google.com/forum/#!forum/networkservicemesh)
[![Slack Channel](https://img.shields.io/badge/Slack:-%23nsm%20on%20CNCF%20Slack-blue.svg?style=plastic&logo=slack)](https://cloud-native.slack.com/messages/CHQNNUPN1/)
[![Slack Channel](https://img.shields.io/badge/Slack:-%23nsm--dev%20on%20CNCF%20Slack-blue.svg?style=plastic&logo=slack)](https://cloud-native.slack.com/messages/CHSKJ4849/)
[![Slack Invite](https://img.shields.io/badge/Slack-CNCF%20Slack%20Invite-blue.svg?style=plastic&logo=slack)](https://slack.cncf.io/)
[![Twitter](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/nservicemesh)


### Developer Resources

Network Service Mesh is 'multi-repo'. The repos and their relationships are shown below:

{{< object class="repoMap" data="/img/multi-repo.svg" type="image/svg+xml" >}}


## Security Policy

### Reporting a security issue

If you believe you have found a security issue in Network Service Mesh, please send a description of the issue to
`[email protected]`. We will send a confirmation to acknowledge your report, and an additional email with the result of our assessment (normally within 1-2 working days).

### Supported versions

Note that Network Service Mesh is developed and maintained on one track, thus we encourage our users to follow our latest releases. For this reason we only investigate whether the reported issue is affecting the latest release of Network Service Mesh and provide a fix in a patch release on top of the latest release.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
+++
title = "Code of Conduct"
title = "Roadmap"
date = "2024-08-22"
+++

Expand Down
8 changes: 8 additions & 0 deletions layouts/community/section.en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ define "title" }}
Network Service Mesh | {{ .Title }}
{{ end }}

{{ define "main" }}
{{ partial "community/hero.html" . }}
{{ partial "community/article.html" . }}
{{ end }}
8 changes: 8 additions & 0 deletions layouts/community/single.en.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{{ define "title" }}
Network Service Mesh | {{ .Title }}
{{ end }}

{{ define "main" }}
{{ partial "community/hero.html" . }}
{{ partial "community/article.html" . }}
{{ end }}
26 changes: 26 additions & 0 deletions layouts/partials/community/article.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{ $toc := .TableOfContents }}
<section class="section">
<div class="container">
<div class="columns">
<div class="column{{ if $toc }} is-three-quarters{{ end }}">
{{ with $toc }}
<div class="is-hidden-tablet">
{{ partial "docs/toc.html" . }}

<hr />
</div>
{{ end }}

<div class="content is-narrow-desktop">
{{ .Content }}
</div>
</div>

{{ with $toc }}
<div class="is-hidden-mobile">
{{ partial "community/toc.html" . }}
</div>
{{ end }}
</div>
</div>
</section>
69 changes: 69 additions & 0 deletions layouts/partials/community/hero.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{{ $allCommunity := where (where site.RegularPages "Section" "community") "Params.short" "==" nil }}
{{ $communitySections := where (where site.Sections "Section" "community") "Params.short" "==" nil }}
{{ $currentSection := .CurrentSection.Title }}
{{ $thisSectionCommunity := where $allCommunity "CurrentSection.Title" .CurrentSection.Name }}
{{ $currentUrl := .RelPermalink }}
{{ $description := .Params.description }}
{{ $date := .Params.date.Format "2006 Jan 02"}}

<section class="hero is-light">
<div class="hero-body">
<div class="container">
<p class="title is-size-1 is-size-2-mobile has-text-weight-light{{ if $description }} is-spaced{{ end }}">
{{ .Title }}
</p>
{{ if isset .Params "short" }}
{{ with $date }}
<p class="subtitle is-6">
{{ . }}
</p>
{{ end }}
{{ end }}
{{ with $description }}
<p class="subtitle">
{{ . }}
</p>
{{ end }}
</div>
</div>

<div class="hero-foot">
<div class="container">
<nav class="tabs is-boxed">
<ul>
{{ range $communitySections }}
{{ range .Sections }}
{{ $title := cond (isset .Params "short") .Params.short .Title }}
{{ $isCurrentSection := eq .Title $currentSection }}
{{ $link := (index (where .Pages ".Weight" 1) 0).RelPermalink }}
{{ if not $link }}
{{ $link = (index .Pages.ByDate.Reverse 0).RelPermalink }}
{{ end}}
<li{{ if $isCurrentSection }} class="is-active"{{ end }}>
<a href="{{ $link }}">
{{ $title }}
</a>
</li>
{{ end }}
{{ end }}
</ul>
</nav>
</div>
</div>
</section>

<div class="container">
<nav class="tabs is-light">
<ul>
{{ range $thisSectionCommunity }}
{{ $title := cond (isset .Params "short") .Params.short .Title }}
{{ $isCurrentPage := eq .RelPermalink $currentUrl }}
<li{{ if $isCurrentPage }} class="is-active"{{ end }}>
<a href="{{ .RelPermalink }}">
{{ $title }}
</a>
</li>
{{ end }}
</ul>
</nav>
</div>
7 changes: 7 additions & 0 deletions layouts/partials/community/toc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class="toc">
<p class="title is-size-4 is-size-5-mobile has-text-weight-medium">
Table of contents
</p>

{{ . }}
</div>

0 comments on commit 2890a0d

Please sign in to comment.