Skip to content

Commit 11d13b8

Browse files
authored
Merge pull request #23227 from kbhawkey/kb-docsy-toc-config
use docsy page edit/issue setup
2 parents 5371b7f + 71303db commit 11d13b8

File tree

8 files changed

+21
-67
lines changed

8 files changed

+21
-67
lines changed

assets/scss/_variables_project.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ Add styles or override variables from the theme here. */
1111
@import "base";
1212
@import "tablet";
1313
@import "desktop";
14+
15+
$primary: #3371e3;

config.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ copyright_linux = "Copyright © 2020 The Linux Foundation ®."
112112
version_menu = "Versions"
113113

114114
time_format_blog = "Monday, January 02, 2006"
115+
time_format_default = "January 02, 2006 at 3:04 PM PST"
116+
115117
description = "Production-Grade Container Orchestration"
116118
showedit = true
117119

@@ -124,9 +126,13 @@ docsbranch = "master"
124126
deprecated = false
125127
currentUrl = "https://kubernetes.io/docs/home/"
126128
nextUrl = "https://kubernetes-io-vnext-staging.netlify.com/"
127-
githubWebsiteRepo = "github.com/kubernetes/website"
129+
130+
# See codenew shortcode
128131
githubWebsiteRaw = "raw.githubusercontent.com/kubernetes/website"
129132

133+
# GitHub repository link for editing a page and opening issues.
134+
github_repo = "https://github.com/kubernetes/website"
135+
130136
# param for displaying an announcement block on every page.
131137
# See /i18n/en.toml for message text and title.
132138
announcement = true

i18n/en.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,6 @@ other = """The Linux Foundation ®. All rights reserved. The Linux Foundation
150150
[main_documentation_license]
151151
other = """The Kubernetes Authors | Documentation Distributed under <a href="https://git.k8s.io/website/LICENSE" class="light-text">CC BY 4.0</a>"""
152152

153-
[main_edit_this_page]
154-
other = "Edit This Page"
155-
156-
[main_github_create_an_issue]
157-
other = "Create an Issue"
158-
159153
[main_github_invite]
160154
other = "Interested in hacking on the core Kubernetes code base?"
161155

@@ -195,6 +189,9 @@ other = "Objectives"
195189
[options_heading]
196190
other = "Options"
197191

192+
[post_create_issue]
193+
other = "Create an issue"
194+
198195
[prerequisites_heading]
199196
other = "Before you begin"
200197

@@ -207,7 +204,6 @@ other = "Subscribe"
207204
[synopsis_heading]
208205
other = "Synopsis"
209206

210-
211207
[thirdparty_message]
212208
other = """This section links to third party projects that provide functionality required by Kubernetes. The Kubernetes project authors aren't responsible for these projects. This page follows <a href="https://github.com/cncf/foundation/blob/master/website-guidelines.md" target="_blank">CNCF website guidelines</a> by listing projects alphabetically. To add a project to this list, read the <a href="/contribute/style/content-guide/#third-party-content">content guide</a> before submitting a change."""
213209

layouts/blog/baseof.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ <h1>
3737
</main>
3838
<div class="d-none d-xl-block col-xl-2 td-toc d-print-none">
3939
{{ partial "blog-meta-links.html" . }}
40-
{{ partial "toc.html" . }}
4140
</div>
4241
</div>
4342
</div>

layouts/docs/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
2626
{{ partial "feedback.html" .Site.Params.ui.feedback }}
2727
{{ end }}
28-
{{ partial "git-info.html" . }}
28+
<div class="text-muted mt-5 pt-3 border-top">{{ partial "page-meta-lastmod.html" . }}</div>
2929
{{ if (.Site.DisqusShortname) }}
3030
<br />
3131
{{ partial "disqus-comment.html" . }}

layouts/partials/docs/content-page.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
{{ if not (.Site.Param "deprecated") }}
2-
{{- $filepath := .page.File.Path }}
3-
{{- $editLink := printf "https://github.com/kubernetes/website/edit/master/content/%s/%s" .page.Language.Lang $filepath }}
4-
<p>
5-
<a href="{{ $editLink }}" id="editPageButton" target="_blank" data-proofer-ignore>
6-
Edit This Page
7-
</a>
8-
</p>
9-
{{- end -}}
101
{{ if not .page.Params.notitle }}
112
<h1>{{ .page.Title }}</h1>
123
{{ $desc := .page.Description }}

layouts/partials/git-info.html

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

layouts/partials/toc.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{ partial "page-meta-links.html" . }}
2+
{{ if not .Params.notoc }}
3+
{{ with .TableOfContents }}
4+
{{ if ge (len .) 100 }}
5+
{{ . }}
6+
{{ end }}
7+
{{ end }}
8+
{{ end }}

0 commit comments

Comments
 (0)