-
Notifications
You must be signed in to change notification settings - Fork 45
implement documentation syncing with containerd/containerd and on-site rendering #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Sync-Documentation | ||
|
||
on: | ||
schedule: | ||
- cron: '0 3 * * *' | ||
|
||
jobs: | ||
update-documentationmd: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Update documentation | ||
id: vars | ||
run: make refresh-docs |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. q: Should we add 2.0 also into the submodules? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[submodule "containerd1.7"] | ||
path = containerd1.7 | ||
url = https://github.com/containerd/containerd.git | ||
branch = release/1.7 | ||
[submodule "containerd1.6"] | ||
path = containerd1.6 | ||
url = https://github.com/containerd/containerd.git | ||
branch = release/1.6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,17 @@ short: Overview | |
weight: 1 | ||
--- | ||
|
||
Welcome to the containerd documentation! This document contains some basic project-level information about containerd. | ||
## Overview | ||
|
||
If you'd like to get started running containerd locally on your machine, see the [Getting started](https://github.com/containerd/containerd/blob/main/docs/getting-started.md) guide. | ||
Welcome to the containerd documentation! This document contains some basic project-level information about containerd. | ||
|
||
See also other docs: https://github.com/containerd/containerd/tree/main/docs | ||
If you'd like to get started running containerd locally on your machine, see the [getting started](#getting-started) guide. | ||
|
||
## Repositories | ||
|
||
The containerd project is encapsulated in a variety of [GitHub](https://github.com) repositories. | ||
The containerd project is encapsulated in a variety of GitHub repositories; see https://github.com/containerd . | ||
|
||
## Getting Started | ||
|
||
See https://github.com/containerd . | ||
- [1.7.x](v1.7.x/docs/getting-started/) | ||
- [1.6.x](v1.6.x/docs/getting-started/) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add 2.0.x also here? |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
<br /> | ||
|
||
<div class="buttons is-centered"> | ||
<a class="button is-medium is-radiusless is-borderless has-text-weight-bold" href="/docs/getting-started"> | ||
<a class="button is-medium is-radiusless is-borderless has-text-weight-bold" href="/docs/v1.7.x/docs/getting-started/"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You might want to use |
||
<span class="icon"> | ||
<i class="fas fa-sm fa-step-forward"></i> | ||
</span> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ range .context.Pages }} | ||
<li class="{{ if or (in $.ancestors .) (eq $.curRelPermalink .RelPermalink) }}active{{ end }} {{ if len .Pages }}haschildren{{ end }}"> | ||
{{ if not (len .Pages) }} | ||
<a href="{{ .RelPermalink }}">{{ cond (eq .Title "") (.File.BaseFileName | humanize | title) .Title }}</a> | ||
{{ else }} | ||
<a onclick="this.parentNode.classList.contains('active') ? this.parentNode.classList.remove('active') : this.parentElement.classList.add('active')"> | ||
{{ cond (eq .Title "") (.File.BaseFileName | humanize | title) .Title }} | ||
</a> | ||
{{ end }} | ||
<ul> | ||
{{ partial "docs/nested-menu-partial.html" (dict "curRelPermalink" $.curRelPermalink "ancestors" $.ancestors "context" .) }} | ||
</ul> | ||
</li> | ||
{{ end }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{{- $currentUrl := .RelPermalink }} | ||
{{- $xVersion := index (findRE `v\d+\.\d+\.x` .RelPermalink) 0 }} | ||
|
||
{{- $docs := where site.RegularPages "CurrentSection.Path" (printf "%s%s" "/docs/" $xVersion) }} | ||
|
||
<style> | ||
ul.nestedmenu {margin-left: 0;} | ||
ul.nestedmenu li {list-style: none;} | ||
ul.nestedmenu li > ul {display: none;} | ||
ul.nestedmenu li > a::before {content: "•"; display: inline-block; margin-right: 0.25rem; width: 0.5rem; text-align: center;} | ||
ul.nestedmenu li.haschildren > a::before {content: "›";} | ||
ul.nestedmenu li.haschildren.active > a::before {transform: rotate(90deg);} | ||
ul.nestedmenu li.active > ul {display: block;} | ||
ul.nestedmenu li > a {color: #444444!important;} | ||
ul.nestedmenu li.active > a {color: rgb(247, 44, 114)!important;} | ||
</style> | ||
|
||
<aside class="column is-hidden-touch is-fullheight is-hidden-mobile"> | ||
<ul class="menu-list"> | ||
<li> | ||
<a href="/docs" class="{{ if eq .RelPermalink `/docs/` }} is-active{{ end }}"> | ||
<span class="icon"><i class="fa fa-home"></i></span> Docs Home | ||
</a> | ||
</li> | ||
|
||
{{ if (strings.Contains $xVersion "v") }} | ||
{{- $readmeURL := (printf "%s%s%s" "/docs/" $xVersion "/") }} | ||
<li> | ||
<a href="{{$readmeURL}}" class="{{ if eq .RelPermalink $readmeURL }} is-active{{ end }}"> | ||
<span class="icon"><i class="fa fa-info"></i></span> README | ||
</a> | ||
</li> | ||
{{ end }} | ||
|
||
{{ .Scratch.Set "ancestors" .Ancestors }} | ||
{{ .Scratch.Set "curRelPermalink" .RelPermalink }} | ||
{{ with .Site.GetPage (print "/docs/" $xVersion "/_index.md") }} | ||
<ul class="nestedmenu"> | ||
{{ partial "docs/nested-menu-partial.html" (dict "curRelPermalink" ($.Scratch.Get "curRelPermalink") "ancestors" ($.Scratch.Get "ancestors") "context" .) }} | ||
</ul> | ||
{{ end }} | ||
</ul> | ||
</aside> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{{- $logo := "img/logos/footer-logo.png" | relURL }} | ||
{{- $docs := where .Site.Pages "Section" "docs" }} | ||
{{- $year := now.Year }} | ||
{{- $twitterHandle := .Site.Params.twitterHandle }} | ||
{{- $twitterUrl := printf "https://twitter.com/@%s" $twitterHandle }} | ||
|
@@ -22,13 +21,31 @@ | |
<hr class="hr has-background-grey"> | ||
|
||
<ul> | ||
{{- range $docs }} | ||
<li> | ||
<a href="{{ .RelPermalink }}"> | ||
{{ .Title }} | ||
<a href="/docs"> | ||
Docs Home | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/v1.7.x/"> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. v2.0.x needs to be added now There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably there should be |
||
1.7.x README | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/v1.7.x/docs/getting-started/"> | ||
1.7.x Getting Started | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/v1.6.x/"> | ||
1.6.x README | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/v1.6.x/docs/getting-started/"> | ||
1.6.x Getting Started | ||
</a> | ||
</li> | ||
{{- end }} | ||
</ul> | ||
</div> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.