Skip to content

Commit c8dd8b8

Browse files
author
johndmulhausen
committed
Import from Container Engine docs, addition of Tabs functionality, various link fixes
1 parent 3a20266 commit c8dd8b8

Some content is hidden

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

56 files changed

+1974
-34
lines changed

Diff for: README.md

+16
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,22 @@ To include a file that is hosted in the external, main Kubernetes repo, make sur
8888

8989
* `PATHFROMK8SROOT`: The path to the file relative to the root of [the Kubernetes repo](https://github.com/kubernetes/kubernetes/tree/release-1.2), e.g. `/examples/rbd/foo.yaml`
9090

91+
## Using tabs for multi-language examples
92+
93+
By specifying some inline CSV in a varable called `tabspec`, you can include a file
94+
called `tabs.html` that generates tabs showing code examples in multiple langauges.
95+
96+
<pre>&#123;% capture tabspec %&#125;servicesample
97+
JSON,json,service-sample.json,/docs/user-guide/services/service-sample.json
98+
YAML,yaml,service-sample.yaml,/docs/user-guide/services/service-sample.yaml&#123;% endcapture %&#125;
99+
&#123;% include tabs.html %&#125;</pre>
100+
101+
In English, this would read: "Create a set of tabs with the alias `servicesample`,
102+
and have tabs visually labeled "JSON" and "YAML" that use `json` and `yaml` Rouge syntax highlighting, which display the contents of
103+
`service-sample.{extension}` on the page, and link to the file in GitHub at (full path)."
104+
105+
Example file: [Pods: Multi-Container](/docs/user-guide/pods/multi-container/).
106+
91107
## Use a global variable
92108

93109
The `/_config.yml` file defines some useful variables you can use when editing docs.

Diff for: _data/guides.yml

+14
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ toc:
132132
path: /docs/getting-started-guides/scratch/
133133
- title: Authenticating Across Clusters with kubeconfig
134134
path: /docs/user-guide/kubeconfig-file/
135+
- title: Replication Controller Operations
136+
path: /docs/user-guide/replication-controller/operations/
137+
- title: Resizing a Replication Controller
138+
path: /docs/user-guide/resizing-a-replication-controller/
139+
- title: Service Operations
140+
path: /docs/user-guide/services/operations/
135141

136142
- title: Using Nodes, Pods, and Containers
137143
section:
@@ -147,6 +153,10 @@ toc:
147153
path: /docs/user-guide/getting-into-containers/
148154
- title: The Lifecycle of a Pod
149155
path: /docs/user-guide/pod-states/
156+
- title: Creating Single-Container Pods
157+
path: /docs/user-guide/pods/single-container/
158+
- title: Creating Multi-Container Pods
159+
path: /docs/user-guide/pods/multi-container/
150160
- title: Pod Templates
151161
path: /docs/user-guide/pod-templates/
152162
- title: Assigning Pods to Nodes
@@ -166,6 +176,8 @@ toc:
166176
section:
167177
- title: Networking in Kubernetes
168178
path: /docs/admin/networking/
179+
- title: Creating an External Load Balancer
180+
path: /docs/user-guide/load-balancer/
169181
- title: Using DNS Pods and Services
170182
path: /docs/admin/dns/
171183
- title: Setting Up and Configuring DNS
@@ -224,6 +236,8 @@ toc:
224236
path: /docs/user-guide/managing-deployments/
225237
- title: Deploying Applications
226238
path: /docs/user-guide/deploying-applications/
239+
- title: Updating Applications with Rolling Updates
240+
path: /docs/user-guide/rolling-updates/
227241
- title: Launching, Exposing, and Killing Applications
228242
path: /docs/user-guide/quick-start/
229243

Diff for: _data/support.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ toc:
66

77
- title: Troubleshooting
88
section:
9+
- title: Debugging Pods and Replication Controllers
10+
path: /docs/user-guide/debugging-pods-and-replication-controllers/
911
- title: Web Interface
1012
path: /docs/user-guide/ui/
1113
- title: Application Introspection and Debugging

Diff for: _includes/head-header.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
<meta name="viewport" content="width=device-width, initial-scale=1">
55
<link rel="shortcut icon" type="image/png" href="/images/favicon.png">
66
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
7-
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono' rel='stylesheet' type='text/css'>
7+
<link rel="stylesheet" href='https://fonts.googleapis.com/css?family=Roboto+Mono' type='text/css'>
88
<link rel="stylesheet" href="/css/styles.css"/>
9+
<link rel="stylesheet" href="/css/jquery-ui.min.css">
910
<script src="/js/jquery-2.2.0.min.js"></script>
11+
<script src="/js/jquery-ui.min.js"></script>
1012
<script src="/js/script.js"></script>
1113
<title>Kubernetes - {{ title }}</title>
1214
</head>

Diff for: _includes/tabs.html

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{% assign tabsraw = tabspec | newline_to_br | split: '<br />' %}
2+
{% assign tabsetname = tabsraw[0] %}
3+
<script>$(function(){$("#{{tabsetname}}").tabs();});</script>
4+
<div id="{{tabsetname}}">
5+
<ul>{% for tab in tabsraw offset:1 %}{% assign thisTab = tab | split: ',' %}
6+
<li><a href="#{{ thisTab[0] | strip | handleize }}">{{ thisTab[0] | strip}}</a></li>{% endfor %}
7+
</ul>
8+
{% for tab in tabsraw offset:1 %}
9+
{% assign thisTab = tab | split: ',' %}
10+
{% assign tabLang=thisTab[1] %}
11+
{% assign tabFile=thisTab[2] %}
12+
{% assign tabGHLink=thisTab[3] %}
13+
<div id="{{ thisTab[0] | strip | handleize }}">
14+
{% include code.html language=tabLang file=tabFile ghlink=tabGHLink %}
15+
</div>
16+
{% endfor %}
17+
</div>

Diff for: _sass/_base.sass

+43-19
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ header
120120
top: 0
121121
left: 0
122122
transform: none
123-
background-image: url(../images/nav_logo.svg)
123+
background-image: url(/images/nav_logo.svg)
124124
background-size: contain
125125
background-position: center center
126126
background-repeat: no-repeat
@@ -133,7 +133,7 @@ header
133133
left: 20px
134134
width: 50px
135135
height: 50px
136-
background-image: url(../images/toc_icon.png)
136+
background-image: url(/images/toc_icon.png)
137137
background-position: center center
138138
background-repeat: no-repeat
139139
background-size: auto
@@ -152,11 +152,11 @@ header
152152
display: block
153153
width: 45px
154154
height: 44px
155-
background-image: url(../images/favicon.png)
155+
background-image: url(/images/favicon.png)
156156

157157

158158
&.flip-nav .flyout-button
159-
background-image: url(../images/toc_icon_grey.png)
159+
background-image: url(/images/toc_icon_grey.png)
160160

161161

162162
.nav-buttons
@@ -295,7 +295,7 @@ header
295295

296296
// HERO
297297
#hero
298-
background-image: url(../images/texture.png)
298+
background-image: url(/images/texture.png)
299299
background-color: $dark-grey
300300
text-align: center
301301
padding-left: 0
@@ -321,7 +321,7 @@ header
321321
// FOOTER
322322
footer
323323
width: 100%
324-
background-image: url(../images/texture.png)
324+
background-image: url(/images/texture.png)
325325
background-color: $dark-grey
326326

327327
main
@@ -373,7 +373,7 @@ footer
373373

374374
.social a
375375
display: inline-block
376-
background-image: url(../images/social_sprite.png)
376+
background-image: url(/images/social_sprite.png)
377377
background-repeat: no-repeat
378378
background-size: auto
379379
width: 50px
@@ -845,7 +845,7 @@ dd
845845
white-space: nowrap
846846
text-indent: 50px
847847
overflow: hidden
848-
background: $blue url(../images/pencil.png) no-repeat
848+
background: $blue url(/images/pencil.png) no-repeat
849849
background-position: 1px 1px
850850
background-size: auto
851851

@@ -929,7 +929,7 @@ $feature-box-div-margin-bottom: 40px
929929
#home
930930
&.flip-nav, &.open-nav
931931
.logo
932-
background-image: url(../images/nav_logo2.svg)
932+
background-image: url(/images/nav_logo2.svg)
933933

934934
#hero
935935
margin-bottom: 0
@@ -979,7 +979,7 @@ $feature-box-div-margin-bottom: 40px
979979
#video
980980
width: 100%
981981
position: relative
982-
background-image: url(../images/kub_video_thm.jpg)
982+
background-image: url(/images/kub_video_thm.jpg)
983983
background-position: center center
984984
background-size: cover
985985

@@ -1084,7 +1084,7 @@ $feature-box-div-margin-bottom: 40px
10841084
#features
10851085
padding-top: 140px
10861086
background-color: $light-grey
1087-
background-image: url(../images/wheel.png)
1087+
background-image: url(/images/wheel.png)
10881088
background-position: center 60px
10891089
background-repeat: no-repeat
10901090
background-size: auto
@@ -1124,7 +1124,7 @@ $feature-box-div-margin-bottom: 40px
11241124
#community
11251125
&.open-nav, &.flip-nav
11261126
.logo
1127-
background-image: url(../images/nav_logo2.svg)
1127+
background-image: url(/images/nav_logo2.svg)
11281128

11291129
#hero
11301130
padding-bottom: 20px
@@ -1175,6 +1175,30 @@ $feature-box-div-margin-bottom: 40px
11751175
width: 100%
11761176
height: 100%
11771177

1178+
// Tabs
1179+
.ui-widget-header
1180+
background: transparent !important
1181+
background-color: transparent !important
1182+
border: 0px !important
1183+
1184+
.ui-tabs
1185+
ul, ol, li
1186+
padding: 0px !important
1187+
list-style: none !important
1188+
margin-bottom: 0px !important
1189+
margin-left: 1px !important
1190+
1191+
.ui-widget-content
1192+
border: 0px !important
1193+
1194+
.ui-widget-content
1195+
table
1196+
margin: 0px !important
1197+
1198+
.ui-tabs .ui-tabs-panel
1199+
padding: 0px !important
1200+
border: 1px solid #ccc !important
1201+
11781202
// Talk to us
11791203
#talkToUs
11801204
h3, h4
@@ -1203,16 +1227,16 @@ $feature-box-div-margin-bottom: 40px
12031227
background-repeat: no-repeat
12041228

12051229
div:nth-child(1)
1206-
background-image: url(../images/twitter_icon.png)
1230+
background-image: url(/images/twitter_icon.png)
12071231

12081232
div:nth-child(2)
1209-
background-image: url(../images/github_icon.png)
1233+
background-image: url(/images/github_icon.png)
12101234

12111235
div:nth-child(3)
1212-
background-image: url(../images/slack_icon.png)
1236+
background-image: url(/images/slack_icon.png)
12131237

12141238
div:nth-child(4)
1215-
background-image: url(../images/stackoverflow_icon.png)
1239+
background-image: url(/images/stackoverflow_icon.png)
12161240

12171241
div + div
12181242
margin-top: 20px
@@ -1240,10 +1264,10 @@ $feature-box-div-margin-bottom: 40px
12401264
padding-top: 125px
12411265

12421266
div:nth-child(1)
1243-
background-image: url(../images/community_logos/viacom_logo.png)
1267+
background-image: url(/images/community_logos/viacom_logo.png)
12441268

12451269
div:nth-child(2)
1246-
background-image: url(../images/community_logos/ebay_logo.png)
1270+
background-image: url(/images/community_logos/ebay_logo.png)
12471271

12481272
div:nth-child(3)
1249-
background-image: url(../images/community_logos/wikimedia_foundation_logo.png)
1273+
background-image: url(/images/community_logos/wikimedia_foundation_logo.png)

Diff for: css/jquery-ui.min.css

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)