octopress 3.0.0.rc.14 → 3.0.0.rc.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +0 -7
- data/lib/octopress.rb +7 -0
- data/lib/octopress/version.rb +1 -1
- data/octopress.gemspec +6 -1
- metadata +33 -8
- data/assets/docs/changelog.markdown +0 -55
- data/assets/docs/index.markdown +0 -185
- data/lib/octopress/docs.rb +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f7cac96f298bfc9a6c1ef49b1ca0a260fe92020
|
4
|
+
data.tar.gz: 002f74354fc7b7b6ad5e41b43214a1617bc222ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24649037612e91a43403c9ecc78656469068ee1467599aadc8aac78870d690939e386c0cec61cc3faf031f8b475dc7c356d5382a33710218b04b7ae49f3b83d0
|
7
|
+
data.tar.gz: 659d7d30a62c30149c2b2cac4c5f4c8e9ec44f6c25332ca9cdda302928b6c7801b4138ded9ded2b7feb123958a080d046f94b01bbfd8aee64e6ee82a0187238c
|
data/Rakefile
CHANGED
@@ -1,8 +1 @@
|
|
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.markdown', '/changelog/'
|
8
|
-
end
|
data/lib/octopress.rb
CHANGED
data/lib/octopress/version.rb
CHANGED
data/octopress.gemspec
CHANGED
@@ -21,9 +21,14 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_runtime_dependency "mercenary", "~> 0.3.2"
|
22
22
|
spec.add_runtime_dependency "jekyll", "~> 2.0"
|
23
23
|
spec.add_runtime_dependency "titlecase"
|
24
|
+
spec.add_runtime_dependency "octopress-docs"
|
25
|
+
spec.add_runtime_dependency "octopress-deploy"
|
24
26
|
|
25
27
|
spec.add_development_dependency "octopress-ink"
|
26
28
|
spec.add_development_dependency "bundler", "~> 1.3"
|
27
|
-
spec.add_development_dependency "pry-debugger"
|
28
29
|
spec.add_development_dependency "rake"
|
30
|
+
|
31
|
+
if RUBY_VERSION >= "2"
|
32
|
+
spec.add_development_dependency "pry-byebug"
|
33
|
+
end
|
29
34
|
end
|
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.
|
4
|
+
version: 3.0.0.rc.15
|
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-
|
12
|
+
date: 2014-09-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mercenary
|
@@ -53,6 +53,34 @@ dependencies:
|
|
53
53
|
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: octopress-docs
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: octopress-deploy
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
56
84
|
- !ruby/object:Gem::Dependency
|
57
85
|
name: octopress-ink
|
58
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +110,7 @@ dependencies:
|
|
82
110
|
- !ruby/object:Gem::Version
|
83
111
|
version: '1.3'
|
84
112
|
- !ruby/object:Gem::Dependency
|
85
|
-
name:
|
113
|
+
name: rake
|
86
114
|
requirement: !ruby/object:Gem::Requirement
|
87
115
|
requirements:
|
88
116
|
- - ">="
|
@@ -96,7 +124,7 @@ dependencies:
|
|
96
124
|
- !ruby/object:Gem::Version
|
97
125
|
version: '0'
|
98
126
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
127
|
+
name: pry-byebug
|
100
128
|
requirement: !ruby/object:Gem::Requirement
|
101
129
|
requirements:
|
102
130
|
- - ">="
|
@@ -126,8 +154,6 @@ files:
|
|
126
154
|
- LICENSE
|
127
155
|
- README.md
|
128
156
|
- Rakefile
|
129
|
-
- assets/docs/changelog.markdown
|
130
|
-
- assets/docs/index.markdown
|
131
157
|
- bin/octopress
|
132
158
|
- lib/octopress.rb
|
133
159
|
- lib/octopress/command.rb
|
@@ -139,7 +165,6 @@ files:
|
|
139
165
|
- lib/octopress/commands/publish.rb
|
140
166
|
- lib/octopress/commands/serve.rb
|
141
167
|
- lib/octopress/configuration.rb
|
142
|
-
- lib/octopress/docs.rb
|
143
168
|
- lib/octopress/draft.rb
|
144
169
|
- lib/octopress/page.rb
|
145
170
|
- lib/octopress/post.rb
|
@@ -208,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
233
|
version: 1.3.1
|
209
234
|
requirements: []
|
210
235
|
rubyforge_project:
|
211
|
-
rubygems_version: 2.
|
236
|
+
rubygems_version: 2.4.1
|
212
237
|
signing_key:
|
213
238
|
specification_version: 4
|
214
239
|
summary: Octopress is an obsessively designed framework for Jekyll blogging. It’s
|
@@ -1,55 +0,0 @@
|
|
1
|
-
---
|
2
|
-
title: "Octopress Changelog"
|
3
|
-
permalink: /changelog/
|
4
|
-
---
|
5
|
-
|
6
|
-
## Current released version
|
7
|
-
### 3.0.0 RC11 - 2014-05-23
|
8
|
-
|
9
|
-
- Change: Default page template no longer includes a date.
|
10
|
-
- Improved date management when publishing a draft.
|
11
|
-
|
12
|
-
## Past versions
|
13
|
-
|
14
|
-
### 3.0.0 RC11 - 2014-05-07
|
15
|
-
|
16
|
-
- Replaced Hash extensions with Jekyll utility methods.
|
17
|
-
- Replaced String extension "titlecase" with Octopress utility method.
|
18
|
-
|
19
|
-
### 3.0.0 RC10 - 2014-05-07
|
20
|
-
|
21
|
-
- Now using SafeYAML.load instead of YAML.safe_load [#38](https://github.com/octopress/octopress/issues/38)
|
22
|
-
|
23
|
-
### 3.0.0 RC9 - 2014-05-07
|
24
|
-
|
25
|
-
- Support for Jekyll 2.0
|
26
|
-
|
27
|
-
### 3.0.0 RC8 - 2014-05-02
|
28
|
-
|
29
|
-
- Improved draft date management [#35](https://github.com/octopress/octopress/issues/35)
|
30
|
-
|
31
|
-
### 3.0.0 RC7 - 2014-03-24
|
32
|
-
|
33
|
-
- Fixed Time.parse with `--date` option on new posts and pages.
|
34
|
-
- Bumped Jekyll to 1.5.
|
35
|
-
|
36
|
-
### 3.0.0 RC6 - 2014-03-22
|
37
|
-
|
38
|
-
- Added support for octopress-ink documentation system.
|
39
|
-
- Added a `update_docs` Rake task to update docs from the readme and changelog.
|
40
|
-
|
41
|
-
### 3.0.0 RC5 - 2014-03-21
|
42
|
-
- Added octopress-docs to blessed gem list.
|
43
|
-
|
44
|
-
### 3.0.0 RC4 - 2014-03-18
|
45
|
-
- Updated mercenary. Fixed issue: #34
|
46
|
-
|
47
|
-
### 3.0.0 RC3 - 2014-03-18
|
48
|
-
- `serve --watch` fixed. Fixed issue: #33
|
49
|
-
|
50
|
-
### 3.0.0 RC2 - 2014-03-18
|
51
|
-
- `new post` command has new `--dir` option to save new posts in _posts/<DIR>/. Fixed issue #31
|
52
|
-
|
53
|
-
### 3.0.0 RC1 - 2014-03-17
|
54
|
-
- Initial release of Octopress CLI
|
55
|
-
|
data/assets/docs/index.markdown
DELETED
@@ -1,185 +0,0 @@
|
|
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.12'
|
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 Jekyll 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
|
-
```sh
|
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 existing file. |
|
109
|
-
|
110
|
-
### New Page
|
111
|
-
|
112
|
-
```
|
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 existing file. |
|
124
|
-
|
125
|
-
Note: The default page template doesn't expect a date. If you want to add dates
|
126
|
-
to your posts, consider adding `date: {{ date }}` to the default template
|
127
|
-
`_templates/page`, or create a new template to use for dated pages.
|
128
|
-
|
129
|
-
### New Draft
|
130
|
-
|
131
|
-
```sh
|
132
|
-
$ octopress new draft "My Title"
|
133
|
-
```
|
134
|
-
|
135
|
-
This will create a new post in your `_drafts` directory.
|
136
|
-
|
137
|
-
| Option | Description |
|
138
|
-
|:-------------------|:------------------------------------------|
|
139
|
-
| `--template PATH` | Use a template from <path> |
|
140
|
-
| `--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) |
|
141
|
-
| `--slug SLUG` | The slug for the new post. |
|
142
|
-
| `--force` | Overwrite exsiting file. |
|
143
|
-
|
144
|
-
### Publish draft
|
145
|
-
|
146
|
-
```sh
|
147
|
-
$ octopress publish _drafts/some-post.md
|
148
|
-
```
|
149
|
-
|
150
|
-
This will move your draft to the `_posts` directory and rename the file with the proper date.
|
151
|
-
|
152
|
-
| Option | Description |
|
153
|
-
|:-------------------|:------------------------------------------|
|
154
|
-
| `--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) |
|
155
|
-
| `--slug SLUG` | Change the slug for the new post. |
|
156
|
-
| `--dir DIR` | Create post at _posts/DIR/. |
|
157
|
-
| `--force` | Overwrite existing file. |
|
158
|
-
|
159
|
-
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.
|
160
|
-
|
161
|
-
### Templates for Posts and pages
|
162
|
-
|
163
|
-
Octopress post and page templates look like this.
|
164
|
-
|
165
|
-
```
|
166
|
-
---
|
167
|
-
layout: {{ layout }}
|
168
|
-
title: {{ title }}
|
169
|
-
---
|
170
|
-
|
171
|
-
```
|
172
|
-
|
173
|
-
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.
|
174
|
-
|
175
|
-
```sh
|
176
|
-
$ octopress new post --template _templates/linkpost
|
177
|
-
```
|
178
|
-
|
179
|
-
## Contributing
|
180
|
-
|
181
|
-
1. Fork it
|
182
|
-
2. Create your feature branch (`git checkout -b my-new-feature`)
|
183
|
-
3. Commit your changes (`git commit -am 'Add some feature'`)
|
184
|
-
4. Push to the branch (`git push origin my-new-feature`)
|
185
|
-
5. Create new Pull Request
|
data/lib/octopress/docs.rb
DELETED
@@ -1,25 +0,0 @@
|
|
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
|