Skip to content

Commit 379523a

Browse files
authored
Merge pull request #1412 from DirectXMan12/features/netlify-lfs-logo
📖 Introduce logos into the book
2 parents 9552d12 + 60deebb commit 379523a

File tree

8 files changed

+309
-145
lines changed

8 files changed

+309
-145
lines changed

docs/book/book.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ title = "The Kubebuilder Book"
77
[output.html]
88
google-analytics = "UA-119864590-1"
99
curly-quotes = true
10+
additional-css = ["theme/css/markers.css", "theme/css/custom.css"]
1011

1112
[preprocessor.literatego]
1213
command = "./litgo.sh"

docs/book/install-and-build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,5 @@ gobin=$(go env GOBIN)
6363
gobin=${GOBIN:-$(go env GOPATH)/bin} # GOBIN won't always be set :-/
6464

6565
export PATH=${gobin}:$PATH
66-
/tmp/mdbook build
66+
verb=${1:-build}
67+
/tmp/mdbook ${verb}

docs/book/src/logos/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# KubeBuilder Logos
2+
3+
The official location for the logos is in a [public GCS
4+
bucket][kb-logos-gcs] (or if you like GCS XML listings,
5+
[here][kb-logos-gcs-direct]).
6+
7+
These logos are copies used in the book, resized to their appropriate
8+
sizes.
9+
10+
[kb-logos-gcs]: https://console.cloud.google.com/storage/browser/kubebuilder-logos
11+
12+
[kb-logos-gcs-direct]: https://storage.googleapis.com/kubebuilder-logos

docs/book/src/logos/favicon.png

2.75 KB
Loading
4.17 KB
Loading

docs/book/theme/css/custom.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.menu-title img {
2+
vertical-align: bottom;
3+
}

docs/book/theme/css/general.css renamed to docs/book/theme/css/markers.css

Lines changed: 0 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -1,147 +1,3 @@
1-
/* Base styles and content styles */
2-
3-
@import 'variables.css';
4-
5-
html {
6-
font-family: "Open Sans", sans-serif;
7-
color: var(--fg);
8-
background-color: var(--bg);
9-
text-size-adjust: none;
10-
}
11-
12-
body {
13-
margin: 0;
14-
font-size: 1rem;
15-
overflow-x: hidden;
16-
}
17-
18-
code {
19-
font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
20-
font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
21-
}
22-
23-
.left { float: left; }
24-
.right { float: right; }
25-
.hidden { display: none; }
26-
.play-button.hidden { display: none; }
27-
28-
h2, h3 { margin-top: 2.5em; }
29-
h4, h5 { margin-top: 2em; }
30-
31-
.header + .header h3,
32-
.header + .header h4,
33-
.header + .header h5 {
34-
margin-top: 1em;
35-
}
36-
37-
a.header:target h1:before,
38-
a.header:target h2:before,
39-
a.header:target h3:before,
40-
a.header:target h4:before {
41-
display: inline-block;
42-
content: "»";
43-
margin-left: -30px;
44-
width: 30px;
45-
}
46-
47-
.page {
48-
outline: 0;
49-
padding: 0 var(--page-padding);
50-
}
51-
.page-wrapper {
52-
box-sizing: border-box;
53-
}
54-
.js .page-wrapper {
55-
transition: margin-left 0.3s ease, transform 0.3s ease; /* Animation: slide away */
56-
}
57-
58-
.content {
59-
overflow-y: auto;
60-
padding: 0 15px;
61-
padding-bottom: 50px;
62-
}
63-
.content main {
64-
margin-left: auto;
65-
margin-right: auto;
66-
max-width: var(--content-max-width);
67-
}
68-
.content a { text-decoration: none; }
69-
.content a:hover { text-decoration: underline; }
70-
.content img { max-width: 100%; }
71-
.content .header:link,
72-
.content .header:visited {
73-
color: var(--fg);
74-
}
75-
.content .header:link,
76-
.content .header:visited:hover {
77-
text-decoration: none;
78-
}
79-
80-
table {
81-
margin: 0 auto;
82-
border-collapse: collapse;
83-
}
84-
table td {
85-
padding: 3px 20px;
86-
border: 1px var(--table-border-color) solid;
87-
}
88-
table thead {
89-
background: var(--table-header-bg);
90-
}
91-
table thead td {
92-
font-weight: 700;
93-
border: none;
94-
}
95-
table thead tr {
96-
border: 1px var(--table-header-bg) solid;
97-
}
98-
/* Alternate background colors for rows */
99-
table tbody tr:nth-child(2n) {
100-
background: var(--table-alternate-bg);
101-
}
102-
103-
104-
blockquote {
105-
margin: 20px 0;
106-
padding: 0 20px;
107-
color: var(--fg);
108-
background-color: var(--quote-bg);
109-
border-top: .1em solid var(--quote-border);
110-
border-bottom: .1em solid var(--quote-border);
111-
}
112-
113-
114-
:not(.footnote-definition) + .footnote-definition,
115-
.footnote-definition + :not(.footnote-definition) {
116-
margin-top: 2em;
117-
}
118-
.footnote-definition {
119-
font-size: 0.9em;
120-
margin: 0.5em 0;
121-
}
122-
.footnote-definition p {
123-
display: inline;
124-
}
125-
126-
.tooltiptext {
127-
position: absolute;
128-
visibility: hidden;
129-
color: #fff;
130-
background-color: #333;
131-
transform: translateX(-50%); /* Center by moving tooltip 50% of its width left */
132-
left: -8px; /* Half of the width of the icon */
133-
top: -35px;
134-
font-size: 0.8em;
135-
text-align: center;
136-
border-radius: 6px;
137-
padding: 5px 8px;
138-
margin: 5px;
139-
z-index: 1000;
140-
}
141-
.tooltipped .tooltiptext {
142-
visibility: visible;
143-
}
144-
1451
/* From here on out is custom stuff */
1462

1473
/* marker docs styles */

0 commit comments

Comments
 (0)