soywiki 0.7.1 → 0.7.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.
@@ -3,8 +3,7 @@
3
3
  %head
4
4
  :css
5
5
  h3 { margin-top: 0 }
6
- .sidebar { float:left; width: 20%; font-size: small }
7
- .main { margin-left: 22%; width: 70% }
6
+ .sidebar { float:left; width: 15%; font-size: small }
8
7
  ul { list-style-type: none; margin-left: 0; padding-left: 0 }
9
8
  .page-count { font-size: smaller; color: #CCC }
10
9
  %body
@@ -19,6 +18,7 @@
19
18
  %a{:href => "../#{namespace}/index.html"}= namespace
20
19
  %span.page-count
21
20
  = count
21
+ .sidebar
22
22
  - if ! root
23
23
  %h3= namespace
24
24
  %ul
@@ -3,8 +3,8 @@
3
3
  %head
4
4
  :css
5
5
  h3 { margin-top: 0 }
6
- .sidebar { float:left; width: 20%; font-size: small }
7
- .main { margin-left: 22%; width: 70% }
6
+ .sidebar { float:left; width: 15%; font-size: small }
7
+ .main { margin-left: 32%; width: 65% }
8
8
  ul { list-style-type: none; margin-left: 0; padding-left: 0 }
9
9
  .page-count { font-size: smaller; color: #CCC }
10
10
 
@@ -17,6 +17,7 @@
17
17
  %a{:href => "../#{namespace}/index.html"}= namespace
18
18
  %span.page-count
19
19
  = count
20
+ .sidebar
20
21
  %h3= namespace
21
22
  %ul
22
23
  - pages.each do |page|
data/lib/soywiki/html.rb CHANGED
@@ -3,6 +3,9 @@ require 'rdiscount'
3
3
  module Soywiki
4
4
  module Html
5
5
 
6
+ HTML_DIR = 'html-export'
7
+ INDEX_PAGE_TEMPLATE = File.read(File.join(File.dirname(__FILE__), '..', 'index_template.html.haml'))
8
+
6
9
  def self.href_wiki_links(text)
7
10
  text = text.gsub(WIKI_WORD) {|match|
8
11
  href = if match =~ /\w\./ # namespace
@@ -45,8 +48,6 @@ module Soywiki
45
48
  end
46
49
 
47
50
 
48
- HTML_DIR = 'soywiki-html-export'
49
- INDEX_PAGE_TEMPLATE = File.read(File.join(File.dirname(__FILE__), '..', 'index_template.html.haml'))
50
51
 
51
52
  def self.wiki_page?(file)
52
53
  file.gsub("/", '.') =~ WIKI_WORD
data/lib/soywiki.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.7.1'
4
+ VERSION = '0.7.2'
5
5
  WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
6
6
  HYPERLINK = %r|\bhttps?://[^ >)\n\]]+|
7
7
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 1
9
- version: 0.7.1
8
+ - 2
9
+ version: 0.7.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi