From: Masahiro TANAKA <masa16.tanaka@gmail.com>
Date: Fri, 16 May 2014 11:22:23 +0900
Subject: fix docs

---
 doc/Makefile     | 6 +++---
 doc/index.rd     | 4 ++--
 doc/mkdoc.rb     | 4 +++-
 doc/myrd2html.rb | 7 +++++--
 4 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/doc/Makefile b/doc/Makefile
index 47e9c02..7354af3 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,6 +1,6 @@
 .SUFFIXES: .rd .html .ja.rd .html.ja .rb $(SUFFIXES)
 
-rd2=ruby myrd2html.rb
+rd2=ruby -Ku myrd2html.rb
 
 .rd.html:
 	$(rd2) --lang=en --kw="Ruby,PGPLOT,NArray" $(opt) $< > $@
@@ -42,8 +42,8 @@ tutorial-01.html.ja: tutorial-01.ja.rd trailer.html
 
 # Method description
 rbpgplot.html: mkdoc.rb
-	#ruby -Kn mkdoc.rb $(HOME)/2012/src/pgplot/src rbpgplot.html
-	ruby mkdoc.rb rbpgplot.html
+	ruby -Kn mkdoc.rb /data/masa/2013/src/pgplot/src rbpgplot.html
+	#ruby mkdoc.rb rbpgplot.html
 
 # Method index categolized
 rbpg-ind.rd: rbpg-ind.txt mkind.rb trailer.html
diff --git a/doc/index.rd b/doc/index.rd
index 8bbcca6..91df739 100644
--- a/doc/index.rd
+++ b/doc/index.rd
@@ -11,11 +11,11 @@ graphics library.
 
 * ((<PGPLOT Library|URL:http://www.astro.caltech.edu/~tjp/pgplot/>))
 * GNU FORTRAN compiler
-* ((<NArray|URL:http://narray.rubyforge.org/>)) version 0.5/0.6
+* ((<NArray|URL:http://masa16.github.io/narray/>)) version 0.5 or 0.6 (no plan to support narray-devel)
 
 == Download
 
-* ((<version 0.1.6|URL:https://github.com/masa16/ruby-pgplot/tarball/0.1.6>))
+* ((<Releases|URL:https://github.com/masa16/ruby-pgplot/releases>))
 
 == Installation
 
diff --git a/doc/mkdoc.rb b/doc/mkdoc.rb
index 3d249e0..15d31df 100644
--- a/doc/mkdoc.rb
+++ b/doc/mkdoc.rb
@@ -1,3 +1,5 @@
+# -*- coding: utf-8 -*-
+
 class Formatter
   def initialize(stream)
     @stream = stream
@@ -276,7 +278,7 @@ pgqvsz:0:1,1,1,1
   def manualfunclist
     @manualfunc={}
     curfunc=nil
-    File.open("../rb_pgplot.c.in").each do |line|
+    File.open("../ext/rb_pgplot.c.in").each do |line|
       case line
       when %r'^/\* (PG\w+)'
 	curfunc = $1.downcase
diff --git a/doc/myrd2html.rb b/doc/myrd2html.rb
index 134dc39..b375bc1 100644
--- a/doc/myrd2html.rb
+++ b/doc/myrd2html.rb
@@ -1,3 +1,6 @@
+# -*- coding: utf-8 -*-
+
+
 while /^--/ =~ ARGV[0]
   a = ARGV.shift
   case a
@@ -17,9 +20,9 @@ $date = File.mtime(rdfile).strftime("%b %d %Y")
 
 case $lang
 when 'ja'
-  rd2 = 'rd2 -r ./rd2html-img-lib.rb --html-lang=ja --with-css=./css.css --out-code=utf8'
+  rd2 = '/usr/bin/ruby -Ku /usr/bin/rd2 -r ./rd2html-img-lib.rb --html-lang=ja --with-css=./css.css --out-code=utf8'
 else
-  rd2 = 'rd2 -r ./rd2html-img-lib.rb --html-lang=en --with-css=./css.css'
+  rd2 = '/usr/bin/ruby -Ku /usr/bin/rd2 -r ./rd2html-img-lib.rb --html-lang=en --with-css=./css.css'
 end
 
 rd2 << " --html-title='#{$title}'"  if $title
