jekyll-theme-gerbera 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 425dc654f20bf5b18a84a843b2286a06e83e8fac
4
+ data.tar.gz: 34b126f5672a240561fec662cb653e3e62ab03b7
5
+ SHA512:
6
+ metadata.gz: 777d72035a7f00e0df94d46de556a0421fde56befad2c60cd9da3a5fa200bf45e0e8b25fa08c493a3f1f8f64d432ac271e1766cbbd543b3d19673337b53bcc32
7
+ data.tar.gz: 98ba659b8f13d963ff03838d192246191611f289f339935a94323a9fe0ea8a4764ed1a729f660a05b9b74a648c5b3b16f86834593f2defd74142d9e70d88a6fa
data/LICENSE.md ADDED
@@ -0,0 +1,9 @@
1
+ # Released under MIT License
2
+
3
+ Copyright (c) 2017 Greg Arakelian
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,10 @@
1
+ # Jekyll Documentation Theme
2
+
3
+ This project is a [Jekyll](http://jekyllrb.com) theme inspired by the [Facebook GraphQL documentation](http://graphql.org).
4
+
5
+ This project was just released and more documentation will be provided shortly.
6
+
7
+
8
+ ## License
9
+
10
+ Open sourced under the [MIT license](LICENSE.md).
@@ -0,0 +1,27 @@
1
+ <head>
2
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
4
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
5
+
6
+ <title>
7
+ {% if page.title == "Home" %}
8
+ {{ site.title }} &middot; {{ site.tagline }}
9
+ {% else %}
10
+ {{ page.title }} &middot; {{ site.title }}
11
+ {% endif %}
12
+ </title>
13
+
14
+ <!-- CSS -->
15
+ <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
16
+ <link rel="stylesheet" href="//fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">
17
+ <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Rubik:300|Roboto:300">
18
+ <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto+Mono:400,400i,600">
19
+
20
+ <!-- Icons -->
21
+ <link rel="apple-touch-icon-precomposed" sizes="256x256 128x128 48x48 32x32 16x16" href="{{ "/assets/gerbera.icns" | relative_url }}">
22
+ <link rel="shortcut icon" href="{{ "/assets/favicon.ico" | relative_url }}">
23
+
24
+ <!-- RSS -->
25
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
26
+
27
+ </head>
@@ -0,0 +1,14 @@
1
+ <nav>
2
+ {% assign ordered_collections = site.collections | sort:"order","last" %}
3
+ {% for c in ordered_collections %}
4
+ {% if c.indexPage == nil %}
5
+ {% assign firstDoc = c.docs | sort:"order","last" | first %}
6
+ {% if c.title != nil %}
7
+ <a href="{{ site.baseurl }}{{ firstDoc.url }}">{{c.title}}</a>
8
+ {% endif %}
9
+ {% else %}
10
+ <a href="{{ site.baseurl }}{{ c.indexPage }}">{{c.title}}</a>
11
+ {% endif %}
12
+ {% endfor %}
13
+ <a href="{{site.github.repo}}">Github</a>
14
+ </nav>
@@ -0,0 +1,13 @@
1
+ <header>
2
+ <section>
3
+ <a class="nav-home" href="{{ site.baseurl }}/"><img class="nav-logo" src="{{ site.baseurl }}/assets/img/logo.svg" width="30" height="30">{{ site.title }}</a>
4
+ {% include menu_nav.html %}
5
+ <div class="algolia-search-wrapper">
6
+ <span class="algolia-autocomplete" style="position: relative; display: inline-block; direction: ltr;">
7
+ <input type="text" id="algolia-search-input" placeholder="Search docs..." class="aa-input" autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="false" aria-labelledby="algolia-search-input" aria-owns="algolia-autocomplete-listbox-0" dir="auto" style="position: relative; vertical-align: top;">
8
+ <pre aria-hidden="true" style="position: absolute; visibility: hidden; white-space: pre; font-family: Rubik, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 300; word-spacing: 0px; letter-spacing: normal; text-indent: 0px; text-rendering: auto; text-transform: none;"></pre>
9
+ <span class="aa-dropdown-menu" role="listbox" id="algolia-autocomplete-listbox-0" style="position: absolute; top: 100%; z-index: 100; display: none; left: 0px; right: auto;"><div class="aa-dataset-1"></div></span>
10
+ </span>
11
+ </div>
12
+ </section>
13
+ </header>
@@ -0,0 +1,28 @@
1
+ {% assign collection = page.collection %}
2
+ {% assign docs = site.[collection] %}
3
+ {% if docs %}
4
+ {% assign sorted_docs = docs | sort:"order","last" %}
5
+ <div class="nav-docs">
6
+ <div>
7
+ <h3>{{ collection | upcase }}</h3>
8
+ <ul>
9
+ {% for document in sorted_docs %}
10
+ <!-- {{ document.date }} -->
11
+ {% if document.title != null %}
12
+ <li>
13
+ {% assign subheadings = document.subheadings %}
14
+ <a class="active" href="{{ site.baseurl }}{{ document.url }}">{{ document.title }}</a>
15
+ {% if subheadings.size != 0 %}
16
+ <ul>
17
+ {% for subheading in subheadings %}
18
+ <li><a href="{{ site.baseurl }}{{ subheading.url }}">{{ subheading.title }}</a></li>
19
+ {% endfor %}
20
+ </ul>
21
+ {% endif %}
22
+ </li>
23
+ {% endif %}
24
+ {% endfor %}
25
+ </ul>
26
+ </div>
27
+ </div>
28
+ {% endif %}
@@ -0,0 +1,7 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en-us">
3
+ {% include head.html %}
4
+ <body{% if page.bodyClass != nil %} class="{{ page.bodyClass }}"{% endif %}>
5
+ {{ content }}
6
+ </body>
7
+ </html>
@@ -0,0 +1,31 @@
1
+ ---
2
+ layout: bare
3
+ ---
4
+
5
+ {% include menubar.html %}
6
+ <section>
7
+ <div class="documentationContent">
8
+ <div class="inner-content">
9
+ {{ content }}
10
+
11
+ {% assign collection = page.collection %}
12
+ {% assign docs = site.[collection] %}
13
+ {% if docs %}
14
+ {% assign last_url = "" %}
15
+ {% assign sorted_docs = docs | sort:"order","last" %}
16
+ {% for doc in sorted_docs %}
17
+ {% if last_url == page.url %}
18
+ <a class="read-next" href="{{ site.baseurl }}{{ doc.url }}">
19
+ <span class="read-next-continue">Continue Reading →</span>
20
+ <span class="read-next-title">{{doc.title}}</span>
21
+ </a>
22
+ {% break %}
23
+ {% endif %}
24
+ {% assign last_url = doc.url %}
25
+ {% endfor %}
26
+ {% endif %}
27
+ </div>
28
+
29
+ {% include sidebar.html %}
30
+ </div>
31
+ </section>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: bare
3
+ bodyClass: index
4
+ ---
5
+
6
+ {% include menubar.html %}
7
+ {{ content }}
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1>{{ page.title }}</h1>
6
+
7
+ {{ content }}
@@ -0,0 +1,24 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <h1 class="post-title">{{ page.title }}</h1>
6
+ <span class="post-date">{{ page.date | date:"%B %e, %Y" }}</span>
7
+
8
+ {{ content }}
9
+
10
+ <div class="related">
11
+ <h2>Related Posts</h2>
12
+ <ul class="related-posts">
13
+ {% for post in site.related_posts limit:3 %}
14
+ <li>
15
+ <h3>
16
+ <a href="{{ post.url | relative_url }}">
17
+ {{ post.title }}
18
+ <small>{{ post.date | date_to_string }}</small>
19
+ </a>
20
+ </h3>
21
+ </li>
22
+ {% endfor %}
23
+ </ul>
24
+ </div>
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="posts">
6
+ {% for post in site.posts %}
7
+ <div class="post">
8
+ <h1 class="post-title">
9
+ <a href="{{ post.url | relative_url }}">{{ post.title }}</a>
10
+ </h1>
11
+ <span class="post-date">{{ post.date | date_to_string }}</span>
12
+ {{ post.content }}
13
+ </div>
14
+ {% endfor %}
15
+ </div>
@@ -0,0 +1,108 @@
1
+ /** Algolia Doc Search **/
2
+
3
+ .algolia-search-wrapper {
4
+ float: right;
5
+ display: inline-block;
6
+ vertical-align: top;
7
+ pointer-events: auto;
8
+
9
+ @media screen and (max-width: 1020px) {
10
+ display: none;
11
+ }
12
+
13
+ input {
14
+ @include headline-font($size: 15px, $color: desaturate(lighten($dark-color, 50%), 50%));
15
+ background: transparent url('#{$baseurl}/assets/img/search.svg') no-repeat 10px center;
16
+ background-color: rgba(255, 255, 255, 0.1);
17
+ background-size: 16px 16px;
18
+ border-radius: 15px;
19
+ border: solid 1px fade-out($dark-color, .80);
20
+ height: 30px;
21
+ margin-top: 10px;
22
+ outline: none;
23
+ padding: 0 10px 0 35px;
24
+ width: 180px;
25
+ transition: width 0.2s ease-out;
26
+
27
+ &:focus {
28
+ width: 300px;
29
+ }
30
+ }
31
+
32
+ .algolia-autocomplete {
33
+ vertical-align: top;
34
+ height: 53px;
35
+ }
36
+
37
+ .aa-dropdown-menu {
38
+ @include body-font($size: 15px);
39
+ margin-top: -10px;
40
+ width: 600px;
41
+ margin-left: -300px;
42
+ padding: 0;
43
+ border: none;
44
+ border-radius: 4px;
45
+ box-shadow:
46
+ 0 0 1px rgba(0, 0, 0, 0.2),
47
+ 0 2px 8px rgba(0, 0, 0, 0.2);
48
+
49
+ .aa-suggestion {
50
+ border-top: solid 1px #F3F3F3;
51
+
52
+ &:first-child {
53
+ border: none;
54
+ border-radius: 4px 4px 0 0;
55
+
56
+ .algolia-docsearch-suggestion--subcategory-column {
57
+ border-top-left-radius: 4px;
58
+ }
59
+ }
60
+
61
+ &:last-child {
62
+ border-radius: 0 0 4px 4px;
63
+
64
+ .algolia-docsearch-suggestion--subcategory-column {
65
+ border-bottom-left-radius: 4px;
66
+ }
67
+ }
68
+ }
69
+
70
+ .algolia-docsearch-suggestion--category-header {
71
+ display: none;
72
+ }
73
+
74
+ .algolia-docsearch-footer {
75
+ padding: 2px 12px;
76
+ border-top-color: #EDEDED;
77
+ opacity: 0.75;
78
+ }
79
+
80
+ // highlighted matching search query
81
+ .algolia-docsearch-suggestion--highlight {
82
+ background-color: $rhodamine-color;
83
+ color: white;
84
+ }
85
+
86
+ // hover
87
+ .aa-cursor {
88
+ .algolia-docsearch-suggestion {
89
+ background: #FCF9FB;
90
+ }
91
+
92
+ .algolia-docsearch-suggestion--content {
93
+ color: $rhodamine-color;
94
+ }
95
+ }
96
+
97
+ .algolia-docsearch-suggestion,
98
+ .algolia-docsearch-suggestion--content {
99
+ border: none;
100
+ }
101
+
102
+ .algolia-docsearch-suggestion--subcategory-column {
103
+ @include headline-font($size: 13px, $color: lighten($dark-color, 50%));
104
+ border: none;
105
+ padding-top: 9px;
106
+ }
107
+ }
108
+ }
data/_sass/_base.scss ADDED
@@ -0,0 +1,343 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ border: none;
4
+ margin: 0;
5
+ padding: 0;
6
+ }
7
+
8
+ body {
9
+ @include body-font();
10
+ background-color: white;
11
+ -webkit-text-size-adjust: 100%;
12
+ }
13
+
14
+ a {
15
+ color: $rhodamine-color;
16
+ text-decoration: none;
17
+ &:hover, &:focus {
18
+ text-decoration: underline;
19
+ }
20
+ }
21
+
22
+ p {
23
+ margin: 1em 0;
24
+ }
25
+
26
+ em {
27
+ font-style: italic;
28
+ }
29
+
30
+ h1, h2, h3, h4, h5, h6 {
31
+ margin: 2em 0 0;
32
+ text-rendering: optimizelegibility;
33
+ }
34
+
35
+ h1 {
36
+ @include headline-font(40px);
37
+ }
38
+
39
+ h2 {
40
+ @include headline-font(30px);
41
+ }
42
+
43
+ h3 {
44
+ @include headline-font(22px);
45
+ }
46
+
47
+ h4 {
48
+ @include headline-font(18px);
49
+ }
50
+
51
+ h5 {
52
+ @include headline-font(15px);
53
+ }
54
+
55
+ h6 {
56
+ @include headline-font(13px);
57
+ }
58
+
59
+ // Anchors and hash links appear next to headers.
60
+ h1 > .anchor,
61
+ h2 > .anchor,
62
+ h3 > .anchor,
63
+ h4 > .anchor,
64
+ h5 > .anchor,
65
+ h6 > .anchor {
66
+ margin-top: -50px;
67
+ position: absolute;
68
+ }
69
+
70
+ .hash-link {
71
+ color: #aaa;
72
+ visibility: hidden;
73
+ }
74
+
75
+ h1:hover > .hash-link,
76
+ h2:hover > .hash-link,
77
+ h3:hover > .hash-link,
78
+ h4:hover > .hash-link,
79
+ h5:hover > .hash-link,
80
+ h6:hover > .hash-link {
81
+ visibility: visible;
82
+ }
83
+
84
+ ul, ol {
85
+ margin: 1em 0 1em 2em;
86
+ padding: 0;
87
+ }
88
+
89
+ p + ul, p + ol {
90
+ margin-top: 1em;
91
+ }
92
+
93
+ ul ul, ul ol, ol ol, ol ul {
94
+ margin-bottom: 0;
95
+ }
96
+
97
+ li {
98
+ margin-bottom: 1em;
99
+ }
100
+
101
+ hr {
102
+ height: 0;
103
+ border-top: 1px solid #ccc;
104
+ border-bottom: 1px solid #eee;
105
+ }
106
+
107
+ li code,
108
+ p code {
109
+ @include code-font(15px);
110
+ background-color: #f8f8f8;
111
+ border-radius: 2px;
112
+ padding: 4px 4px 2px;
113
+ margin: 0 -1px;
114
+ }
115
+
116
+ /* Header and Navigation */
117
+
118
+ header {
119
+ @include headline-font($size: 15px);
120
+ height: 50px;
121
+ background: white;
122
+ box-shadow: inset 0 -1px 0 0px rgba(0, 0, 0, 0.1);
123
+ z-index: 10;
124
+
125
+ // Home link within nav.
126
+ .nav-home {
127
+ float: left;
128
+ font-size: 18px;
129
+ color: $rhodamine-color;
130
+ line-height: 50px;
131
+ display: inline-block;
132
+ padding-right: 1em;
133
+ text-decoration: none;
134
+
135
+ img {
136
+ vertical-align: -9px;
137
+ margin-right: 6px;
138
+ width: 30px;
139
+ height: 30px;
140
+ }
141
+ }
142
+ }
143
+
144
+ nav {
145
+ @media screen and (min-width: 1020px) {
146
+ float: left;
147
+ }
148
+ @media screen and (max-width: 1019px) {
149
+ text-align: center;
150
+ margin: 0 -1em;
151
+ }
152
+
153
+ a {
154
+ color: #aaa;
155
+ display: inline-block;
156
+ line-height: 50px;
157
+ padding: 0 1em;
158
+ transition: color 0.1s ease-out;
159
+
160
+ &:hover, &:focus, &.active {
161
+ color: $text-color;
162
+ text-decoration: none;
163
+ }
164
+ }
165
+ }
166
+
167
+ section {
168
+ max-width: 1080px;
169
+ margin: 0 auto;
170
+ padding: 0 20px;
171
+ }
172
+
173
+ footer {
174
+ @include body-font($size: 15px);
175
+ background: lighten($dark-color, 10%);
176
+ box-shadow: inset 0 10px 10px -5px darken($dark-color, 5%);
177
+ padding-top: 2em;
178
+ padding-bottom: 2em;
179
+ -webkit-font-smoothing: antialiased;
180
+ -moz-osx-font-smoothing: grayscale;
181
+
182
+ .sitemap {
183
+ display: flex;
184
+ justify-content: space-between;
185
+ margin-bottom: 3em;
186
+
187
+ div {
188
+ flex: 1;
189
+ }
190
+
191
+ .nav-home {
192
+ display: table;
193
+ margin: -12px 20px 0 0;
194
+ padding: 10px;
195
+ width: 50px;
196
+ height: 50px;
197
+ background: url("#{$baseurl}/assets/img/logo-gray.svg") no-repeat content-box;
198
+
199
+ &:hover, &:focus {
200
+ background-image: url("#{$baseurl}/assets/img/logo.svg");
201
+ }
202
+
203
+ @media screen and (max-width: 740px) {
204
+ display: none;
205
+ }
206
+ }
207
+
208
+ a {
209
+ color: white;
210
+ display: table;
211
+ margin: 2px -10px;
212
+ padding: 3px 10px;
213
+ &:hover, &:focus {
214
+ color: $rhodamine-color;
215
+ text-decoration: none;
216
+ }
217
+ }
218
+
219
+ h5, h6 {
220
+ margin: 0 0 10px;
221
+
222
+ &, & > a {
223
+ color: lighten($dark-color, 50%);
224
+ }
225
+
226
+ & > a {
227
+ margin: 0 -10px;
228
+ }
229
+ }
230
+ }
231
+
232
+ .fbOpenSource {
233
+ display: block;
234
+ margin: 1em auto;
235
+ opacity: 0.4;
236
+ transition: opacity 0.15s ease-in-out;
237
+ width: 170px;
238
+
239
+ &:hover {
240
+ opacity: 1.0;
241
+ }
242
+ }
243
+
244
+ .copyright {
245
+ color: rgba(255,255,255,0.4);
246
+ text-align: center;
247
+ }
248
+ }
249
+
250
+
251
+
252
+
253
+
254
+ .guestBio {
255
+ background: #f9f0f3;
256
+ border-top: solid 2px #e0c3c8;
257
+ font-style: italic;
258
+ margin: 1em -10px;
259
+ padding: 10px;
260
+ }
261
+
262
+ .blogContent {
263
+ *zoom: 1;
264
+ padding-top: 20px;
265
+ }
266
+
267
+ .blogContent:before, .blogContent:after {
268
+ content: " ";
269
+ display: table;
270
+ }
271
+
272
+ .blogContent:after {
273
+ clear: both;
274
+ }
275
+
276
+ .blogContent blockquote {
277
+ padding: 5px 15px;
278
+ margin: 20px 0;
279
+ background-color: #f8f5ec;
280
+ border-left: 5px solid #f7ebc6;
281
+ }
282
+
283
+ .blogContent img {
284
+ max-width: 100%;
285
+ }
286
+
287
+
288
+
289
+ div[data-twttr-id] iframe {
290
+ margin: 10px auto !important;
291
+ }
292
+
293
+ p + .apiIndex {
294
+ margin-top: 0;
295
+ }
296
+ .apiIndex {
297
+ list-style: none;
298
+ margin: 0 0 30px 0;
299
+ }
300
+ .apiIndex li {
301
+ margin: 0 0 5px 0;
302
+ color: rgba(0, 0, 0, 0.35);
303
+ }
304
+ .apiIndex li a {
305
+ color: inherit;
306
+ display: block;
307
+ position: relative;
308
+ text-decoration: none;
309
+ }
310
+ .apiIndex li a:hover::before {
311
+ color: $rhodamine-color;
312
+ content: '#';
313
+ font-size: 16px;
314
+ left: -2em;
315
+ line-height: 20px;
316
+ position: absolute;
317
+ }
318
+
319
+ .apiIndex pre {
320
+ @include code-font();
321
+ direction: ltr;
322
+ -webkit-hyphens: none;
323
+ -moz-hyphens: none;
324
+ -ms-hyphens: none;
325
+ hyphens: none;
326
+ tab-size: 2;
327
+ text-align: left;
328
+ text-shadow: 0 1px white;
329
+ white-space: pre;
330
+ word-break: normal;
331
+ word-spacing: normal;
332
+ }
333
+
334
+ .apiIndex li {
335
+ font-size: 13px;
336
+ line-height: 17px;
337
+ padding: 7px 14px;
338
+ background: white;
339
+ box-shadow: inset 0 0 0 1px #EEE, inset 4px 0 0 #EEE;
340
+ border-radius: 3px;
341
+ margin-left: -4px;
342
+ }
343
+