middleman-tansu 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +17 -7
- data/README.ja.md +63 -0
- data/README.md +28 -6
- data/features/helpers.feature +36 -0
- data/features/step_definitions/helpers_steps.rb +4 -0
- data/features/tansu_cli.feature +37 -0
- data/fixtures/breadcrumbs-app/source/dir/{page.md → page.html.md} +0 -0
- data/fixtures/breadcrumbs-has-title-app/source/dir/sub_dir/{page.md → page.html.md} +0 -0
- data/fixtures/breadcrumbs-params-app/source/dir/{page.md → page.html.md} +0 -0
- data/fixtures/children-pages-app/source/dir1/{no-title-page.md → no-title-page.html.md} +0 -0
- data/fixtures/children-pages-app/source/dir1/{page2.md → page2.html.md} +0 -0
- data/fixtures/children-pages-app/source/dir1/{page3.md → page3.html.md} +0 -0
- data/fixtures/children-pages-app/source/dir1/sub_dir1/{page1.md → page1.html.md} +0 -0
- data/fixtures/children-pages-app/source/{page1.md → page1.html.md} +0 -0
- data/fixtures/children-pages-with-category-app/source/dir1/{no-title-page.md → no-title-page.html.md} +0 -0
- data/fixtures/children-pages-with-category-app/source/dir1/{page2.md → page2.html.md} +0 -0
- data/fixtures/children-pages-with-category-app/source/dir1/{page3.md → page3.html.md} +0 -0
- data/fixtures/children-pages-with-category-app/source/dir1/sub_dir1/{page1.md → page1.html.md} +0 -0
- data/fixtures/children-pages-with-category-app/source/{page1.md → page1.html.md} +0 -0
- data/fixtures/index-app/source/dir/{page.md → page.html.md} +0 -0
- data/fixtures/{title-has-title-app/source/dir/sub_dir/page.md → path-list-app/source/page/sample.html.md} +0 -0
- data/fixtures/title-app/source/dir/sub_dir/{page.md → page.html.md} +0 -0
- data/fixtures/title-has-title-app/source/dir/sub_dir/page.html.md +0 -0
- data/lib/middleman-tansu/command.rb +16 -9
- data/lib/middleman-tansu/drawer.rb +2 -2
- data/lib/middleman-tansu/template/shared/Gemfile.tt +1 -0
- data/lib/middleman-tansu/template/shared/config.tt +3 -0
- data/lib/middleman-tansu/template/source/sample.html.md +14 -1
- data/lib/middleman-tansu/version.rb +1 -1
- data/middleman-tansu.gemspec +4 -3
- metadata +36 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0180a805cbb6c06285769c361321998889f1ea88
|
4
|
+
data.tar.gz: d1178be1ce3da86731a73bb62c4f8a9e26310145
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70a76ca1065ced528fcd072f155b44bd4f5041d2da2755ea487483639c5b05294617a84c9bfe88df2981b9e64bcaa535dcba987bfbeb1e529ed937c887b7b34d
|
7
|
+
data.tar.gz: d31aade0e97333a1c8e19a631fb1dfc112027abb0e2ed9b47aa6de25da3d7c043993945252c37cce0a4851fc7b1270f0c62d8f6eba6c40d7b5dfadff26594ce6
|
data/.travis.yml
CHANGED
@@ -1,13 +1,23 @@
|
|
1
1
|
language: ruby
|
2
|
-
script: "bundle exec cucumber"
|
3
2
|
rvm:
|
3
|
+
- ruby-head
|
4
|
+
- jruby-head
|
5
|
+
- jruby-19mode
|
6
|
+
- 2.2
|
7
|
+
- 2.1
|
8
|
+
- 2.0
|
4
9
|
- 1.9.3
|
5
|
-
|
6
|
-
-
|
7
|
-
-
|
8
|
-
|
9
|
-
|
10
|
-
|
10
|
+
os:
|
11
|
+
- linux
|
12
|
+
- osx
|
13
|
+
matrix:
|
14
|
+
fast_finish: true
|
15
|
+
allow_failures:
|
16
|
+
- rvm: ruby-head
|
17
|
+
- rvm: jruby-19mode
|
18
|
+
- rvm: jruby-head
|
19
|
+
script: bundle exec cucumber
|
20
|
+
env: TEST=true
|
11
21
|
notifications:
|
12
22
|
webhooks:
|
13
23
|
- https://idobata.io/hook/travis_ci/cd3a6e1c-5a62-4976-a591-32adfcb358a8
|
data/README.ja.md
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
# middleman-tansu
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/middleman-tansu.svg)](http://badge.fury.io/rb/middleman-tansu)
|
4
|
+
[![Build Status](https://travis-ci.org/yterajima/middleman-tansu.svg?branch=develop)](https://travis-ci.org/yterajima/middleman-tansu)
|
5
|
+
|
6
|
+
[middleman-tansu](https://github.com/yterajima/middleman-tansu) はディレクトリで Markdown を作成・管理するテンプレートです。例えば静的な wiki のようなもの, あなたやあなたのチームのコードスニペット管理ツールとして利用できます。
|
7
|
+
|
8
|
+
## インストール
|
9
|
+
|
10
|
+
Gemfile に次の 1 行を追加してください。
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem 'middleman-tansu'
|
14
|
+
```
|
15
|
+
|
16
|
+
bundler のコマンドを実行してインストールします。middleman-tansu は Middleman やその依存する gem のバージョンに大きく依存しています。各ディレクトリのローカルにインストールするのがいいでしょう。
|
17
|
+
|
18
|
+
```
|
19
|
+
$ bundle
|
20
|
+
# or
|
21
|
+
$ bundle install --path vendor/bundle
|
22
|
+
```
|
23
|
+
|
24
|
+
もしくは直接 gem コマンドでインストールしてください。
|
25
|
+
|
26
|
+
```
|
27
|
+
$ gem install middleman-tansu
|
28
|
+
```
|
29
|
+
|
30
|
+
## 使い方
|
31
|
+
|
32
|
+
middleman-tansu は拡張機能を含んだテンプレートです。利用するには Middleman プロジェクトの初期化時に指定します。
|
33
|
+
|
34
|
+
```
|
35
|
+
$ bundle exec middleman init PROJECT_NAME --template tansu
|
36
|
+
$ cd PROJECT_NAME
|
37
|
+
```
|
38
|
+
|
39
|
+
middleman-tansu に適した Markdown ファイルを作るために次のコマンドが用意されています。
|
40
|
+
|
41
|
+
```
|
42
|
+
$ bundle exec middleman tansu path/to/page_name
|
43
|
+
```
|
44
|
+
|
45
|
+
このコマンドを実行すると middleman-tansu に適した形の Frontmatter を含んだ `source/path/to/page_name.html.md` が作成されます。
|
46
|
+
|
47
|
+
ファイルを作ったらサーバを起動して web ブラウザで `http://localhost:4567` にアクセスしてみましょう。
|
48
|
+
|
49
|
+
```
|
50
|
+
$ bundle exec middleman server
|
51
|
+
```
|
52
|
+
|
53
|
+
`source` 直下のディレクトリとファイルの一覧が表示されるかと思います。この一覧は各ディレクトリごとに自動生成される仕組みです。もし特定のディレクトリ直下のページでは異なったデザインにしたい場合, `source/templates/index.html.slim` をそのディレクトリにコピーして編集してください。
|
54
|
+
|
55
|
+
もちろん `source/templates/index.html.slim` を編集することで自動生成されるページの内容を変更することができます。
|
56
|
+
|
57
|
+
## Contributing
|
58
|
+
|
59
|
+
1. Fork it ( https://github.com/yterajima/middleman-tansu/fork )
|
60
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
61
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
62
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
63
|
+
5. Create a new Pull Request
|
data/README.md
CHANGED
@@ -3,27 +3,49 @@
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/middleman-tansu.svg)](http://badge.fury.io/rb/middleman-tansu)
|
4
4
|
[![Build Status](https://travis-ci.org/yterajima/middleman-tansu.svg?branch=develop)](https://travis-ci.org/yterajima/middleman-tansu)
|
5
5
|
|
6
|
-
|
6
|
+
A template of Middleman to manage Markdown files efficiently.
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
10
|
-
Add this line to your application's Gemfile:
|
11
|
-
|
12
10
|
```ruby
|
13
11
|
gem 'middleman-tansu'
|
14
12
|
```
|
15
13
|
|
16
14
|
And then execute:
|
17
15
|
|
18
|
-
|
16
|
+
```
|
17
|
+
$ bundle
|
18
|
+
# or
|
19
|
+
$ bundle install --path vendor/bundle # better way
|
20
|
+
```
|
19
21
|
|
20
22
|
Or install it yourself as:
|
21
23
|
|
22
|
-
|
24
|
+
```
|
25
|
+
$ gem install middleman-tansu
|
26
|
+
```
|
23
27
|
|
24
28
|
## Usage
|
25
29
|
|
26
|
-
|
30
|
+
middleman-tansu is a template of Middleman. This template contain some extensions.
|
31
|
+
|
32
|
+
```
|
33
|
+
$ middleman init PROJECT --template tansu
|
34
|
+
```
|
35
|
+
|
36
|
+
This template(& extensions) has `tansu` command. You can create Markdown file.
|
37
|
+
|
38
|
+
```
|
39
|
+
$ bundle exec middleman tansu path/to/page_name
|
40
|
+
```
|
41
|
+
|
42
|
+
Then `source/path/to/page_name.html.md` that contain Frontmatter was created. Please start server and acces to `http://localhost:4567`
|
43
|
+
|
44
|
+
```
|
45
|
+
$ bundle exec middleman server
|
46
|
+
```
|
47
|
+
|
48
|
+
You could see directories and pages just below the `source/templates/index.html.slim`. This index page under EMPTY folders is automatically generated. When `source/templates/index.html.slim` is edited, you can change design and functionality of these index pages.
|
27
49
|
|
28
50
|
## Contributing
|
29
51
|
|
data/features/helpers.feature
CHANGED
@@ -83,6 +83,42 @@ Feature: Helpers
|
|
83
83
|
<li><a href="/dir1/no-title-page.html">dir1/no-title-page</a></li>
|
84
84
|
"""
|
85
85
|
|
86
|
+
Scenario: `children_pages` helper with difference timezone
|
87
|
+
Given a fixture app "children-pages-app"
|
88
|
+
And a file named "source/templates/index.html.erb" with:
|
89
|
+
"""
|
90
|
+
<ul>
|
91
|
+
<% children_pages.each do |page| %>
|
92
|
+
<li><%= link_to(page_name(page), page_url(page)) %></li>
|
93
|
+
<% end %>
|
94
|
+
</ul>
|
95
|
+
"""
|
96
|
+
And a file named "source/dir1/page2.html.md" with:
|
97
|
+
"""
|
98
|
+
---
|
99
|
+
title: Page2 Title
|
100
|
+
author: John Doe
|
101
|
+
date: 2015-01-10 21:00:00 +1100
|
102
|
+
---
|
103
|
+
"""
|
104
|
+
When I run `middleman build --verbose`
|
105
|
+
Then the exit status should be 0
|
106
|
+
And the helper result "build/index.html" should contain:
|
107
|
+
"""
|
108
|
+
<li><a href="/dir1/">dir1</a></li>
|
109
|
+
<li><a href="/dir2/">dir2</a></li>
|
110
|
+
<li><a href="/page1.html">Page1 Title</a></li>
|
111
|
+
"""
|
112
|
+
And the helper result "build/dir1/index.html" should contain:
|
113
|
+
"""
|
114
|
+
<li><a href="/dir1/sub_dir1/">dir1/sub_dir1</a></li>
|
115
|
+
<li><a href="/dir1/sub_dir2/">dir1/sub_dir2</a></li>
|
116
|
+
<li><a href="/dir1/page2.html">dir1/Page2 Title</a></li>
|
117
|
+
<li><a href="/dir1/page1.html">dir1/Page1 Title</a></li>
|
118
|
+
<li><a href="/dir1/page3.html">dir1/Page3 Title</a></li>
|
119
|
+
<li><a href="/dir1/no-title-page.html">dir1/no-title-page</a></li>
|
120
|
+
"""
|
121
|
+
|
86
122
|
Scenario: `children_pages` helper with "order_by = :desc" option
|
87
123
|
Given a fixture app "children-pages-app"
|
88
124
|
And a file named "source/templates/index.html.erb" with:
|
@@ -2,6 +2,10 @@ require 'aruba/api'
|
|
2
2
|
require 'aruba/cucumber/hooks'
|
3
3
|
require 'aruba/reporting'
|
4
4
|
|
5
|
+
Given /^I set the timezone to "(.*?)"$/ do |zone|
|
6
|
+
set_env("TZ", zone.to_s)
|
7
|
+
end
|
8
|
+
|
5
9
|
Then /^the helper result "(.*?)" should (not )?contain '(.*?)'$/ do |file, expect_match, partial_content|
|
6
10
|
check_file_content(file, Regexp.compile(Regexp.escape(partial_content)), !expect_match)
|
7
11
|
end
|
data/features/tansu_cli.feature
CHANGED
@@ -31,6 +31,7 @@ Feature: Tansu Command
|
|
31
31
|
|
32
32
|
Scenario: `middleman tansu -d 2014-01-22` create file with date frontmatter
|
33
33
|
Given a fixture app "empty-app"
|
34
|
+
And I set the timezone to "UTC"
|
34
35
|
When I run `middleman tansu -d 2014-01-04 foo`
|
35
36
|
Then the exit status should be 0
|
36
37
|
And a file named "source/foo.html.md" should exist
|
@@ -78,3 +79,39 @@ Feature: Tansu Command
|
|
78
79
|
And the file "source/foo.html.md" should contain "date:"
|
79
80
|
And the file "source/foo.html.md" should contain "category: sample"
|
80
81
|
And the file "source/foo.html.md" should contain "tags: markdown"
|
82
|
+
|
83
|
+
Scenario: `middleman tansu` create a markdown
|
84
|
+
Given a fixture app "empty-app"
|
85
|
+
And I set the timezone to "UTC"
|
86
|
+
When I run `middleman tansu foo`
|
87
|
+
Then the exit status should be 0
|
88
|
+
And a file named "source/foo.html.md" should exist
|
89
|
+
And the file "source/foo.html.md" should contain "title: foo"
|
90
|
+
And the file "source/foo.html.md" should not contain "title: foo.html.md"
|
91
|
+
And the file "source/foo.html.md" should contain "author:"
|
92
|
+
And the file "source/foo.html.md" should contain "date:"
|
93
|
+
And the file "source/foo.html.md" should contain "UTC"
|
94
|
+
|
95
|
+
Scenario: `middleman tansu` create a markdown file with TZ="Tokyo"
|
96
|
+
Given a fixture app "empty-app"
|
97
|
+
And I set the timezone to "Tokyo"
|
98
|
+
When I run `middleman tansu foo`
|
99
|
+
Then the exit status should be 0
|
100
|
+
And a file named "source/foo.html.md" should exist
|
101
|
+
And the file "source/foo.html.md" should contain "title: foo"
|
102
|
+
And the file "source/foo.html.md" should not contain "title: foo.html.md"
|
103
|
+
And the file "source/foo.html.md" should contain "author:"
|
104
|
+
And the file "source/foo.html.md" should contain "date:"
|
105
|
+
And the file "source/foo.html.md" should contain "+0900"
|
106
|
+
|
107
|
+
Scenario: `middleman tansu` create a markdown file with -z option
|
108
|
+
Given a fixture app "empty-app"
|
109
|
+
And I set the timezone to "UTC"
|
110
|
+
When I run `middleman tansu foo -z Tokyo`
|
111
|
+
Then the exit status should be 0
|
112
|
+
And a file named "source/foo.html.md" should exist
|
113
|
+
And the file "source/foo.html.md" should contain "title: foo"
|
114
|
+
And the file "source/foo.html.md" should not contain "title: foo.html.md"
|
115
|
+
And the file "source/foo.html.md" should contain "author:"
|
116
|
+
And the file "source/foo.html.md" should contain "date:"
|
117
|
+
And the file "source/foo.html.md" should contain "+0900"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/fixtures/children-pages-with-category-app/source/dir1/sub_dir1/{page1.md → page1.html.md}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -8,6 +8,8 @@ module Middleman
|
|
8
8
|
# - '-f': set file extension, default "md"
|
9
9
|
# - '-d': set date(yyyy-mm-dd). Default is now. This is used in Frontmatter.
|
10
10
|
# - '-a': set author name. Default "ENV['USER']".
|
11
|
+
# - '-z': set timezone.
|
12
|
+
# - '--frontmatter': add data to Frontmatter
|
11
13
|
class Tansu < Thor
|
12
14
|
include Thor::Actions
|
13
15
|
|
@@ -17,7 +19,7 @@ module Middleman
|
|
17
19
|
|
18
20
|
def initialize(*args)
|
19
21
|
super
|
20
|
-
Time.zone =
|
22
|
+
Time.zone = ENV['TZ'] || "UTC"
|
21
23
|
end
|
22
24
|
|
23
25
|
def self.source_root
|
@@ -32,23 +34,28 @@ module Middleman
|
|
32
34
|
desc "tansu path/to/TITLE", "Create a new Tansu page"
|
33
35
|
method_option "file",
|
34
36
|
aliases: "-f",
|
35
|
-
desc: "The file extension
|
37
|
+
desc: "The file extension of file (default: md)",
|
36
38
|
default: "md"
|
39
|
+
method_option "timezone",
|
40
|
+
aliases: "-z",
|
41
|
+
desc: "The timezone of Frontmatter (default: ENV['TZ'])"
|
37
42
|
method_option "date",
|
38
43
|
aliases: "-d",
|
39
|
-
desc: "The date
|
44
|
+
desc: "The date of Frontmatter (default: Time.zone.now)",
|
45
|
+
default: nil
|
40
46
|
method_option "author",
|
41
47
|
aliases: "-a",
|
42
|
-
desc: "The author name
|
48
|
+
desc: "The author name of Frontmatter (default: ENV['USER'])"
|
43
49
|
method_option "frontmatter",
|
44
50
|
desc: "Additions of Frontmatter. ex: \"category: sample, tags: frontmatter\"",
|
45
51
|
default: ""
|
46
52
|
def tansu(path)
|
47
|
-
paths
|
48
|
-
title
|
49
|
-
ext
|
50
|
-
|
51
|
-
|
53
|
+
paths = path.split("/")
|
54
|
+
title = paths.pop
|
55
|
+
ext = options[:file]
|
56
|
+
Time.zone = options[:timezone] || ENV['TZ'] || "UTC"
|
57
|
+
date = options[:date] ? Time.zone.parse(options[:date]) : Time.zone.now
|
58
|
+
author = options[:author] || ENV["USER"]
|
52
59
|
add_frontmatter = options[:frontmatter]
|
53
60
|
|
54
61
|
if Regexp.new(".html.#{ext}$") !~ title
|
@@ -6,11 +6,11 @@ module Middleman
|
|
6
6
|
@options = options
|
7
7
|
@dirs = ["/"]
|
8
8
|
@exclude_path = exclude(exclude_path)
|
9
|
-
search_directory(@config.source)
|
10
9
|
end
|
11
10
|
|
12
11
|
def empty
|
13
|
-
|
12
|
+
search_directory(@config.source)
|
13
|
+
empty = []
|
14
14
|
@dirs.each do |dir|
|
15
15
|
glob_path = File.join(@config.source, dir, "#{@config.tansu[:default_document].strip}*")
|
16
16
|
if Dir.glob(glob_path).length == 0
|
@@ -21,8 +21,21 @@ date: 2014-01-25 23:32:00 +0900
|
|
21
21
|
$ middleman tansu path/to/ページ
|
22
22
|
```
|
23
23
|
|
24
|
-
このコマンドによって `source/path/to/ページ.html.md` が作成されます。同時にこのテンプレートに必要な Frontmatter
|
24
|
+
このコマンドによって `source/path/to/ページ.html.md` が作成されます。同時にこのテンプレートに必要な Frontmatter を書き込みます。例えば次のようになります。
|
25
25
|
|
26
|
+
```
|
27
|
+
---
|
28
|
+
title: ページ
|
29
|
+
author: yterajima
|
30
|
+
date: 2015-01-31 08:11:22 UTC
|
31
|
+
---
|
32
|
+
```
|
33
|
+
|
34
|
+
`author` には使用している PC のユーザ名, `date` のシステム上で設定されているタイムゾーンを使って決定しています。もし任意のユーザ名, 任意のタイムゾーンを利用したい場合コマンド実行時に指定することもできます。
|
35
|
+
|
36
|
+
```sh
|
37
|
+
$ middleman tansu path/to/ページ -z Tokyo -a yterajima
|
38
|
+
```
|
26
39
|
|
27
40
|
### 2.各ディレクトリに `index.html` を用意する機能
|
28
41
|
|
data/middleman-tansu.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Middleman::Tansu::VERSION
|
9
9
|
spec.authors = ["Yuya Terajima"]
|
10
10
|
spec.email = ["terra@e2esound.com"]
|
11
|
-
spec.summary = %q{A
|
12
|
-
spec.description = %q{A
|
11
|
+
spec.summary = %q{A template of Middleman to manage Markdown files efficiently.}
|
12
|
+
spec.description = %q{A template of Middleman to manage Markdown files efficiently.}
|
13
13
|
spec.homepage = "https://github.com/yterajima/middleman-tansu"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -20,8 +20,9 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.required_ruby_version = '>= 1.9.3'
|
22
22
|
|
23
|
-
spec.add_runtime_dependency "middleman", "~>3.3"
|
23
|
+
spec.add_runtime_dependency "middleman", "~> 3.3"
|
24
24
|
spec.add_runtime_dependency "middleman-syntax", "~> 2.0"
|
25
|
+
spec.add_runtime_dependency "middleman-gemoji", ">= 0.0.2"
|
25
26
|
spec.add_runtime_dependency "slim", "~> 3.0"
|
26
27
|
spec.add_runtime_dependency "redcarpet", "~> 3.2"
|
27
28
|
spec.add_runtime_dependency "builder", "~> 3.2"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-tansu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuya Terajima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: middleman-gemoji
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.0.2
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.0.2
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: slim
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,7 +150,7 @@ dependencies:
|
|
136
150
|
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: '10'
|
139
|
-
description: A
|
153
|
+
description: A template of Middleman to manage Markdown files efficiently.
|
140
154
|
email:
|
141
155
|
- terra@e2esound.com
|
142
156
|
executables: []
|
@@ -147,6 +161,7 @@ files:
|
|
147
161
|
- ".travis.yml"
|
148
162
|
- Gemfile
|
149
163
|
- LICENSE.txt
|
164
|
+
- README.ja.md
|
150
165
|
- README.md
|
151
166
|
- Rakefile
|
152
167
|
- features/auto_index.feature
|
@@ -157,7 +172,7 @@ files:
|
|
157
172
|
- features/template_cli.feature
|
158
173
|
- fixtures/.gitkeep
|
159
174
|
- fixtures/breadcrumbs-app/config.rb
|
160
|
-
- fixtures/breadcrumbs-app/source/dir/page.md
|
175
|
+
- fixtures/breadcrumbs-app/source/dir/page.html.md
|
161
176
|
- fixtures/breadcrumbs-app/source/images/.gitkeep
|
162
177
|
- fixtures/breadcrumbs-app/source/javascripts/.gitkeep
|
163
178
|
- fixtures/breadcrumbs-app/source/layouts/layout.erb
|
@@ -165,7 +180,7 @@ files:
|
|
165
180
|
- fixtures/breadcrumbs-app/source/templates/index.html.erb
|
166
181
|
- fixtures/breadcrumbs-has-title-app/config.rb
|
167
182
|
- fixtures/breadcrumbs-has-title-app/source/dir/index.html.erb
|
168
|
-
- fixtures/breadcrumbs-has-title-app/source/dir/sub_dir/page.md
|
183
|
+
- fixtures/breadcrumbs-has-title-app/source/dir/sub_dir/page.html.md
|
169
184
|
- fixtures/breadcrumbs-has-title-app/source/images/.gitkeep
|
170
185
|
- fixtures/breadcrumbs-has-title-app/source/index.html.erb
|
171
186
|
- fixtures/breadcrumbs-has-title-app/source/javascripts/.gitkeep
|
@@ -173,38 +188,38 @@ files:
|
|
173
188
|
- fixtures/breadcrumbs-has-title-app/source/stylesheets/all.css
|
174
189
|
- fixtures/breadcrumbs-has-title-app/source/templates/index.html.erb
|
175
190
|
- fixtures/breadcrumbs-params-app/config.rb
|
176
|
-
- fixtures/breadcrumbs-params-app/source/dir/page.md
|
191
|
+
- fixtures/breadcrumbs-params-app/source/dir/page.html.md
|
177
192
|
- fixtures/breadcrumbs-params-app/source/images/.gitkeep
|
178
193
|
- fixtures/breadcrumbs-params-app/source/javascripts/.gitkeep
|
179
194
|
- fixtures/breadcrumbs-params-app/source/layouts/layout.erb
|
180
195
|
- fixtures/breadcrumbs-params-app/source/stylesheets/all.css
|
181
196
|
- fixtures/breadcrumbs-params-app/source/templates/index.html.erb
|
182
197
|
- fixtures/children-pages-app/config.rb
|
183
|
-
- fixtures/children-pages-app/source/dir1/no-title-page.md
|
198
|
+
- fixtures/children-pages-app/source/dir1/no-title-page.html.md
|
184
199
|
- fixtures/children-pages-app/source/dir1/page1.md
|
185
|
-
- fixtures/children-pages-app/source/dir1/page2.md
|
186
|
-
- fixtures/children-pages-app/source/dir1/page3.md
|
187
|
-
- fixtures/children-pages-app/source/dir1/sub_dir1/page1.md
|
200
|
+
- fixtures/children-pages-app/source/dir1/page2.html.md
|
201
|
+
- fixtures/children-pages-app/source/dir1/page3.html.md
|
202
|
+
- fixtures/children-pages-app/source/dir1/sub_dir1/page1.html.md
|
188
203
|
- fixtures/children-pages-app/source/dir1/sub_dir2/.gitkeep
|
189
204
|
- fixtures/children-pages-app/source/dir2/.gitkeep
|
190
205
|
- fixtures/children-pages-app/source/images/.gitkeep
|
191
206
|
- fixtures/children-pages-app/source/javascripts/.gitkeep
|
192
207
|
- fixtures/children-pages-app/source/layouts/layout.erb
|
193
|
-
- fixtures/children-pages-app/source/page1.md
|
208
|
+
- fixtures/children-pages-app/source/page1.html.md
|
194
209
|
- fixtures/children-pages-app/source/stylesheets/all.css
|
195
210
|
- fixtures/children-pages-app/source/templates/index.html.erb
|
196
211
|
- fixtures/children-pages-with-category-app/config.rb
|
197
|
-
- fixtures/children-pages-with-category-app/source/dir1/no-title-page.md
|
212
|
+
- fixtures/children-pages-with-category-app/source/dir1/no-title-page.html.md
|
198
213
|
- fixtures/children-pages-with-category-app/source/dir1/page1.md
|
199
|
-
- fixtures/children-pages-with-category-app/source/dir1/page2.md
|
200
|
-
- fixtures/children-pages-with-category-app/source/dir1/page3.md
|
201
|
-
- fixtures/children-pages-with-category-app/source/dir1/sub_dir1/page1.md
|
214
|
+
- fixtures/children-pages-with-category-app/source/dir1/page2.html.md
|
215
|
+
- fixtures/children-pages-with-category-app/source/dir1/page3.html.md
|
216
|
+
- fixtures/children-pages-with-category-app/source/dir1/sub_dir1/page1.html.md
|
202
217
|
- fixtures/children-pages-with-category-app/source/dir1/sub_dir2/.gitkeep
|
203
218
|
- fixtures/children-pages-with-category-app/source/dir2/.gitkeep
|
204
219
|
- fixtures/children-pages-with-category-app/source/images/.gitkeep
|
205
220
|
- fixtures/children-pages-with-category-app/source/javascripts/.gitkeep
|
206
221
|
- fixtures/children-pages-with-category-app/source/layouts/layout.erb
|
207
|
-
- fixtures/children-pages-with-category-app/source/page1.md
|
222
|
+
- fixtures/children-pages-with-category-app/source/page1.html.md
|
208
223
|
- fixtures/children-pages-with-category-app/source/stylesheets/all.css
|
209
224
|
- fixtures/children-pages-with-category-app/source/templates/index.html.erb
|
210
225
|
- fixtures/drawer-app-with-markdown/config.rb
|
@@ -227,7 +242,7 @@ files:
|
|
227
242
|
- fixtures/drawer-app/source/templates/index.html.erb
|
228
243
|
- fixtures/empty-app/source/.gitkeep
|
229
244
|
- fixtures/index-app/config.rb
|
230
|
-
- fixtures/index-app/source/dir/page.md
|
245
|
+
- fixtures/index-app/source/dir/page.html.md
|
231
246
|
- fixtures/index-app/source/images/.gitkeep
|
232
247
|
- fixtures/index-app/source/javascripts/.gitkeep
|
233
248
|
- fixtures/index-app/source/layouts/layout.erb
|
@@ -238,10 +253,11 @@ files:
|
|
238
253
|
- fixtures/path-list-app/source/javascripts/.gitkeep
|
239
254
|
- fixtures/path-list-app/source/layouts/layout.erb
|
240
255
|
- fixtures/path-list-app/source/page/list/.gitkeep
|
256
|
+
- fixtures/path-list-app/source/page/sample.html.md
|
241
257
|
- fixtures/path-list-app/source/stylesheets/all.css
|
242
258
|
- fixtures/path-list-app/source/templates/index.html.erb
|
243
259
|
- fixtures/title-app/config.rb
|
244
|
-
- fixtures/title-app/source/dir/sub_dir/page.md
|
260
|
+
- fixtures/title-app/source/dir/sub_dir/page.html.md
|
245
261
|
- fixtures/title-app/source/images/.gitkeep
|
246
262
|
- fixtures/title-app/source/javascripts/.gitkeep
|
247
263
|
- fixtures/title-app/source/layouts/layout.erb
|
@@ -249,7 +265,7 @@ files:
|
|
249
265
|
- fixtures/title-app/source/templates/index.html.erb
|
250
266
|
- fixtures/title-has-title-app/config.rb
|
251
267
|
- fixtures/title-has-title-app/source/dir/index.html.erb
|
252
|
-
- fixtures/title-has-title-app/source/dir/sub_dir/page.md
|
268
|
+
- fixtures/title-has-title-app/source/dir/sub_dir/page.html.md
|
253
269
|
- fixtures/title-has-title-app/source/images/.gitkeep
|
254
270
|
- fixtures/title-has-title-app/source/index.html.erb
|
255
271
|
- fixtures/title-has-title-app/source/javascripts/.gitkeep
|
@@ -296,7 +312,7 @@ rubyforge_project:
|
|
296
312
|
rubygems_version: 2.4.5
|
297
313
|
signing_key:
|
298
314
|
specification_version: 4
|
299
|
-
summary: A
|
315
|
+
summary: A template of Middleman to manage Markdown files efficiently.
|
300
316
|
test_files:
|
301
317
|
- features/auto_index.feature
|
302
318
|
- features/helpers.feature
|