mkmatter 3.1.17 → 3.1.18
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/mkmatter/cli/app.rb +2 -2
- data/lib/mkmatter/cli/descriptions.rb +23 -19
- data/lib/mkmatter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75e0ffb5885b2cca3a5c86937ee366d3fb11b2fa79c08133cc9e2960bd467c2c
|
4
|
+
data.tar.gz: a68c730e64ad48364c17957015fce3c230d12d1c2d5d36c3ccf507d089b8d8a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 663b61bbb39bf5373bb9d39f81a3372ef993d067d8d253d1378221c2901935241a7bfd1d9d5e3f49cd0c605ed86a9d2ac607eb7292b6b3a53fd64fc11437e583
|
7
|
+
data.tar.gz: 2e2f32223509ec19972663d4b0e2d04ac326d7636e5bd0ae2d4d3d9339317aa60fa1180b81201c580653b6b3c022b7a4819fa8bac623c60a26eed4e672fbc556
|
data/lib/mkmatter/cli/app.rb
CHANGED
@@ -14,7 +14,7 @@ module Mkmatter
|
|
14
14
|
module App
|
15
15
|
class CLI < Thor
|
16
16
|
# \(see {http://www.rubydoc.info/gems/highline/HighLine#initialize-instance_method HighLine#new}\)
|
17
|
-
|
17
|
+
|
18
18
|
map %w[--version -v] => :__print_version
|
19
19
|
desc "--version, -v", "Print the version"
|
20
20
|
package_name "mkmatter"
|
@@ -86,7 +86,7 @@ module Mkmatter
|
|
86
86
|
|
87
87
|
option :publish, :type => :boolean
|
88
88
|
option :index, :type => :boolean, :default => nil
|
89
|
-
option :type, :type => :string, :default => "
|
89
|
+
option :type, :type => :string, :default => "post"
|
90
90
|
option :draft, :type => :boolean, :default => nil
|
91
91
|
option :'include-post-qs', :type => :boolean, :default => false,
|
92
92
|
desc: "Include post questions in the prompt"
|
@@ -7,30 +7,34 @@ module Mkmatter
|
|
7
7
|
module Descriptions
|
8
8
|
module New
|
9
9
|
NEW = ERB.new(<<-NEW
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
--
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
--
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
--
|
10
|
+
----By default `mkmatter new` will run you through making a jekyll post.
|
11
|
+
----You can specify the type of content you want to make with the `--type` flag.
|
12
|
+
----See that below.
|
13
|
+
--
|
14
|
+
`mkmatter new --type=page` will run you through making a jekyll page.
|
15
|
+
Given the above options/flags you can either output the 'front matter'
|
16
|
+
to STDOUT, or to a file.
|
17
|
+
outputs your front matter, or whether to mark it as published.
|
18
|
+
--
|
19
|
+
`mkmatter new` will run you through making a jekyll post.
|
20
|
+
Given the above options/flags you can modify how the script
|
21
|
+
outputs your front matter, and whether to mark it as published,
|
22
|
+
or as a draft and move it into `_drafts`.
|
23
|
+
--
|
24
|
+
<%= Paint['NOTES', 'green', :bold] %>:
|
25
|
+
--By default Jekyll will publish a post if `published` is omitted in
|
26
|
+
--the front matter. So if you omit `--publish` you will publish,
|
27
|
+
--so you have to explicitly use --no-publish to set
|
28
|
+
--`<%= HighLine.color('published', :yellow) %>: <%= HighLine.color('false', :yellow, :bold) %>`
|
29
|
+
--in the front matter.
|
30
|
+
--
|
31
|
+
`mkmatter new --type=LAYOUT_TYPE` will run you through making a page using a custom
|
32
|
+
layout type. This is useful for making a page that is not a post or a page.
|
27
33
|
--
|
28
34
|
--Examples of this include:
|
29
35
|
----A bulma-clean-theme showcase page (--type=showcase)
|
30
36
|
----A bulma-clean-theme recipe page (--type=recipe)
|
31
37
|
----A bulma-clean-theme products page (--type=products)
|
32
|
-
--<%= Paint['OPTIONS', 'green', :bold] %>:
|
33
|
-
|
34
38
|
NEW
|
35
39
|
).result
|
36
40
|
end
|
data/lib/mkmatter/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mkmatter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ken Spencer
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-06-
|
10
|
+
date: 2025-06-12 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: highline
|