octopress-docs 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e07f39a30ba0c277650bc6ea2ae6450a33a3f01c
4
- data.tar.gz: d65d11cee5efc2c2255aa9fab0b9110bab822076
3
+ metadata.gz: b6543e2f162f5ea8de2c0866395ad218c74241fe
4
+ data.tar.gz: 54a65c42d95ccd5ced996023d14f41936f3f232b
5
5
  SHA512:
6
- metadata.gz: ebbe1ae1a2b6e54ab863ddd194bb63f90992a8c48ddefa42a574109d94ddbcc9d9728882a738c5744ce3d48d7f65b71e2fbfde4c2dc3a4cff84f47bd85560832
7
- data.tar.gz: e1a448786ced1155fd6a558c18c972561ea367d455177172c5e71eece3da13f10e0bee40a66e4c5f9c78597f36c007fdaa4bcbdb80155500e9146ad4f4fc26c1
6
+ metadata.gz: 00d6cf3558139c7579a48643a88fab36701810933339f057e902505488395d4accf06cc4e0a09218db77c42a15697a5086f72a2450862fae6720fe8500a19e45
7
+ data.tar.gz: 2d082ce496862c6057b9273ba2fa993778b19f7833b4e5ef38b6b1432eefdbab880d0b162d688dd2254546e7c13261aff956174203be626c23ab2f45fde7e581
@@ -92,17 +92,19 @@ module Octopress
92
92
  end
93
93
 
94
94
  def self.plugin_options(plugin)
95
- {
95
+ options = {
96
96
  name: plugin.name,
97
97
  slug: plugin.slug,
98
98
  type: plugin.type,
99
- base_url: plugin.docs_url,
100
99
  path: plugin.path,
101
100
  source_url: plugin.source_url,
102
101
  website: plugin.website,
103
102
  docs_path: File.join(plugin.assets_path, 'docs'),
104
103
  docs: %w{readme changelog}
105
104
  }
105
+
106
+ options[:base_url] = base_url(options)
107
+ options
106
108
  end
107
109
 
108
110
  def self.default_options(options)
@@ -122,9 +124,13 @@ module Octopress
122
124
 
123
125
  def self.base_url(options)
124
126
  options[:base_url] || if options[:type] == 'theme'
125
- File.join('docs', 'theme')
127
+ 'theme'
126
128
  else
127
- File.join('docs', 'plugins', options[:slug])
129
+ if options[:source_url] =~ /github\.com\/(octopress|imathis)/
130
+ File.join('octopress', options[:slug].sub(/octopress-/,''))
131
+ else
132
+ File.join('plugins', options[:slug])
133
+ end
128
134
  end
129
135
  end
130
136
 
@@ -215,7 +221,7 @@ module Octopress
215
221
  end
216
222
 
217
223
  def self.site_options
218
- source = Docs.gem_dir('site')
224
+ source = Docs.gem_dir('local')
219
225
  {
220
226
  'source' => source,
221
227
  'destination' => File.join(source, '/_site'),
@@ -35,24 +35,25 @@ module Octopress
35
35
  end
36
36
 
37
37
  def page
38
- return @page if @page
39
- @page = Octopress::Docs::Page.new(Octopress.site, @path, page_dir, file, {'path'=>@base_url})
40
- @page.data['layout'] = 'docs'
41
- @page.data['escape_code'] = true
38
+ @page ||= begin
39
+ p = Octopress::Docs::Page.new(Octopress.site, @path, page_dir, file, {'path'=>@base_url})
40
+ p.data['layout'] = 'docs'
41
+ p.data['escape_code'] = true
42
42
 
43
- @page.data['plugin'] = {
44
- 'name' => @plugin_name,
45
- 'slug' => @plugin_slug,
46
- 'type' => @plugin_type,
47
- 'source_url' => @source_url,
48
- 'description' => @description,
49
- 'url' => @base_url
50
- }
43
+ p.data['plugin'] = {
44
+ 'name' => @plugin_name,
45
+ 'slug' => @plugin_slug,
46
+ 'type' => @plugin_type,
47
+ 'source_url' => @source_url,
48
+ 'description' => @description,
49
+ 'url' => @base_url
50
+ }
51
51
 
52
- @page.data['dir'] = doc_dir
53
- @page.data = @data.merge(@page.data)
54
- @page.data.merge!(comment_yaml(@page.content))
55
- @page
52
+ p.data['dir'] = doc_dir
53
+ p.data = @data.merge(p.data)
54
+ p.data.merge!(comment_yaml(p.content))
55
+ p
56
+ end
56
57
  end
57
58
 
58
59
  private
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Docs
3
- VERSION = "0.0.13"
3
+ VERSION = "0.0.14"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-19 00:00:00.000000000 Z
11
+ date: 2015-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -125,16 +125,6 @@ files:
125
125
  - lib/octopress-docs/jekyll/page.rb
126
126
  - lib/octopress-docs/liquid_filters.rb
127
127
  - lib/octopress-docs/version.rb
128
- - site/Gemfile
129
- - site/Gemfile.lock
130
- - site/_config.yml
131
- - site/_includes/nav.html
132
- - site/_layouts/default.html
133
- - site/_layouts/docs.html
134
- - site/_layouts/docs_index.html
135
- - site/_sass/_solarized.scss
136
- - site/index.html
137
- - site/stylesheets/site.scss
138
128
  homepage: https://github.com/octopress/docs
139
129
  licenses:
140
130
  - MIT
data/site/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem "octopress-docs", path: "../"
4
- gem "octopress", path: "../../cli"
5
- gem "octopress-ink", path: "../../ink"
6
- gem "octopress-solarized", path: "../../solarized"
7
- gem "pry-byebug"
data/site/Gemfile.lock DELETED
@@ -1,149 +0,0 @@
1
- PATH
2
- remote: ../
3
- specs:
4
- octopress-docs (0.0.11)
5
- jekyll (~> 2.0)
6
- octopress-escape-code (~> 1.0)
7
- octopress-hooks (~> 2.0)
8
-
9
- PATH
10
- remote: ../../cli
11
- specs:
12
- octopress (3.0.0.rc.22)
13
- jekyll (~> 2.0)
14
- mercenary (~> 0.3.2)
15
- octopress-deploy
16
- octopress-docs
17
- titlecase
18
-
19
- PATH
20
- remote: ../../ink
21
- specs:
22
- octopress-ink (1.0.0.rc.20)
23
- jekyll (~> 2.0)
24
- octopress (~> 3.0.0.rc)
25
- octopress-docs
26
- octopress-filters (~> 1.1)
27
- octopress-hooks (~> 2.2)
28
- octopress-include-tag (~> 1.0)
29
- uglifier (~> 2.5)
30
-
31
- PATH
32
- remote: ../../solarized
33
- specs:
34
- octopress-solarized (1.0.2)
35
- octopress-ink (~> 1.0.0.rc)
36
-
37
- GEM
38
- remote: https://rubygems.org/
39
- specs:
40
- blankslate (2.1.2.4)
41
- byebug (3.5.1)
42
- columnize (~> 0.8)
43
- debugger-linecache (~> 1.2)
44
- slop (~> 3.6)
45
- celluloid (0.16.0)
46
- timers (~> 4.0.0)
47
- classifier-reborn (2.0.2)
48
- fast-stemmer (~> 1.0)
49
- coderay (1.1.0)
50
- coffee-script (2.3.0)
51
- coffee-script-source
52
- execjs
53
- coffee-script-source (1.8.0)
54
- colorator (0.1)
55
- columnize (0.9.0)
56
- debugger-linecache (1.2.0)
57
- execjs (2.2.2)
58
- fast-stemmer (1.0.2)
59
- ffi (1.9.6)
60
- hitimes (1.2.2)
61
- jekyll (2.5.2)
62
- classifier-reborn (~> 2.0)
63
- colorator (~> 0.1)
64
- jekyll-coffeescript (~> 1.0)
65
- jekyll-gist (~> 1.0)
66
- jekyll-paginate (~> 1.0)
67
- jekyll-sass-converter (~> 1.0)
68
- jekyll-watch (~> 1.1)
69
- kramdown (~> 1.3)
70
- liquid (~> 2.6.1)
71
- mercenary (~> 0.3.3)
72
- pygments.rb (~> 0.6.0)
73
- redcarpet (~> 3.1)
74
- safe_yaml (~> 1.0)
75
- toml (~> 0.1.0)
76
- jekyll-coffeescript (1.0.1)
77
- coffee-script (~> 2.2)
78
- jekyll-gist (1.1.0)
79
- jekyll-paginate (1.1.0)
80
- jekyll-sass-converter (1.3.0)
81
- sass (~> 3.2)
82
- jekyll-watch (1.2.0)
83
- listen (~> 2.7)
84
- json (1.8.1)
85
- kramdown (1.5.0)
86
- liquid (2.6.1)
87
- listen (2.8.3)
88
- celluloid (>= 0.15.2)
89
- rb-fsevent (>= 0.9.3)
90
- rb-inotify (>= 0.9)
91
- mercenary (0.3.5)
92
- method_source (0.8.2)
93
- octopress-deploy (1.0.0)
94
- colorator
95
- octopress-docs
96
- octopress-escape-code (1.0.3)
97
- octopress-hooks (~> 2.0)
98
- octopress-filters (1.2.0)
99
- jekyll
100
- octopress-hooks (~> 2.0)
101
- rubypants-unicode
102
- titlecase
103
- octopress-hooks (2.2.1)
104
- jekyll (~> 2.0)
105
- octopress-include-tag (1.0.0)
106
- jekyll (~> 2.0)
107
- octopress-tag-helpers (~> 1.0)
108
- octopress-tag-helpers (1.0.2)
109
- jekyll (~> 2.0)
110
- parslet (1.5.0)
111
- blankslate (~> 2.0)
112
- posix-spawn (0.3.9)
113
- pry (0.10.1)
114
- coderay (~> 1.1.0)
115
- method_source (~> 0.8.1)
116
- slop (~> 3.4)
117
- pry-byebug (2.0.0)
118
- byebug (~> 3.4)
119
- pry (~> 0.10)
120
- pygments.rb (0.6.0)
121
- posix-spawn (~> 0.3.6)
122
- yajl-ruby (~> 1.1.0)
123
- rb-fsevent (0.9.4)
124
- rb-inotify (0.9.5)
125
- ffi (>= 0.5.0)
126
- redcarpet (3.2.1)
127
- rubypants-unicode (0.2.5)
128
- safe_yaml (1.0.4)
129
- sass (3.4.9)
130
- slop (3.6.0)
131
- timers (4.0.1)
132
- hitimes
133
- titlecase (0.1.1)
134
- toml (0.1.2)
135
- parslet (~> 1.5.0)
136
- uglifier (2.6.0)
137
- execjs (>= 0.3.0)
138
- json (>= 1.8.0)
139
- yajl-ruby (1.1.0)
140
-
141
- PLATFORMS
142
- ruby
143
-
144
- DEPENDENCIES
145
- octopress!
146
- octopress-docs!
147
- octopress-ink!
148
- octopress-solarized!
149
- pry-byebug
data/site/_config.yml DELETED
@@ -1,5 +0,0 @@
1
- gems:
2
- - octopress-escape-code
3
- markdown: redcarpet
4
- redcarpet:
5
- extensions: ["no_intra_emphasis", "fenced_code_blocks", "autolink", "tables", "with_toc_data"]
@@ -1,7 +0,0 @@
1
- <header>
2
- <a href="/"><h1>Octopress Local Docs</h1></a>
3
- <p>Local documentation for your site's plugins.</p>
4
- <nav class='main-nav' role='navigation'>
5
- <a href="/">Home</a>
6
- </nav>
7
- </header>
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <link rel='stylesheet' href='/stylesheets/site.css'>
5
- <title>{{ page.title }}</title>
6
- </head>
7
- <body>
8
- <div class='site'>
9
- {{ content }}
10
- </div>
11
- </body>
12
- </html>
@@ -1,15 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
- {% include nav.html %}
5
-
6
- {{ content }}
7
-
8
- {% assign doc_pages = page.docs %}
9
- {% if doc_pages.size > 1 %}
10
- <nav class='plugin-nav' role='navigation'>
11
- {% for doc in doc_pages %}
12
- <a href="{{ doc.url }}">{{ doc.title }}</a>
13
- {% endfor %}
14
- </nav>
15
- {% endif %}
@@ -1,7 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
- {% include nav.html %}
5
-
6
- <h2>Installed plugins</h2>
7
- {{ content }}
@@ -1 +0,0 @@
1
- pre .gd:after,pre .gd .x:after,pre .gi:after,pre .gi .x:after{content:"";position:absolute;z-index:-1;left:0;right:0;top:0;bottom:0}.code-highlight-pre{background:#002731}.code-highlight-row.numbered:before{color:#586e75;background:#073642;border-right:1px solid #00232c;box-shadow:#083e4b -1px 0 inset;text-shadow:#021014 0 -1px}.marked-line .code-highlight-line:before{background:rgba(0,186,255,0.13)}.marked-line.numbered:before{background:rgba(0,186,255,0.13);border-right-color:rgba(0,112,153,0.13)}.highlight pre,pre:not(.code-highlight-pre),.code-highlight{border:1px solid #05232b;background:#002b36;color:#93a1a1}pre span{color:#93a1a1}pre .c{color:#586e75;font-style:italic}pre .cm{color:#586e75;font-style:italic}pre .cp{color:#586e75;font-style:italic}pre .c1{color:#586e75;font-style:italic}pre .cs{color:#586e75;font-weight:bold;font-style:italic}pre .err{color:#dc322f;background:none}pre .k{color:#cb4b16}pre .o{color:#93a1a1;font-weight:bold}pre .p{color:#93a1a1}pre .ow{color:#2aa198;font-weight:bold}pre .gd{color:#93a1a1}pre .gd:after{background:#372c34}pre .gd .x{color:#93a1a1}pre .gd .x:after{background:#4d2d33}pre .ge{color:#93a1a1;font-style:italic}pre .gh{color:#586e75}pre .gi{color:#93a1a1}pre .gi:after{background:#1a412b}pre .gi .x{color:#93a1a1}pre .gi .x:after{background:#355720}pre .go{color:#839496}pre .gp{color:#2aa198}pre .gs{color:#93a1a1;font-weight:bold}pre .gu{color:#6c71c4}pre .gt{color:#dc322f}pre .kc{color:#859900;font-weight:bold}pre .kd{color:#268bd2}pre .kp{color:#cb4b16;font-weight:bold}pre .kr{color:#d33682;font-weight:bold}pre .kt{color:#2aa198}pre .n{color:#268bd2}pre .na{color:#268bd2}pre .nb{color:#859900}pre .nc{color:#d33682}pre .no{color:#b58900}pre .ni{color:#d33682}pre .nl{color:#859900}pre .ne{color:#268bd2;font-weight:bold}pre .nf{color:#268bd2;font-weight:bold}pre .nn{color:#b58900}pre .nt{color:#268bd2;font-weight:bold}pre .nx{color:#b58900}pre .bp{color:#93a1a1}pre .vc{color:#859900}pre .vg{color:#268bd2}pre .vi{color:#268bd2}pre .nv{color:#268bd2}pre .w{color:#657b83}pre .mf{color:#2aa198}pre .m{color:#2aa198}pre .mh{color:#2aa198}pre .mi{color:#2aa198}pre .mo{color:#2aa198}pre .s{color:#2aa198}pre .sb{color:#859900}pre .sc{color:#859900}pre .sd{color:#2aa198}pre .s2{color:#2aa198}pre .se{color:#dc322f}pre .sh{color:#859900}pre .si{color:#268bd2}pre .sx{color:#859900}pre .sr{color:#2aa198}pre .s1{color:#2aa198}pre .ss{color:#cb4b16}pre .il{color:#b58900}code,kbd,samp,tt{color:inherit;background-color:rgba(255,255,255,0.3);border:1px solid rgba(0,0,0,0.1);font-family:"Source Code Pro",Inconsolata-dz,Inconsolata,Menlo,Monaco,Consolas,"Liberation Mono",Courier,monospace;border-radius:3px;font-size:0.85em}code:before,code:after,kbd:before,kbd:after,samp:before,samp:after,tt:before,tt:after{content:"\00a0";letter-spacing:-0.2em}pre code{border:none;background:none;border-raidus:0;font-size:inherit}pre code:before,pre code:after{content:none}pre,pre code{font-size:13px;font-family:"Source Code Pro",Inconsolata-dz,Inconsolata,Menlo,Monaco,Consolas,"Liberation Mono",Courier,monospace}pre *,pre code *{-moz-box-sizing:border-box;box-sizing:border-box}.highlight pre,pre:not(.code-highlight-pre),.code-highlight{overflow:scroll;overflow-y:hidden;overflow-x:auto;line-height:1.45em}.highlight pre span,pre:not(.code-highlight-pre) span,.code-highlight span{font-style:normal;font-weight:normal}.code-highlight-figure{margin:1.8em 0;font-size:14px;background:none;padding:0;border:0}.code-highlight-figure *{-moz-box-sizing:border-box;box-sizing:border-box}.code-highlight-figure pre{margin-top:0;margin-bottom:0}.code-highlight-caption{position:relative;text-align:center;line-height:2em;text-shadow:rgba(255,255,255,0.8) 0 1px 0;color:#474747;font-weight:normal;margin-bottom:0;background-color:#ccc;background-image:-webkit-linear-gradient(#fff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);background-image:linear-gradient(#fff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);border-top-left-radius:5px;border-top-right-radius:5px;font-family:"Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;border:1px solid #cbcbcb}.code-highlight-caption+.code-highlight{border-top:0}.code-highlight-caption-link{position:absolute;right:.8em;color:#666;z-index:1;text-shadow:rgba(255,255,255,0.8) 0 1px 0;padding-left:3em}.highlight pre,pre:not(.code-highlight-pre){padding:1em .8rem;border-radius:.4em;margin:1.8em 0}.code-highlight-pre{width:100%;margin-bottom:0;display:table}.code-highlight-row{display:table-row;width:100%}.code-highlight-row:before,.code-highlight-row .code-highlight-line{padding-left:1.6em;padding-right:1.6em}.code-highlight-row:first-child:before,.code-highlight-row:first-child .code-highlight-line{padding-top:0.8em}.code-highlight-row:last-child:before,.code-highlight-row:last-child .code-highlight-line{padding-bottom:0.8em}.code-highlight-row.numbered:before,.code-highlight-row.numbered .code-highlight-line{padding-left:0.8em;padding-right:0.8em}.code-highlight-row.numbered:before{display:table-cell;content:attr(data-line);min-width:1.2em;text-align:right;line-height:1.45em}.code-highlight-line{display:table-cell;width:100%;position:relative;z-index:1}.marked-line{position:relative}.marked-line .code-highlight-line:before{content:"";position:absolute;left:0;top:0;bottom:0;right:0;border-right:1px solid rgba(0,186,255,0.13)}.marked-line.unnumbered .code-highlight-line:before{border-left:3px solid rgba(0,186,255,0.5)}.marked-line.numbered:before{border-left:3px solid rgba(0,186,255,0.5)}.start-marked-line:before,.start-marked-line .code-highlight-line:before{border-top:1px solid rgba(0,186,255,0.13)}.end-marked-line:before,.end-marked-line .code-highlight-line:before{border-bottom:1px solid rgba(0,186,255,0.13)}
data/site/index.html DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- layout: docs_index
3
- ---
4
-
5
- {% for plugin in plugin_docs %}
6
- <ul class='plugin'>
7
- <li>
8
- <a href="/{{ plugin[1].url }}">{{ plugin[1].name }}</a>{% if plugin[1].description %} - {{ plugin[1].description }}{% endif %}
9
- {% assign source = plugin[1].source_url %}
10
- {% if source %} - {{ source | docs_source_url }}{% endif %}
11
- </li>
12
- </ul>
13
- {% endfor %}
@@ -1,3 +0,0 @@
1
- ---
2
- ---
3
- @import "solarized";