Skip to content

Commit e8d464b

Browse files
authored
Merge pull request #5 from kubernetes/master
merge
2 parents 73e4ccc + 94b2f85 commit e8d464b

File tree

1,063 files changed

+100641
-25556
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,063 files changed

+100641
-25556
lines changed

OWNERS_ALIASES

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,12 @@ aliases:
107107
- danninov
108108
sig-docs-it-owners: # Admins for Italian content
109109
- fabriziopandini
110+
- Fale
110111
- mattiaperi
111112
- micheleberardi
112113
sig-docs-it-reviews: # PR reviews for Italian content
113114
- fabriziopandini
115+
- Fale
114116
- mattiaperi
115117
- micheleberardi
116118
sig-docs-ja-owners: # Admins for Japanese content
@@ -138,6 +140,7 @@ aliases:
138140
- ianychoi
139141
- seokho-son
140142
- ysyukr
143+
- pjhwa
141144
sig-docs-leads: # Website chairs and tech leads
142145
- jimangel
143146
- kbarnard10
@@ -214,4 +217,4 @@ aliases:
214217
- butuzov
215218
- idvoretskyi
216219
- MaxymVlasov
217-
- Potapy4
220+
- Potapy4

README.md

Lines changed: 78 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,98 @@
44

55
This repository contains the assets required to build the [Kubernetes website and documentation](https://kubernetes.io/). We're glad that you want to contribute!
66

7-
## Running the website locally using Hugo
7+
# Using this repository
88

9-
See the [official Hugo documentation](https://gohugo.io/getting-started/installing/) for Hugo installation instructions. Make sure to install the Hugo extended version specified by the `HUGO_VERSION` environment variable in the [`netlify.toml`](netlify.toml#L10) file.
9+
You can run the website locally using Hugo, or you can run it in a container runtime. We strongly recommend using the container runtime, as it gives deployment consistency with the live website.
1010

11-
Before building the site, clone the Kubernetes website repository:
11+
## Prerequisites
1212

13-
```bash
13+
To use this repository, you need the following installed locally:
14+
15+
- [yarn](https://yarnpkg.com/)
16+
- [npm](https://www.npmjs.com/)
17+
- [Go](https://golang.org/)
18+
- [Hugo](https://gohugo.io/)
19+
- A container runtime, like [Docker](https://www.docker.com/).
20+
21+
Before you start, install the dependencies. Clone the repository and navigate to the directory:
22+
23+
```
1424
git clone https://github.com/kubernetes/website.git
1525
cd website
16-
git submodule update --init --recursive --depth 1
1726
```
1827

19-
**Note:** The Kubernetes website deploys the [Docsy Hugo theme](https://github.com/google/docsy#readme).
20-
If you have not updated your website repository, the `website/themes/docsy` directory is empty. The site cannot build
21-
without a local copy of the theme.
28+
The Kubernetes website uses the [Docsy Hugo theme](https://github.com/google/docsy#readme). Even if you plan to run the website in a container, we strongly recommend pulling in the submodule and other development dependencies by running the following:
2229

23-
Update the website theme:
30+
```
31+
# install dependencies
32+
yarn
2433
25-
```bash
34+
# pull in the Docsy submodule
2635
git submodule update --init --recursive --depth 1
2736
```
2837

38+
## Running the website using a container
39+
40+
To build the site in a container, run the following to build the container image and run it:
41+
42+
```
43+
make container-image
44+
make container-serve
45+
```
46+
47+
Open up your browser to http://localhost:1313 to view the website. As you make changes to the source files, Hugo updates the website and forces a browser refresh.
48+
49+
## Running the website locally using Hugo
50+
51+
Make sure to install the Hugo extended version specified by the `HUGO_VERSION` environment variable in the [`netlify.toml`](netlify.toml#L10) file.
52+
2953
To build and test the site locally, run:
3054

3155
```bash
32-
hugo server --buildFuture
56+
make serve
3357
```
3458

3559
This will start the local Hugo server on port 1313. Open up your browser to http://localhost:1313 to view the website. As you make changes to the source files, Hugo updates the website and forces a browser refresh.
3660

37-
## Get involved with SIG Docs
61+
### Troubleshooting macOS for too many open files
62+
63+
If you run `make serve` on macOS and receive the following error:
64+
65+
```
66+
ERROR 2020/08/01 19:09:18 Error: listen tcp 127.0.0.1:1313: socket: too many open files
67+
make: *** [serve] Error 1
68+
```
69+
70+
Try checking the current limit for open files:
71+
72+
`launchctl limit maxfiles`
73+
74+
Then run the following commands:
75+
76+
```
77+
#!/bin/sh
78+
79+
# These are the original gist links, linking to my gists now.
80+
# curl -O https://gist.githubusercontent.com/a2ikm/761c2ab02b7b3935679e55af5d81786a/raw/ab644cb92f216c019a2f032bbf25e258b01d87f9/limit.maxfiles.plist
81+
# curl -O https://gist.githubusercontent.com/a2ikm/761c2ab02b7b3935679e55af5d81786a/raw/ab644cb92f216c019a2f032bbf25e258b01d87f9/limit.maxproc.plist
82+
83+
curl -O https://gist.githubusercontent.com/tombigel/d503800a282fcadbee14b537735d202c/raw/ed73cacf82906fdde59976a0c8248cce8b44f906/limit.maxfiles.plist
84+
curl -O https://gist.githubusercontent.com/tombigel/d503800a282fcadbee14b537735d202c/raw/ed73cacf82906fdde59976a0c8248cce8b44f906/limit.maxproc.plist
85+
86+
sudo mv limit.maxfiles.plist /Library/LaunchDaemons
87+
sudo mv limit.maxproc.plist /Library/LaunchDaemons
88+
89+
sudo chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist
90+
sudo chown root:wheel /Library/LaunchDaemons/limit.maxproc.plist
91+
92+
sudo launchctl load -w /Library/LaunchDaemons/limit.maxfiles.plist
93+
```
94+
95+
This works for Catalina as well as Mojave macOS.
96+
97+
98+
# Get involved with SIG Docs
3899

39100
Learn more about SIG Docs Kubernetes community and meetings on the [community page](https://github.com/kubernetes/community/tree/master/sig-docs#meetings).
40101

@@ -43,7 +104,7 @@ You can also reach the maintainers of this project at:
43104
- [Slack](https://kubernetes.slack.com/messages/sig-docs)
44105
- [Mailing List](https://groups.google.com/forum/#!forum/kubernetes-sig-docs)
45106

46-
## Contributing to the docs
107+
# Contributing to the docs
47108

48109
You can click the **Fork** button in the upper-right area of the screen to create a copy of this repository in your GitHub account. This copy is called a *fork*. Make any changes you want in your fork, and when you are ready to send those changes to us, go to your fork and create a new pull request to let us know about it.
49110

@@ -60,7 +121,7 @@ For more information about contributing to the Kubernetes documentation, see:
60121
* [Documentation Style Guide](https://kubernetes.io/docs/contribute/style/style-guide/)
61122
* [Localizing Kubernetes Documentation](https://kubernetes.io/docs/contribute/localization/)
62123

63-
## Localization `README.md`'s
124+
# Localization `README.md`'s
64125

65126
| Language | Language |
66127
|---|---|
@@ -72,10 +133,10 @@ For more information about contributing to the Kubernetes documentation, see:
72133
|[Italian](README-it.md)|[Ukrainian](README-uk.md)|
73134
|[Japanese](README-ja.md)|[Vietnamese](README-vi.md)|
74135

75-
## Code of conduct
136+
# Code of conduct
76137

77138
Participation in the Kubernetes community is governed by the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md).
78139

79-
## Thank you!
140+
# Thank you!
80141

81-
Kubernetes thrives on community participation, and we appreciate your contributions to our website and our documentation!
142+
Kubernetes thrives on community participation, and we appreciate your contributions to our website and our documentation!

SECURITY.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Security Policy
2+
3+
## Security Announcements
4+
5+
Join the [kubernetes-security-announce] group for security and vulnerability announcements.
6+
7+
You can also subscribe to an RSS feed of the above using [this link][kubernetes-security-announce-rss].
8+
9+
## Reporting a Vulnerability
10+
11+
Instructions for reporting a vulnerability can be found on the
12+
[Kubernetes Security and Disclosure Information] page.
13+
14+
## Supported Versions
15+
16+
Information about supported Kubernetes versions can be found on the
17+
[Kubernetes version and version skew support policy] page on the Kubernetes website.
18+
19+
[kubernetes-security-announce]: https://groups.google.com/forum/#!forum/kubernetes-security-announce
20+
[kubernetes-security-announce-rss]: https://groups.google.com/forum/feed/kubernetes-security-announce/msgs/rss_v2_0.xml?num=50
21+
[Kubernetes version and version skew support policy]: https://kubernetes.io/docs/setup/release/version-skew-policy/#supported-versions
22+
[Kubernetes Security and Disclosure Information]: https://kubernetes.io/docs/reference/issues-security/security/#report-a-vulnerability

assets/scss/_base.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,3 +832,16 @@ section#cncf {
832832
font-size: 1rem;
833833
}
834834
}
835+
836+
/* DOCUMENTATION */
837+
838+
body.td-documentation {
839+
header > .header-filler {
840+
height: $hero-padding-top;
841+
background-color: black;
842+
}
843+
/* Special case for if an announcement is active */
844+
header section#announcement ~ .header-filler {
845+
display: none;
846+
}
847+
}

assets/scss/_custom.scss

Lines changed: 122 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
$announcement-size-adjustment: 8px;
2+
13
/* GLOBAL */
24
.td-main {
35
.row {
@@ -284,6 +286,82 @@ blockquote {
284286
border-left-color: #d9534f !important;
285287
}
286288

289+
.deprecation-warning {
290+
padding: 20px;
291+
margin: 20px 0;
292+
background-color: #faf5b6;
293+
color: #000;
294+
}
295+
296+
body.td-home .deprecation-warning, body.td-blog .deprecation-warning, body.td-documentation .deprecation-warning {
297+
border-radius: 3px;
298+
}
299+
300+
body.td-home #deprecation-warning {
301+
max-width: 1000px;
302+
margin-top: 2.5rem;
303+
margin-left: auto;
304+
margin-right: auto;
305+
}
306+
307+
#caseStudies body > #deprecation-warning, body.cid-casestudies > #deprecation-warning, body.cid-community > #deprecation-warning {
308+
display: inline-block;
309+
vertical-align: top;
310+
position: relative;
311+
background-color: #326ce5; // Kubernetes blue
312+
color: #fff;
313+
padding: 0;
314+
margin: 0;
315+
width: 100vw;
316+
}
317+
#caseStudies body > #deprecation-warning, body.cid-casestudies > #deprecation-warning {
318+
padding-top: 32px;
319+
}
320+
body.cid-partners > #deprecation-warning {
321+
padding: 0;
322+
margin-right: 0;
323+
margin-left: 0;
324+
margin-top: 0;
325+
width: 100vw;
326+
}
327+
body.cid-partners > #deprecation-warning > .content {
328+
width: 100%;
329+
max-width: initial;
330+
margin-right: 0;
331+
margin-left: 0;
332+
margin-top: 0;
333+
padding-left: 5vw;
334+
padding-right: 5vw;
335+
padding-top: 2rem;
336+
padding-bottom: 2rem;
337+
}
338+
body.cid-community > #deprecation-warning > .deprecation-warning {
339+
margin-left: 20px;
340+
margin-right: 20px;
341+
color: #faf5b6;
342+
background-color: inherit;
343+
}
344+
body.cid-community > #deprecation-warning > .deprecation-warning > * {
345+
color: inherit;
346+
background-color: inherit;
347+
}
348+
349+
#caseStudies body > #deprecation-warning > .deprecation-warning, body.cid-casestudies > #deprecation-warning > .deprecation-warning {
350+
color: inherit;
351+
background: inherit;
352+
width: 80%;
353+
margin: 0;
354+
margin-top: 120px;
355+
margin-left: auto;
356+
margin-right: auto;
357+
border-radius: initial;
358+
}
359+
#deprecation-warning > .deprecation-warning a {
360+
background: transparent;
361+
color: inherit;
362+
text-decoration: underline;
363+
}
364+
287365
// search & sidebar
288366
.td-sidebar {
289367
@media only screen and (min-width: 768px) {
@@ -390,4 +468,47 @@ main.content {
390468
}
391469
}
392470
}
393-
}
471+
}
472+
473+
/* ANNOUNCEMENTS */
474+
section#fp-announcement ~ .header-hero {
475+
padding: $announcement-size-adjustment 0;
476+
477+
> div {
478+
margin-top: $announcement-size-adjustment;
479+
margin-bottom: $announcement-size-adjustment;
480+
}
481+
482+
h1, h2, h3, h4, h5 {
483+
margin: $announcement-size-adjustment 0;
484+
}
485+
}
486+
487+
section#announcement ~ .header-hero {
488+
padding: #{$announcement-size-adjustment / 2} 0;
489+
490+
> div {
491+
margin-top: #{$announcement-size-adjustment / 2};
492+
margin-bottom: #{$announcement-size-adjustment / 2};
493+
padding-bottom: #{$announcement-size-adjustment / 2};
494+
}
495+
496+
h1, h2, h3, h4, h5 {
497+
margin: #{$announcement-size-adjustment / 2} 0;
498+
}
499+
}
500+
501+
/* DOCUMENTATION */
502+
503+
/* Don't show lead text */
504+
body.td-documentation {
505+
main {
506+
@media only screen {
507+
> * {
508+
> .lead:first-of-type {
509+
display: none;
510+
}
511+
}
512+
}
513+
}
514+
}

assets/scss/_tablet.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $main-nav-left-button-size: 50px;
2323
$main-nav-left-button-font-size: 18px;
2424

2525
// hero
26-
$hero-padding-top: 136px;
26+
$hero-padding-top: 116px;
2727
$headline-wrapper-margin-bottom: 40px;
2828
$quickstart-button-padding: 0 50px;
2929
$vendor-strip-font-size: 16px;

0 commit comments

Comments
 (0)