jekyll-zettel 0.6.4 → 0.6.9
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/lib/jekyll/stubs/akteur.md +35 -0
- data/lib/jekyll/stubs/blatt.md +18 -18
- data/lib/jekyll/stubs/glosse.md +6 -1
- data/lib/jekyll/stubs/timeline.json +25 -0
- data/lib/jekyll/stubs/zeitleiste.md +36 -0
- data/lib/jekyll/stubs/zettel.md +5 -0
- data/lib/jekyll/zettel/akteur.rb +22 -0
- data/lib/jekyll/zettel/blatt.rb +22 -0
- data/lib/jekyll/zettel/version.rb +1 -1
- data/lib/jekyll/zettel/zeitleiste.rb +23 -0
- data/lib/jekyll/zettel/zettelkasten.rb +1 -1
- data/lib/jekyll/zettel.rb +3 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13765caa336e4d532e0ff3e7e7bf5ed4124188686280912bcc9781d81401ddb5
|
4
|
+
data.tar.gz: e9e091bc97869599365da6a34f78bc626be7501f0a794b3c4279765e578aaeae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd15b3a18a957dbb0eac1d3d459858a3cc1cbe82e58ce084c95c0971640145620d7ecafb7ad7e46c7177ed61824693f9b0e4ff5f4807b390f0840442c30a1aa1
|
7
|
+
data.tar.gz: '09cfc36154bf4bccd6dfaa5cfc36f4a7f847024ff03f0e94c8e041bfdfc1fed0f14d219a974999a0f8fbe3a34e4460130241cfb2a748cbc4ce78f8b53a107f87'
|
@@ -0,0 +1,35 @@
|
|
1
|
+
---
|
2
|
+
layout: akteur
|
3
|
+
#
|
4
|
+
# created_at: #{Time.now}
|
5
|
+
#
|
6
|
+
# Die ID der Glosse entspricht dem Namen des Unterverzeichnisses.
|
7
|
+
# Dieser Wert darf auf keinen Fall geändert werden!
|
8
|
+
#
|
9
|
+
id: #{args['slug']}
|
10
|
+
#
|
11
|
+
# Der Status des Infotypen
|
12
|
+
# https://jessas.org/projekt/dokumentation/infotype/#status
|
13
|
+
#
|
14
|
+
status: draft
|
15
|
+
#
|
16
|
+
# Die Dokumentation aller Properties findest du unter
|
17
|
+
# https://jessas.org/projekt/dokumentation/arbeitsblatt/#frontmatter
|
18
|
+
#
|
19
|
+
title: #{args['title']}
|
20
|
+
description:
|
21
|
+
#
|
22
|
+
# Optionale Properties
|
23
|
+
#
|
24
|
+
# tags: []
|
25
|
+
# folgezettel: []
|
26
|
+
# image:
|
27
|
+
# via:
|
28
|
+
# text:
|
29
|
+
# href:
|
30
|
+
# annotation:
|
31
|
+
---
|
32
|
+
|
33
|
+
<!-- Fußnoten -->
|
34
|
+
|
35
|
+
<!-- Links -->
|
data/lib/jekyll/stubs/blatt.md
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
#
|
4
|
-
# Never ever change the id of your page!
|
5
|
-
# Changing the id has manifold side effects. Most of them unwanted.
|
6
|
-
# If you want to move or rename the page do it within the realms of
|
7
|
-
# this project.
|
2
|
+
layout: blatt
|
8
3
|
#
|
9
|
-
|
4
|
+
# created_at: #{Time.now}
|
10
5
|
#
|
6
|
+
# Die ID der Glosse entspricht dem Namen des Unterverzeichnisses.
|
7
|
+
# Dieser Wert darf auf keinen Fall geändert werden!
|
11
8
|
#
|
12
|
-
#
|
13
|
-
# Additional meta data may be required.
|
9
|
+
id: #{args['slug']}
|
14
10
|
#
|
15
|
-
|
11
|
+
# Der Status des Infotypen
|
12
|
+
# https://jessas.org/projekt/dokumentation/infotype/#status
|
16
13
|
#
|
14
|
+
status: draft
|
17
15
|
#
|
18
|
-
#
|
16
|
+
# Die Dokumentation aller Properties findest du unter
|
17
|
+
# https://jessas.org/projekt/dokumentation/arbeitsblatt/#frontmatter
|
19
18
|
#
|
20
|
-
title:
|
19
|
+
title: #{args['title']}
|
21
20
|
description:
|
22
21
|
#
|
22
|
+
# Optionale Properties
|
23
23
|
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
# character at the beginning of the corresponding lines.
|
27
|
-
#
|
28
|
-
# kicker:
|
24
|
+
# tags: []
|
25
|
+
# folgezettel: []
|
29
26
|
# image:
|
27
|
+
# via:
|
28
|
+
# text:
|
29
|
+
# href:
|
30
|
+
# annotation:
|
30
31
|
---
|
31
32
|
|
32
|
-
|
33
33
|
<!-- Fußnoten -->
|
34
34
|
|
35
35
|
<!-- Links -->
|
data/lib/jekyll/stubs/glosse.md
CHANGED
@@ -6,7 +6,12 @@ layout: glosse
|
|
6
6
|
# Die ID der Glosse entspricht dem Namen des Unterverzeichnisses.
|
7
7
|
# Dieser Wert darf auf keinen Fall geändert werden!
|
8
8
|
#
|
9
|
-
id: #{args['slug']}
|
9
|
+
id: #{args['slug']}
|
10
|
+
#
|
11
|
+
# Der Status des Infotypen
|
12
|
+
# https://jessas.org/projekt/dokumentation/infotype/#status
|
13
|
+
#
|
14
|
+
status: draft
|
10
15
|
tag: #{args['title']}
|
11
16
|
#
|
12
17
|
# Die Dokumentation aller Properties findest du unter
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"title": {
|
3
|
+
"text": {
|
4
|
+
"headline": "Titel der Zeitleiste",
|
5
|
+
"text": "Text…"
|
6
|
+
}
|
7
|
+
},
|
8
|
+
"events": [
|
9
|
+
{
|
10
|
+
"start_date": {
|
11
|
+
"year": ""
|
12
|
+
},
|
13
|
+
"display_date": "",
|
14
|
+
"media": {
|
15
|
+
"url": "/assets/<infotype.pn>",
|
16
|
+
"link": "/<infotype>/<slug>/",
|
17
|
+
"link_target": "_parent"
|
18
|
+
},
|
19
|
+
"text": {
|
20
|
+
"headline": "Titel der Folie",
|
21
|
+
"text": "Folientext…"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
]
|
25
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
layout: zeitleiste
|
3
|
+
#
|
4
|
+
# created_at: #{Time.now}
|
5
|
+
#
|
6
|
+
# Die ID der Glosse entspricht dem Namen des Unterverzeichnisses.
|
7
|
+
# Dieser Wert darf auf keinen Fall geändert werden!
|
8
|
+
#
|
9
|
+
id: #{args['slug']}
|
10
|
+
#
|
11
|
+
# Der Status des Infotypen
|
12
|
+
# https://jessas.org/projekt/dokumentation/infotype/#status
|
13
|
+
#
|
14
|
+
status: draft
|
15
|
+
#
|
16
|
+
# Die Dokumentation aller Properties findest du unter
|
17
|
+
# https://jessas.org/projekt/dokumentation/timeline/#frontmatter
|
18
|
+
#
|
19
|
+
title: #{args['title']}
|
20
|
+
description:
|
21
|
+
#
|
22
|
+
# Optionale Properties
|
23
|
+
#
|
24
|
+
# tags: []
|
25
|
+
# folgezettel: []
|
26
|
+
# image:
|
27
|
+
# video:
|
28
|
+
# via:
|
29
|
+
# text:
|
30
|
+
# href:
|
31
|
+
# annotation:
|
32
|
+
---
|
33
|
+
|
34
|
+
<!-- Fußnoten -->
|
35
|
+
|
36
|
+
<!-- Links -->
|
data/lib/jekyll/stubs/zettel.md
CHANGED
@@ -8,6 +8,11 @@ layout: zettel
|
|
8
8
|
#
|
9
9
|
id: #{args['uuid']}
|
10
10
|
#
|
11
|
+
# Der Status des Infotypen
|
12
|
+
# https://jessas.org/projekt/dokumentation/infotype/#status
|
13
|
+
#
|
14
|
+
status: draft
|
15
|
+
#
|
11
16
|
# Die Dokumentation aller Properties findest du unter
|
12
17
|
# https://jessas.org/projekt/dokumentation/zettel/#frontmatter
|
13
18
|
#
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Jekyll
|
2
|
+
module Zettel
|
3
|
+
# Scaffolder for infotype Glosse
|
4
|
+
class Akteur
|
5
|
+
|
6
|
+
include Jekyll::Zettel
|
7
|
+
|
8
|
+
def scaffold(args)
|
9
|
+
return nil if args_empty?(args)
|
10
|
+
|
11
|
+
slug = create_slug(args.first)
|
12
|
+
file = "akteur/#{slug}/index.md"
|
13
|
+
return file if create_dir_defensively('Akteur', slug, file).nil?
|
14
|
+
|
15
|
+
create_page({ 'slug' => slug, 'title' => args.first }, file, 'akteur.md')
|
16
|
+
|
17
|
+
Jekyll.logger.info '✓', "Created akteur with slug `#{slug}`"
|
18
|
+
file
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Jekyll
|
2
|
+
module Zettel
|
3
|
+
# Scaffolder for infotype Glosse
|
4
|
+
class Blatt
|
5
|
+
|
6
|
+
include Jekyll::Zettel
|
7
|
+
|
8
|
+
def scaffold(args)
|
9
|
+
return nil if args_empty?(args)
|
10
|
+
|
11
|
+
slug = create_slug(args.first)
|
12
|
+
file = "arbeitsblatt/#{slug}/index.md"
|
13
|
+
return file if create_dir_defensively('Arbeitsblatt', slug, file).nil?
|
14
|
+
|
15
|
+
create_page({ 'slug' => slug, 'title' => args.first }, file, 'blatt.md')
|
16
|
+
|
17
|
+
Jekyll.logger.info '✓', "Created blatt with slug `#{slug}`"
|
18
|
+
file
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module Jekyll
|
2
|
+
module Zettel
|
3
|
+
# Scaffolder for infotype Glosse
|
4
|
+
class Zeitleiste
|
5
|
+
|
6
|
+
include Jekyll::Zettel
|
7
|
+
|
8
|
+
def scaffold(args)
|
9
|
+
return nil if args_empty?(args)
|
10
|
+
|
11
|
+
slug = create_slug(args.first)
|
12
|
+
file = "zeitleiste/#{slug}/index.md"
|
13
|
+
return file if create_dir_defensively('Zeitleiste', slug, file).nil?
|
14
|
+
|
15
|
+
create_page({ 'slug' => slug, 'title' => args.first }, file, 'zeitleiste.md')
|
16
|
+
string = File.read(File.expand_path('../stubs/timeline.json', __dir__))
|
17
|
+
File.open("zeitleiste/#{slug}/timeline.json", 'w') { |out| out.write string }
|
18
|
+
Jekyll.logger.info '✓', "Created zeitleiste with slug `#{slug}`"
|
19
|
+
file
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
data/lib/jekyll/zettel.rb
CHANGED
@@ -87,11 +87,14 @@ module Jekyll
|
|
87
87
|
end
|
88
88
|
|
89
89
|
require 'jekyll/commands/scaffold'
|
90
|
+
require 'jekyll/zettel/akteur'
|
91
|
+
require 'jekyll/zettel/blatt'
|
90
92
|
require 'jekyll/zettel/globals'
|
91
93
|
require 'jekyll/zettel/glosse'
|
92
94
|
require 'jekyll/zettel/reference'
|
93
95
|
require 'jekyll/zettel/references'
|
94
96
|
require 'jekyll/zettel/tags'
|
95
97
|
require 'jekyll/zettel/timeline'
|
98
|
+
require 'jekyll/zettel/zeitleiste'
|
96
99
|
require 'jekyll/zettel/zettel'
|
97
100
|
require 'jekyll/zettel/zettelkasten'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-zettel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Gerzabek
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: citeproc-ruby
|
@@ -106,10 +106,15 @@ files:
|
|
106
106
|
- Rakefile
|
107
107
|
- jekyll-zettel.gemspec
|
108
108
|
- lib/jekyll/commands/scaffold.rb
|
109
|
+
- lib/jekyll/stubs/akteur.md
|
109
110
|
- lib/jekyll/stubs/blatt.md
|
110
111
|
- lib/jekyll/stubs/glosse.md
|
112
|
+
- lib/jekyll/stubs/timeline.json
|
113
|
+
- lib/jekyll/stubs/zeitleiste.md
|
111
114
|
- lib/jekyll/stubs/zettel.md
|
112
115
|
- lib/jekyll/zettel.rb
|
116
|
+
- lib/jekyll/zettel/akteur.rb
|
117
|
+
- lib/jekyll/zettel/blatt.rb
|
113
118
|
- lib/jekyll/zettel/globals.rb
|
114
119
|
- lib/jekyll/zettel/glosse.rb
|
115
120
|
- lib/jekyll/zettel/reference.rb
|
@@ -117,6 +122,7 @@ files:
|
|
117
122
|
- lib/jekyll/zettel/tags.rb
|
118
123
|
- lib/jekyll/zettel/timeline.rb
|
119
124
|
- lib/jekyll/zettel/version.rb
|
125
|
+
- lib/jekyll/zettel/zeitleiste.rb
|
120
126
|
- lib/jekyll/zettel/zettel.rb
|
121
127
|
- lib/jekyll/zettel/zettelkasten.rb
|
122
128
|
homepage: https://michaelgerzabek.com/gems/jekyll-zettel
|