documentor 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_config.yml +11 -0
- data/_includes/short-navigation.html +1 -1
- data/_layouts/index-with-cards.html +29 -0
- data/_layouts/index.html +13 -13
- data/_layouts/page404.html +4 -2
- data/assets/css/main.css +83 -13
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8588d9bb3bb6224d7eb77896f597b637fa6b76edce376c237907546e3f280aa
|
4
|
+
data.tar.gz: 7cf115a1c5a4ec2f392bb153e20c2b03d7316c9caf0008376a66c7b91109fa80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ea917cdfa9733da45220af036b16ee515ec17f8d3bbb64233c3194d29931b3d91201c7a507b68d863e8d5d9150fcfa8197d36014ea4059fc11c110f84d4e840
|
7
|
+
data.tar.gz: 3ad476ec2f1f728779a12a095dd2ac3d311292a3c85059a73d14f526a6c43a07425b972bcc433ab97dbbdef4d36ae3fe1bc9d66a9073b1e784a6bbfc645690a8
|
data/_config.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
author_obfuscate_email: false
|
2
2
|
author_round_mugshot: true
|
3
3
|
index_show_header_latest: false
|
4
|
+
index_use_font: menuregular
|
4
5
|
short_navigation_ignore: [index, categories, page404]
|
5
6
|
style_typewriter: true
|
6
7
|
style_dark_bright: auto
|
@@ -9,6 +10,10 @@ title: YOUR SITE
|
|
9
10
|
collections:
|
10
11
|
authors:
|
11
12
|
output: true
|
13
|
+
cards:
|
14
|
+
output: true
|
15
|
+
pages:
|
16
|
+
output: true
|
12
17
|
|
13
18
|
defaults:
|
14
19
|
- scope:
|
@@ -22,6 +27,12 @@ defaults:
|
|
22
27
|
values:
|
23
28
|
layout: "post"
|
24
29
|
author: "default_author"
|
30
|
+
- scope:
|
31
|
+
path: ""
|
32
|
+
type: "cards"
|
33
|
+
values:
|
34
|
+
layout: "card"
|
35
|
+
language: "de"
|
25
36
|
- scope:
|
26
37
|
path: ""
|
27
38
|
values:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<nav {% if short_navigation_id %}id="{{ short_navigation_id }}" {% endif %}aria-label="{{ site.data.i18n.short_navigation_aria_label }}">
|
2
2
|
{% if short_navigation_include_home == true %}
|
3
|
-
<h1><a href="/">{{ site.title }}</a></h1>
|
3
|
+
<h1 {% if site.index_use_font %} class="font-{{ site.index_use_font }}"{% endif %}><a href="/">{{ site.title }}</a></h1>
|
4
4
|
{% endif %}
|
5
5
|
<ul>
|
6
6
|
{% for category in site.categories %}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
---
|
2
|
+
layout: base
|
3
|
+
---
|
4
|
+
<main id="front" class="container">
|
5
|
+
<header id="front-with-cards-header">
|
6
|
+
<h1 {% if site.index_use_font %} class="font-{{ site.index_use_font }}"{% endif %}>{{ site.title }}</h1>
|
7
|
+
{% include short-navigation.html %}
|
8
|
+
</header>
|
9
|
+
<nav id="front-cards">
|
10
|
+
<ul class="deck">
|
11
|
+
{% for page in site.cards %}
|
12
|
+
{% if page.url_external %}
|
13
|
+
{% assign url = page.url_external %}
|
14
|
+
{% else %}
|
15
|
+
{% assign url = page.url %}
|
16
|
+
{% endif %}
|
17
|
+
<li><a href="{{ url }}"><article><hgroup>{% if page.image %}<img src="{{ page.image }}"/>{% endif %}<h1>{{ page.title }}</h1></hgroup></article></a></li>
|
18
|
+
{% endfor %}
|
19
|
+
</ul>
|
20
|
+
</nav>
|
21
|
+
<nav id="latest-nav" {% if site.index_show_header_latest %} aria-labelledby="#header-latest"{% else %} aria-label="{{ site.data.i18n.index_aria_latest }}"{% endif %}>
|
22
|
+
{% if site.index_show_header_latest %}<h2 id="header-latest">Latest</h2>{% endif %}
|
23
|
+
<ul>
|
24
|
+
{% for post in site.posts limit:5 %}
|
25
|
+
<li><a href="{{ post.url }}">/ {{ post.date | date: "%Y-%m-%d" }} / {{ post.categories | first }} / {{ post.title }}</a></li>
|
26
|
+
{% endfor %}
|
27
|
+
</ul>
|
28
|
+
</nav>
|
29
|
+
</main>
|
data/_layouts/index.html
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
layout: base
|
3
3
|
---
|
4
4
|
<main id="front" class="container">
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
</main
|
5
|
+
<header id="front-header">
|
6
|
+
<h1 {% if site.index_use_font %} class="font-{{ site.index_use_font }}"{% endif %}>{{ site.title }}</h1>
|
7
|
+
{% include short-navigation.html %}
|
8
|
+
</header>
|
9
|
+
<nav id="latest-nav" {% if site.index_show_header_latest %} aria-labelledby="#header-latest"{% else %} aria-label="{{ site.data.i18n.index_aria_latest }}"{% endif %}>
|
10
|
+
{% if site.index_show_header_latest %}<h2 id="header-latest">Latest</h2>{% endif %}
|
11
|
+
<ul>
|
12
|
+
{% for post in site.posts limit:5 %}
|
13
|
+
<li><a href="{{ post.url }}">/ {{ post.date | date: "%Y-%m-%d" }} / {{ post.categories | first }} / {{ post.title }}</a></li>
|
14
|
+
{% endfor %}
|
15
|
+
</ul>
|
16
|
+
</nav>
|
17
|
+
</main>:
|
data/_layouts/page404.html
CHANGED
@@ -2,12 +2,14 @@
|
|
2
2
|
layout: base
|
3
3
|
---
|
4
4
|
<main id="page404" class="container">
|
5
|
-
<header>
|
5
|
+
<header id="page404-header">
|
6
6
|
<hgroup>
|
7
|
-
<h1>404</h1>
|
7
|
+
<h1 {% if site.index_use_font %} class="font-{{ site.index_use_font }}"{% endif %}>404</h1>
|
8
8
|
<p>{{ site.data.i18n.page404_subtitle }}</p>
|
9
9
|
</hgroup>
|
10
10
|
<p>{{ site.data.i18n.page404_text }}</p>
|
11
|
+
{% assign short_navigation_id = 'short-navigation' %}
|
12
|
+
{% assign short_navigation_include_home = true %}
|
11
13
|
{% include short-navigation.html %}
|
12
14
|
</header>
|
13
15
|
</main>
|
data/assets/css/main.css
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
}
|
77
77
|
@font-face {
|
78
78
|
font-family: 'BoticRegular';
|
79
|
-
src: url('../fonts/pixeldroidBoticRegular/pixeldroidBoticRegular.otf'), '../fonts/pixeldroidBoticRegular/pixeldroidBoticRegular.ttf') format('truetype'), url('../fonts/
|
79
|
+
src: url('../fonts/pixeldroidBoticRegular/pixeldroidBoticRegular.otf'), '../fonts/pixeldroidBoticRegular/pixeldroidBoticRegular.ttf') format('truetype'), url('../fonts/pixeldroidBoticRegular/pixeldroidBoticRegular-64.fnt') format('fnt');
|
80
80
|
font-weight: normal;
|
81
81
|
font-style: normal;
|
82
82
|
}
|
@@ -136,6 +136,31 @@ body, .container {
|
|
136
136
|
}
|
137
137
|
}
|
138
138
|
|
139
|
+
/**
|
140
|
+
* Fonts
|
141
|
+
*/
|
142
|
+
|
143
|
+
.font-menuregular {
|
144
|
+
font-family: MenuRegular !important;
|
145
|
+
}
|
146
|
+
|
147
|
+
.font-boticregular {
|
148
|
+
font-family: BoticRegular !important;
|
149
|
+
}
|
150
|
+
|
151
|
+
.font-serif {
|
152
|
+
font-family: serif !important;
|
153
|
+
}
|
154
|
+
|
155
|
+
.font-sans {
|
156
|
+
font-family: sans !important;
|
157
|
+
}
|
158
|
+
|
159
|
+
.font-mono {
|
160
|
+
font-family: mono !important;
|
161
|
+
}
|
162
|
+
|
163
|
+
|
139
164
|
/**
|
140
165
|
* Front Page / 404
|
141
166
|
*/
|
@@ -160,8 +185,19 @@ body, .container {
|
|
160
185
|
font-weight: bold;
|
161
186
|
}
|
162
187
|
|
163
|
-
header {
|
188
|
+
#front-header {
|
189
|
+
grid-area: main;
|
190
|
+
}
|
191
|
+
|
192
|
+
#front-with-cards-header {
|
193
|
+
grid-area: header;
|
194
|
+
}
|
195
|
+
|
196
|
+
#front-cards {
|
164
197
|
grid-area: main;
|
198
|
+
}
|
199
|
+
|
200
|
+
#front-header, #front-with-cards-header, #page404-header {
|
165
201
|
align-content: center;
|
166
202
|
|
167
203
|
text-align: center;
|
@@ -174,10 +210,9 @@ body, .container {
|
|
174
210
|
}
|
175
211
|
|
176
212
|
#front {
|
177
|
-
h1 {
|
213
|
+
&>header h1 {
|
178
214
|
margin-bottom: 0;
|
179
215
|
font-size: clamp(2rem, 10vw, 9rem);
|
180
|
-
font-family: MenuRegular;
|
181
216
|
text-transform: none;
|
182
217
|
}
|
183
218
|
|
@@ -189,18 +224,54 @@ body, .container {
|
|
189
224
|
}
|
190
225
|
|
191
226
|
#page404 {
|
192
|
-
|
193
|
-
font-size: clamp(2rem,
|
194
|
-
margin-bottom:
|
227
|
+
hgroup {
|
228
|
+
font-size: clamp(2rem, 6vw, 6rem);
|
229
|
+
margin-bottom: 3rem;
|
230
|
+
|
231
|
+
h1 {
|
232
|
+
font-size: clamp(2rem, 20vw, 9rem);
|
233
|
+
margin-bottom: 0;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}
|
237
|
+
|
238
|
+
#front-with-cards-header {
|
239
|
+
margin-bottom: 3rem;
|
240
|
+
}
|
241
|
+
|
242
|
+
.deck {
|
243
|
+
display: grid;
|
244
|
+
grid-template-columns: 1fr 1fr;
|
245
|
+
justify-content: center;
|
246
|
+
justify-items: stretch;
|
247
|
+
grid-auto-flow: row;
|
248
|
+
gap: 1rem 1rem;
|
249
|
+
|
250
|
+
li {
|
251
|
+
display: block;
|
252
|
+
margin: 0;
|
253
|
+
padding: 0;
|
195
254
|
}
|
196
255
|
|
197
256
|
hgroup {
|
198
|
-
|
199
|
-
|
257
|
+
display: grid;
|
258
|
+
grid-template-areas:
|
259
|
+
"image"
|
260
|
+
"header";
|
261
|
+
grid-template-rows: 1fr auto;
|
262
|
+
border-style: solid;
|
263
|
+
border-width: calc(1rem / 16);
|
200
264
|
}
|
201
265
|
|
202
|
-
|
203
|
-
|
266
|
+
img {
|
267
|
+
grid-area: image;
|
268
|
+
}
|
269
|
+
|
270
|
+
h1 {
|
271
|
+
grid-area: header;
|
272
|
+
text-align: center;
|
273
|
+
margin: 0;
|
274
|
+
padding: 1rem;
|
204
275
|
}
|
205
276
|
}
|
206
277
|
|
@@ -212,7 +283,7 @@ body, .container {
|
|
212
283
|
h1 {
|
213
284
|
display: inline;
|
214
285
|
a {
|
215
|
-
font-family:
|
286
|
+
font-family: inherit;
|
216
287
|
}
|
217
288
|
}
|
218
289
|
|
@@ -300,7 +371,6 @@ body, .container {
|
|
300
371
|
border-width: 0 0 0 calc(1rem / 16);
|
301
372
|
font-family: mono;
|
302
373
|
width: calc(var(--width-page-vw) - var(--width-padding));
|
303
|
-
/*width: 300px;*/
|
304
374
|
overflow-x: auto;
|
305
375
|
}
|
306
376
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: documentor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- randomchars42
|
@@ -40,6 +40,7 @@ files:
|
|
40
40
|
- _layouts/base.html
|
41
41
|
- _layouts/categories.html
|
42
42
|
- _layouts/default.html
|
43
|
+
- _layouts/index-with-cards.html
|
43
44
|
- _layouts/index.html
|
44
45
|
- _layouts/page.html
|
45
46
|
- _layouts/page404.html
|