documentor 0.2.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00e269e315db0d278489d7d7f335135d07c78a0e6860cf9b97509cfcead2c391
4
- data.tar.gz: 6b224db6973d288918ad3aba95a795500de021d6b8b4f5090fa52d2e7a385b10
3
+ metadata.gz: a8588d9bb3bb6224d7eb77896f597b637fa6b76edce376c237907546e3f280aa
4
+ data.tar.gz: 7cf115a1c5a4ec2f392bb153e20c2b03d7316c9caf0008376a66c7b91109fa80
5
5
  SHA512:
6
- metadata.gz: e1da26182635c7ab0b8a2629330016e980192d4503dfc329ea929b34d5cf856eec722ea4e48f6160b7906f6b4d7b049e74830df5ded0bacf19edf524bbc94ce3
7
- data.tar.gz: a7d543e7e44482378e89838a6cdabec2559971b796acba8be4140ee13307800331a9ab94c1bcb24a7a54b7b7b01f2f4eea2da1a94f2159d9afd7567cd4815f40
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:
data/_data/i18n.yml CHANGED
@@ -3,7 +3,7 @@ author_github: "github: "
3
3
  author_image_alt: "image of "
4
4
  author_orcid: "orcid: "
5
5
  categories_heading: Categories
6
- default_by: "by "
6
+ default_by: " by "
7
7
  default_on: ", on "
8
8
  index_aria_latest: Navigate the latest articles
9
9
  page404_subtitle: We are looking for this site as well...
@@ -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
- <header>
6
- <h1>{{ 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>
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>:
@@ -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/pixeldroidMenuRegular/pixeldroidMenuRegular-64.fnt') format('fnt');
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
- h1 {
193
- font-size: clamp(2rem, 20vw, 9rem);
194
- margin-bottom: 0;
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
- font-size: clamp(2rem, 10vw, 9rem);
199
- margin-bottom: 3rem;
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
- h1, hgroup {
203
- font-family: MenuRegular;
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: MenuRegular;
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.2.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