rdaux 0.1.2 → 0.1.3

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.
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # RDaux
2
2
 
3
3
  RDaux creates beautiful documentation websites from markdown files.
4
- It is inspired by daux.io and uses redcarpet with pygments.rb to process
5
- github-flavored markdown files into beautiful documentation websites and
6
- supports ASCII art with help of [Ditaa](http://sourceforge.net/projects/ditaa/).
4
+ It is inspired by [daux.io](http://daux.io/) and uses redcarpet and pygments.rb
5
+ to process github-flavored markdown files into beautiful documentation websites
6
+ and supports ASCII art with help of [Ditaa](http://sourceforge.net/projects/ditaa/).
7
7
 
8
8
  ## Installation
9
9
 
@@ -57,7 +57,7 @@ module RDaux
57
57
  Redcarpet::Markdown.new(Renderer.new({
58
58
  :filter_html => true,
59
59
  :images_dir => public_folder,
60
- :ditaa_root => '/img/ditaa'
60
+ :ditaa_root => 'img/ditaa'
61
61
  }), {
62
62
  :no_intra_emphasis => true,
63
63
  :tables => true,
@@ -34,8 +34,8 @@ module RDaux
34
34
 
35
35
  def ascii2png(code)
36
36
  image_id = Digest::MD5.hexdigest(code)
37
- png_path = @images_dir + @ditaa_root + "/#{image_id}.txt"
38
- txt_path = @images_dir + @ditaa_root + "/#{image_id}.txt"
37
+ png_path = @images_dir + '/' + @ditaa_root + "/#{image_id}.txt"
38
+ txt_path = @images_dir + '/' + @ditaa_root + "/#{image_id}.txt"
39
39
 
40
40
  File.open(txt_path, 'w+') { |f| f.write(code) } unless File.exists?(png_path)
41
41
 
data/lib/rdaux/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RDaux
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -8,9 +8,9 @@
8
8
  <meta name="author" content="<%= site.author %>">
9
9
 
10
10
  <!-- Le styles -->
11
- <link href="/css/bootstrap.min.css" rel="stylesheet">
12
- <link href="/css/pygments.css" rel="stylesheet">
13
- <link href="/css/bootstrap-responsive.min.css" rel="stylesheet">
11
+ <link href="css/bootstrap.min.css" rel="stylesheet">
12
+ <link href="css/pygments.css" rel="stylesheet">
13
+ <link href="css/bootstrap-responsive.min.css" rel="stylesheet">
14
14
 
15
15
  <style>
16
16
  body {
@@ -58,7 +58,7 @@
58
58
 
59
59
  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
60
60
  <!--[if lt IE 9]>
61
- <script src="/js/html5shiv.js"></script>
61
+ <script src="js/html5shiv.js"></script>
62
62
  <![endif]-->
63
63
 
64
64
  <!-- Fav and touch icons -->
@@ -95,8 +95,8 @@
95
95
 
96
96
  </div> <!-- /container -->
97
97
 
98
- <script src="/js/jquery.min.js"></script>
99
- <script src="/js/bootstrap.min.js"></script>
98
+ <script src="js/jquery.min.js"></script>
99
+ <script src="js/bootstrap.min.js"></script>
100
100
 
101
101
  </body>
102
102
  </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdaux
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: