octopress 3.0.0.rc.5 → 3.0.0.rc.6

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: 3fe4fdff1a4578d127d4e66f27b26b9b4a0506fd
4
- data.tar.gz: 2ca77bee7eea06456f1f7e126daf79d03b3dd616
3
+ metadata.gz: 5fede7ae0afd1befce5f8987619090363089f210
4
+ data.tar.gz: c8558827ffd7810eb1cb0b9f032d5d0f054cea09
5
5
  SHA512:
6
- metadata.gz: 05c9fa85c1e723e305bcb613d48895091f83097bb903d479b9e657554969cd1db9da514238d43eca0a428ddcc6638918b16ca526204bb6b4c6d1468527f839c1
7
- data.tar.gz: a31c675aad0c3f91bab33d700ddb61b3a425d39b9f15020bda6ea64c2bf3082360c01229533fc3ffe7e670c113fa2ca3320840abaf4da6c76e5380b100fdb4ea
6
+ metadata.gz: 3345a39fa96775e47225ae13964e72c9252586a56fe9aa1066519096bc326ea3db34eee47aae131c506939c11f1dac6a2a82754b96f8c710298c104aa75587ed
7
+ data.tar.gz: efdcb8c284cfc4128a31e92081023261c7771f96304a62ef2c9cd897cb1ded096becd2cbb0bf4a4a25896419baca8347b7f8812995d25f46aca758649776524d
@@ -0,0 +1,26 @@
1
+ # Octopress Changelog
2
+
3
+ ## Current released version
4
+
5
+ ### 3.0.0 RC6 - 2014-03-22
6
+
7
+ - Added support for octopress-ink documentation system.
8
+ - Added a `update_docs` Rake task to update docs from the readme and changelog.
9
+
10
+ ## Past versions
11
+
12
+ ### 3.0.0 RC5 - 2014-03-21
13
+ - Added octopress-docs to blessed gem list.
14
+
15
+ ### 3.0.0 RC4 - 2014-03-18
16
+ - Updated mercenary. Fixed issue: #34
17
+
18
+ ### 3.0.0 RC3 - 2014-03-18
19
+ - `serve --watch` fixed. Fixed issue: #33
20
+
21
+ ### 3.0.0 RC2 - 2014-03-18
22
+ - `new post` command has new `--dir` option to save new posts in _posts/<DIR>/. Fixed issue #31
23
+
24
+ ### 3.0.0 RC1 - 2014-03-17
25
+ - Initial release of Octopress CLI
26
+
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Octopress
2
2
 
3
- Octopress is an obsessively designed toolkit for writing and deploying Jekyll
4
- blogs. Pretty sweet, huh?
3
+ Octopress is an obsessively designed toolkit for writing and deploying Jekyll blogs. Pretty sweet, huh?
5
4
 
6
5
  <!--[![Gem Version](https://badge.fury.io/rb/octopress.png)](http://badge.fury.io/rb/octopress)-->
7
6
  [![Build Status](https://travis-ci.org/octopress/octopress.png?branch=master)](https://travis-ci.org/octopress/octopress)
@@ -10,7 +9,7 @@ blogs. Pretty sweet, huh?
10
9
 
11
10
  Add this line to your application's Gemfile:
12
11
 
13
- gem 'octopress', '~> 3.0.0.rc.4'
12
+ gem 'octopress', '~> 3.0.0.rc.5'
14
13
 
15
14
  And then execute:
16
15
 
data/Rakefile CHANGED
@@ -1 +1,8 @@
1
1
  require "bundler/gem_tasks"
2
+ require "octopress-ink"
3
+
4
+ desc "Copy Readme and Changelog into docs"
5
+ task :update_docs do
6
+ Octopress::Ink.copy_doc 'README.md', 'assets/docs/index.markdown'
7
+ Octopress::Ink.copy_doc 'CHANGELOG.md', 'assets/docs/changelog/index.markdown'
8
+ end
@@ -0,0 +1,29 @@
1
+ ---
2
+ title: "Octopress Changelog"
3
+ ---
4
+
5
+ ### HEAD - 3.0.0 RC6
6
+
7
+ #### Minor Enhancements
8
+ - Added support for octopress-ink documentation system.
9
+ - Added a `update_docs` Rake task to update index/docs/index.markdown from README.md.
10
+
11
+ ## Current released version
12
+
13
+ ### 3.0.0 RC5 - 2014-03-21
14
+ - Added octopress-docs to blessed gem list.
15
+
16
+ ## Past versions
17
+
18
+ ### 3.0.0 RC4 - 2014-03-18
19
+ - Updated mercenary. Fixed issue: #34
20
+
21
+ ### 3.0.0 RC3 - 2014-03-18
22
+ - `serve --watch` fixed. Fixed issue: #33
23
+
24
+ ### 3.0.0 RC2 - 2014-03-18
25
+ - `new post` command has new `--dir` option to save new posts in _posts/<DIR>/. Fixed issue #31
26
+
27
+ ### 3.0.0 RC1 - 2014-03-17
28
+ - Initial release of Octopress CLI
29
+
@@ -0,0 +1,183 @@
1
+ ---
2
+ title: "Octopress"
3
+ ---
4
+
5
+ Octopress is an obsessively designed toolkit for writing and deploying Jekyll blogs. Pretty sweet, huh?
6
+
7
+ <!--[![Gem Version](https://badge.fury.io/rb/octopress.png)](http://badge.fury.io/rb/octopress)-->
8
+ [![Build Status](https://travis-ci.org/octopress/octopress.png?branch=master)](https://travis-ci.org/octopress/octopress)
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ gem 'octopress', '~> 3.0.0.rc.5'
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install octopress --pre
23
+
24
+ ## Basic Usage
25
+
26
+ Here are the commands for Octopress.
27
+
28
+ | Option | Description |
29
+ |:--------------------------------|:------------------------------------------|
30
+ | `octopress init <PATH>` | Adds Octopress scaffolding to your site |
31
+ | `octopress new post <TITLE>` | Add a new post to your site |
32
+ | `octopress new page <PATH>` | Add a new page to your site |
33
+ | `octopress new draft <TITLE>` | Add a new draft post to your site |
34
+ | `octopress publish <PATH>` | Publish a draft from _drafts to _posts |
35
+ | `octopress new <PATH>` | works just like `jekyll new` |
36
+ | `octopress build` | works just like `jekyll build` |
37
+ | `octopress serve` | works just like `jekyll serve` |
38
+ | `octopress doctor` | works just like `jekyll doctor` |
39
+
40
+ Run `octopress [command] --help` to learn more about any command and see its options.
41
+
42
+ ### Deployment
43
+
44
+ You can deploy your Octopress or Jeklly blog via git, rsync or Amazon S3. The deployment system ships with the [octopress-deploy][] gem which extends the Octopress CLI with the `deploy` command.
45
+
46
+ [octopress-deploy]: https://github.com/octopress/deploy
47
+
48
+ ## Configuration
49
+
50
+ Octopress reads its configurations from `_octopress.yml`. Here's what the configuration looks like by default.
51
+
52
+ ```yaml
53
+ # Default extension for new posts and pages
54
+ post_ext: markdown
55
+ page_ext: html
56
+
57
+ # Default templates for posts and pages
58
+ # Found in _templates/
59
+ post_layout: post
60
+ page_layout: page
61
+
62
+ # Format titles with titlecase?
63
+ titlecase: true
64
+ ```
65
+
66
+ ## Commands
67
+
68
+ ### Init
69
+
70
+
71
+ ```sh
72
+ octopress init <PATH> [options]
73
+ ```
74
+
75
+ This will copy Octopress's scaffolding into the specified directory. Use the `--force` option to overwrite existing files. The scaffolding is pretty simple:
76
+
77
+ ```
78
+ _octopress.yml
79
+ _templates/
80
+ post
81
+ page
82
+ ```
83
+
84
+ ### New Post
85
+
86
+ This automates the creation of a new post.
87
+
88
+ ```bash
89
+ $ octopress new post "My Title"
90
+ ```
91
+
92
+ This will create a new file at `_posts/YYYY-MM-DD-my-title.markdown` with the following YAML front-matter already added.
93
+
94
+ ```
95
+ layout: post
96
+ title: "My Title"
97
+ date: YYYY-MM-DDTHH:MM:SS-00:00
98
+ ```
99
+
100
+ "Ok, great? What else can I do?" Great question! Check out these other options:
101
+
102
+ | Option | Description |
103
+ |:---------------------|:----------------------------------------|
104
+ | `--template PATH` | Use a template from <path> |
105
+ | `--date DATE` | The date for the post. Should be parseable by [Time#parse](http://ruby-doc.org/stdlib-2.1.0/libdoc/time/rdoc/Time.html#method-i-parse) |
106
+ | `--slug SLUG` | Slug for the new post. |
107
+ | `--dir DIR` | Create post at _posts/DIR/. |
108
+ | `--force` | Overwrite exsiting file. |
109
+
110
+ ### New Page
111
+
112
+ ```sh
113
+ $ octopress new page some-page # ./some-page.html
114
+ $ octopress new page docs/ # ./docs/index.html
115
+ $ octopress new page about.html # ./about.html
116
+ ```
117
+
118
+ | Option | Description |
119
+ |:---------------------|:----------------------------------------|
120
+ | `--template PATH` | Use a template from <path> |
121
+ | `--title TITLE` | The title of the new page |
122
+ | `--date DATE` | The date for the page. Should be parseable by [Time#parse](http://ruby-doc.org/stdlib-2.1.0/libdoc/time/rdoc/Time.html#method-i-parse) |
123
+ | `--force` | Overwrite exsiting file. |
124
+
125
+ ### New Draft
126
+
127
+ ```bash
128
+ $ octopress new draft "My Title"
129
+ ```
130
+
131
+ This will create a new post in your `_drafts` directory.
132
+
133
+ | Option | Description |
134
+ |:-------------------|:------------------------------------------|
135
+ | `--template PATH` | Use a template from <path> |
136
+ | `--date DATE` | The date for the draft. Should be parseable by [Time#parse](http://ruby-doc.org/stdlib-2.1.0/libdoc/time/rdoc/Time.html#method-i-parse) (defaults to Time.now) |
137
+ | `--slug SLUG` | The slug for the new post. |
138
+ | `--force` | Overwrite exsiting file. |
139
+
140
+ ### Publish draft
141
+
142
+ ```bash
143
+ $ octopress publish _drafts/some-post.md
144
+ ```
145
+
146
+ This will move your draft to the `_posts` directory and rename the file with the proper date.
147
+
148
+ | Option | Description |
149
+ |:-------------------|:------------------------------------------|
150
+ | `--date DATE` | The date for the post. Should be parseable by [Time#parse](http://ruby-doc.org/stdlib-2.1.0/libdoc/time/rdoc/Time.html#method-i-parse) |
151
+ | `--slug SLUG` | Change the slug for the new post. |
152
+ | `--dir DIR` | Create post at _posts/DIR/. |
153
+ | `--force` | Overwrite exsiting file. |
154
+ ```
155
+
156
+ When publishing a draft, the new post will use the draft's date. Pass the option `--date now` to the publish command to set the new post date from your system clock. As usual, you can pass any compatible date string as well.
157
+
158
+ ### Templates for Posts and pages
159
+
160
+ Octopress post and page templates look like this.
161
+
162
+ ```html
163
+ ---
164
+ layout: {{ layout }}
165
+ title: {{ title }}
166
+ date: {{ date }}
167
+ ---
168
+
169
+ ```
170
+
171
+ The YAML variables will be replaced with the correct content when you create a page or post. To modify this template create a `_templates/post` file and change it as you wish. You can add additional YAML front-matter or content, and you can even create multiple templates. Choose a custom template when creating a new post or page like this.
172
+
173
+ ```sh
174
+ octopress new post --template _templates/linkpost
175
+ ```
176
+
177
+ ## Contributing
178
+
179
+ 1. Fork it
180
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
181
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
182
+ 4. Push to the branch (`git push origin my-new-feature`)
183
+ 5. Create new Pull Request
@@ -7,6 +7,11 @@ require 'octopress'
7
7
 
8
8
  Octopress.require_blessed_gems
9
9
 
10
+ if defined? Octopress::Ink
11
+ require 'octopress/docs'
12
+ Octopress::Ink.register_plugin(Octopress::CLIDocs)
13
+ end
14
+
10
15
  if ENV['BUNDLE_BIN_PATH'] || ENV['BUNDLE_GEMFILE']
11
16
  begin
12
17
  require 'bundler'
@@ -34,7 +34,7 @@ module Octopress
34
34
  @config ||= Configuration.config(options)
35
35
  end
36
36
 
37
- def self.expand_gem_path(dir='')
37
+ def self.gem_dir(dir='')
38
38
  File.expand_path(File.join(File.dirname(__FILE__), '../', dir))
39
39
  end
40
40
 
@@ -47,4 +47,3 @@ module Octopress
47
47
  end
48
48
  end
49
49
  end
50
-
@@ -0,0 +1,25 @@
1
+ module Octopress
2
+ class CLIDocs < Octopress::Ink::Plugin
3
+ def configuration
4
+ {
5
+ name: "Octopress",
6
+ description: "An obsessively designed framework for Jekyll sites.",
7
+ slug: "cli",
8
+ assets_path: Octopress.gem_dir('assets'),
9
+ version: Octopress::VERSION
10
+ }
11
+ end
12
+
13
+ def docs_base_path
14
+ 'docs/cli'
15
+ end
16
+
17
+ def info(options)
18
+ if options['docs']
19
+ super
20
+ else
21
+ ''
22
+ end
23
+ end
24
+ end
25
+ end
@@ -19,7 +19,7 @@ module Octopress
19
19
  end
20
20
 
21
21
  def scaffold_path
22
- Octopress.expand_gem_path('scaffold')
22
+ Octopress.gem_dir('scaffold')
23
23
  end
24
24
 
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Octopress
2
- VERSION = "3.0.0.rc.5"
2
+ VERSION = "3.0.0.rc.6"
3
3
  end
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_runtime_dependency "mercenary", "~> 0.3.2"
22
22
  spec.add_runtime_dependency "jekyll", "~> 1.4.3"
23
23
 
24
+ spec.add_development_dependency "octopress-ink"
24
25
  spec.add_development_dependency "bundler", "~> 1.3"
25
26
  spec.add_development_dependency "pry-debugger"
26
27
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc.5
4
+ version: 3.0.0.rc.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-22 00:00:00.000000000 Z
12
+ date: 2014-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mercenary
@@ -39,6 +39,20 @@ dependencies:
39
39
  - - ~>
40
40
  - !ruby/object:Gem::Version
41
41
  version: 1.4.3
42
+ - !ruby/object:Gem::Dependency
43
+ name: octopress-ink
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - '>='
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
42
56
  - !ruby/object:Gem::Dependency
43
57
  name: bundler
44
58
  requirement: !ruby/object:Gem::Requirement
@@ -93,10 +107,13 @@ extra_rdoc_files: []
93
107
  files:
94
108
  - .gitignore
95
109
  - .travis.yml
110
+ - CHANGELOG.md
96
111
  - Gemfile
97
112
  - LICENSE
98
113
  - README.md
99
114
  - Rakefile
115
+ - assets/docs/changelog/index.markdown
116
+ - assets/docs/index.markdown
100
117
  - bin/octopress
101
118
  - lib/octopress.rb
102
119
  - lib/octopress/command.rb
@@ -108,6 +125,7 @@ files:
108
125
  - lib/octopress/commands/publish.rb
109
126
  - lib/octopress/commands/serve.rb
110
127
  - lib/octopress/configuration.rb
128
+ - lib/octopress/docs.rb
111
129
  - lib/octopress/draft.rb
112
130
  - lib/octopress/ext/hash.rb
113
131
  - lib/octopress/ext/titlecase.rb