1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
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
|