middleman-targets 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 8f71bf32060d58c412a4ae141d2c886515ec0e3f
4
- data.tar.gz: aeaac5e30feef6d8cbaf5d66aad57717abc723c7
3
+ metadata.gz: ee95c10f2530dd03ea7f1428b185accde9e8a45a
4
+ data.tar.gz: 1dfd55d909500130f6d2fd21b0665e36413a319d
5
5
  SHA512:
6
- metadata.gz: 0cb81825deaee249be59153b7f414fa8db842b105d42481aa5f29dda4bb3d96a8b1ca39ace5595a2ee341c0d161d96dde73738b57d45f0158b380301eb9cd3b7
7
- data.tar.gz: 38c52c247fc4891a93d02f0e2224000f2173983620b20123001f5ef399aa0547ca5afda8326a85be819c84224de570f72dc376c747d7bc70bc54dd7ccac8c230
6
+ metadata.gz: 70b93a97be27e6ada1c5912e5a9f8ba799efbdd3730297858b319394811fc316babfe67903d8a76dd0e255220a35478f4d52919b06ca25604053008a919e7fce
7
+ data.tar.gz: d21db734b1b0c8b6484b8c4384da01931326f5452325706770eb69b1513b6c58fb49b8bce62585f817754aefed2f231608f98ce5ccb0666bf0fb54a2e4143cfe
data/.gitignore CHANGED
@@ -14,4 +14,4 @@ Gemfile.lock
14
14
  /pkg
15
15
 
16
16
  # Ignore build folders
17
- build*
17
+ build/*
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  middleman-targets change log
2
2
  ============================
3
3
 
4
+ - Version 1.0.2 / 2016-April-07
5
+
6
+ - Fixed another git issue that introduced a filler page.
7
+ - Improved documentation.
8
+
4
9
  - Version 1.0.1 / 2016-March-30
5
10
 
6
11
  - Fixed a git issue that led to installed Gem not working at all.
@@ -9,6 +9,6 @@ gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw]
9
9
  gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
10
10
 
11
11
  # Middleman Gems
12
- gem 'middleman-targets', '~>1.0.0'
12
+ gem 'middleman-targets', '~>1.0.2'
13
13
  gem 'middleman', '~> 4.1.6'
14
14
  gem 'middleman-syntax'
@@ -16,8 +16,7 @@ activate :automatic_alt_tags
16
16
  # Extension Setup
17
17
  # Note that middleman-targets adds configuration parameters to the base
18
18
  # Middleman application (supported feature in 4.0+); there are *not*
19
- # extension options. Additionally if middleman-targets is in your Gemfile
20
- # then it is also activated automatically.
19
+ # extension options.
21
20
  #==========================================================================
22
21
  activate :MiddlemanTargets
23
22
 
@@ -104,7 +103,7 @@ helpers do
104
103
  end
105
104
 
106
105
  def product_version
107
- '1.0.1'
106
+ '1.0.2'
108
107
  end
109
108
 
110
109
  def product_uri
@@ -0,0 +1,49 @@
1
+ ---
2
+ title: Command Line Interface
3
+ layout: template-logo-medium
4
+ ---
5
+
6
+ # <%= current_page.data.title %>
7
+
8
+ `middleman-targets` has a small command line interface that might be useful
9
+ for generating sample documentation.
10
+
11
+ The CLI takes the format:
12
+
13
+ ~~~ bash
14
+ middleman-targets command
15
+ ~~~
16
+
17
+ …where the following commands are available.
18
+
19
+ `documentation`
20
+
21
+ : Produces a sample project named `middleman-targets-docs/` in your current
22
+ working directory. This sample uses the features of this gem. You can then
23
+ serve this new project to read the documentation by:
24
+
25
+ ~~~ bash
26
+ cd middleman-targets-docs
27
+ bundle install
28
+ bundle exec middleman server
29
+ ~~~
30
+
31
+
32
+ `help`
33
+
34
+ : Displays CLI usage help.
35
+
36
+ `--version` or `-v`
37
+
38
+ : Displays the version of `middleman-targets`.
39
+
40
+ <% content_for :seeAlso do %>
41
+ <ul>
42
+ <li><a href="index.html">Welcome to middleman-targets</a></li>
43
+ <li><a href="simple-demo.html">Simple features demonstration</a></li>
44
+ <li><a href="build-serve-targets.html">Build and Serve different targets</a></li>
45
+ <li><a href="target-feature-config.html">Configuration</a></li>
46
+ <li><a href="helpers-resources.html">Helpers and Resources</a></li>
47
+ <li><a href="frontmatter.html">Front Matter</a></li>
48
+ </ul>
49
+ <% end %>
@@ -3,7 +3,7 @@ title: Front Matter
3
3
  layout: template-logo-medium
4
4
  ---
5
5
 
6
- # Front Matter
6
+ # <%= current_page.data.title %>
7
7
 
8
8
  By default every page in a Middleman project is included in the build output,
9
9
  but `middleman-targets` provides means to ensure that only target- and
@@ -66,5 +66,6 @@ target is `insults_user` or the feature is `free`, then output will be enabled.
66
66
  <li><a href="build-serve-targets.html">Build and Serve different targets</a></li>
67
67
  <li><a href="target-feature-config.html">Configuration</a></li>
68
68
  <li><a href="helpers-resources.html">Helpers and Resources</a></li>
69
+ <li><a href="cli.html">Command Line Interface</a></li>
69
70
  </ul>
70
71
  <% end %>
@@ -3,7 +3,7 @@ title: Helpers and Resources
3
3
  layout: template-logo-medium
4
4
  ---
5
5
 
6
- # Helpers and Resources
6
+ # <%= current_page.data.title %>
7
7
 
8
8
  `middleman-targets` includes some helpers and some page resources that make
9
9
  working with multiple targets easier.
@@ -94,5 +94,6 @@ helpers.
94
94
  <li><a href="build-serve-targets.html">Build and Serve different targets</a></li>
95
95
  <li><a href="target-feature-config.html">Configuration</a></li>
96
96
  <li><a href="frontmatter.html">Front Matter</a></li>
97
+ <li><a href="cli.html">Command Line Interface</a></li>
97
98
  </ul>
98
99
  <% end %>
@@ -3,8 +3,6 @@ title: Welcome to middleman-targets
3
3
  layout: template-logo-large
4
4
  ---
5
5
 
6
- <div markdown="1">
7
-
8
6
  # Welcome to middleman-targets
9
7
 
10
8
  The `middleman-targets` gem is an extension to [Middleman][1] that gives you the
@@ -34,26 +32,38 @@ though, and all of the technical documentation is the same.
34
32
 
35
33
  * * *
36
34
 
37
- - [Simple features demonstration](simple-demo.html)
38
- - [Build and Serve different targets](build-serve-targets.html)
39
- - [Configuration](target-feature-config.html)
40
- - [Helpers and Resources](helpers-resources.html)
41
- - [Front Matter](frontmatter.html)
42
- - [The MIT License](license.html)
35
+ [Simple features demonstration](simple-demo.html)
43
36
 
44
- </div>
37
+ : The features demonstration shows you what `middleman-targets` can do for you.
45
38
 
46
- [1]: https://middlemanapp.com/
47
- [2]: https://github.com/middlemac
39
+ [Build and Serve Different Targets](build-serve-targets.html)
40
+
41
+ : Learn how to build and serve different targets using `middleman-targets`.
42
+
43
+ [Configuration](target-feature-config.html)
44
+
45
+ : Proper configuration is the key to building and serving multiple targets
46
+ with the features that you want.
47
+
48
+ [Helpers and Resources](helpers-resources.html)
49
+
50
+ : Discover the helpers and resources that make working with `middleman-targets`
51
+ easier.
48
52
 
53
+ [Front Matter](frontmatter.html)
49
54
 
55
+ : Learn how to use front matter to include or exclude pages only for certain
56
+ targets or features.
50
57
 
51
- <% content_for :seeAlso do %>
52
- <ul>
53
- <li><a href="simple-demo.html">Simple features demonstration</a></li>
54
- <li><a href="build-serve-targets.html">Build and Serve different targets</a></li>
55
- <li><a href="target-feature-config.html">Configuration</a></li>
56
- <li><a href="helpers-resources.html">Helpers and Resources</a></li>
57
- <li><a href="frontmatter.html">Front Matter</a></li>
58
- </ul>
59
- <% end %>
58
+ [The Command Line Interface](cli.html)
59
+
60
+ : Use the simple command line interface to generate documentation and sample
61
+ projects.
62
+
63
+ [The MIT License](license.html)
64
+
65
+ : Describes your legal rights and obligations for using these materials.
66
+
67
+
68
+ [1]: https://middlemanapp.com/
69
+ [2]: https://github.com/middlemac
@@ -5,7 +5,7 @@ target:
5
5
  - :free
6
6
  ---
7
7
 
8
- # Only for :free
8
+ # <%= current_page.data.title %>
9
9
 
10
10
  This page is only available to the `:free` target, and no other target will make
11
11
  this page available during build or while running the server.
@@ -34,5 +34,6 @@ and/or features here.
34
34
  <li><a href="target-feature-config.html">Configuration</a></li>
35
35
  <li><a href="helpers-resources.html">Helpers and Resources</a></li>
36
36
  <li><a href="frontmatter.html">Front Matter</a></li>
37
+ <li><a href="cli.html">Command Line Interface</a></li>
37
38
  </ul>
38
39
  <% end %>
@@ -5,7 +5,7 @@ exclude:
5
5
  - :free
6
6
  ---
7
7
 
8
- # Only for :pro
8
+ # <%= current_page.data.title %>
9
9
 
10
10
  This page is only available to targets that are not `:free`; in this sample
11
11
  project, that means that only the `:pro` target will make this page available
@@ -35,5 +35,6 @@ and/or features here.
35
35
  <li><a href="target-feature-config.html">Configuration</a></li>
36
36
  <li><a href="helpers-resources.html">Helpers and Resources</a></li>
37
37
  <li><a href="frontmatter.html">Front Matter</a></li>
38
+ <li><a href="cli.html">Command Line Interface</a></li>
38
39
  </ul>
39
40
  <% end %>
@@ -3,7 +3,7 @@ title: Simple features demonstration
3
3
  layout: template-logo-medium
4
4
  ---
5
5
 
6
- # Simple features demonstration
6
+ # <%= current_page.data.title %>
7
7
 
8
8
  This page demonstrates most of the features provided by `middleman-targets`.
9
9
  Notably on this page (as on all others) you can see that the logo reflects
@@ -179,5 +179,6 @@ in the file system.
179
179
  <li><a href="target-feature-config.html">Configuration</a></li>
180
180
  <li><a href="helpers-resources.html">Helpers and Resources</a></li>
181
181
  <li><a href="frontmatter.html">Front Matter</a></li>
182
+ <li><a href="cli.html">Command Line Interface</a></li>
182
183
  </ul>
183
184
  <% end %>
@@ -3,7 +3,7 @@ title: Configuration
3
3
  layout: template-logo-medium
4
4
  ---
5
5
 
6
- # Configuration
6
+ # <%= current_page.data.title %>
7
7
 
8
8
  Configuring `middleman-targets` is done in the standard Middleman `config.rb`
9
9
  file using a few simple options that are added to Middleman.
@@ -149,5 +149,6 @@ additional keys.
149
149
  <li><a href="build-serve-targets.html">Build and Serve different targets</a></li>
150
150
  <li><a href="helpers-resources.html">Helpers and Resources</a></li>
151
151
  <li><a href="frontmatter.html">Front Matter</a></li>
152
+ <li><a href="cli.html">Command Line Interface</a></li>
152
153
  </ul>
153
154
  <% end %>
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module MiddlemanTargets
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-targets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Derry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-30 00:00:00.000000000 Z
11
+ date: 2016-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleman-core
@@ -69,6 +69,7 @@ files:
69
69
  - documentation_project/Gemfile
70
70
  - documentation_project/README.md
71
71
  - documentation_project/config.rb
72
+ - documentation_project/source/cli.html.md.erb
72
73
  - documentation_project/source/frontmatter.html.md.erb
73
74
  - documentation_project/source/helpers-resources.html.md.erb
74
75
  - documentation_project/source/images/free-logo-small.png