mathjax-yard 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.#Rakefile +1 -0
  3. data/.yardopts +1 -3
  4. data/README.md +70 -37
  5. data/Rakefile +8 -9
  6. data/doc/MathJaxYard.html +47 -47
  7. data/doc/MathJaxYard/Command.html +289 -182
  8. data/doc/Mathjax-yard_design_20160624.png +0 -0
  9. data/doc/_index.html +38 -33
  10. data/doc/class_list.html +24 -31
  11. data/doc/css/full_list.css +32 -31
  12. data/doc/css/style.css +220 -78
  13. data/doc/file.CODE_OF_CONDUCT.html +132 -0
  14. data/doc/file.Home.html +119 -66
  15. data/doc/file.README.html +119 -66
  16. data/doc/file.README_ja.html +119 -66
  17. data/doc/file.Why_mathjax-yard.html +29 -30
  18. data/doc/file.Why_mathjax-yard.mjx.html +29 -30
  19. data/doc/file.atom.html +30 -31
  20. data/doc/file.atom.mjx.html +30 -31
  21. data/doc/file.left_issue.html +111 -0
  22. data/doc/file.potential.html +29 -30
  23. data/doc/file.potential.mjx.html +29 -30
  24. data/doc/file_list.html +60 -38
  25. data/doc/frames.html +7 -16
  26. data/doc/index.html +119 -66
  27. data/doc/js/app.js +100 -76
  28. data/doc/js/full_list.js +170 -135
  29. data/doc/method_list.html +96 -68
  30. data/doc/top-level-namespace.html +48 -50
  31. data/hikis/Mathjax-yard_design_20160624.pdf +0 -0
  32. data/hikis/Mathjax-yard_design_20160624.png +0 -0
  33. data/{docs → hikis}/README_ja.hiki +68 -37
  34. data/{docs → hikis}/Why_mathjax-yard.hiki +0 -0
  35. data/{docs → hikis}/atom.hiki +1 -1
  36. data/hikis/left_issue.hiki +19 -0
  37. data/{docs → hikis}/potential.hiki +0 -0
  38. data/lib/mathjax-yard.rb +26 -0
  39. data/lib/mathjax-yard/init.rb +1 -1
  40. data/lib/mathjax-yard/version.rb +1 -1
  41. data/mathjax-yard.gemspec +2 -1
  42. data/mathjax.yml +4 -3
  43. metadata +28 -9
  44. data/mathjax.yml.bk +0 -28
@@ -1,6 +1,5 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
4
  <script type="text/x-mathjax-config">
6
5
  MathJax.Hub.Config({
@@ -14,11 +13,12 @@
14
13
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
15
14
  </script>
16
15
  <meta http-equiv="X-UA-Compatible" CONTENT="IE=EmulateIE7" />
17
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
16
+ <meta charset="UTF-8">
17
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
18
  <title>
19
19
  File: potential.mjx
20
20
 
21
- &mdash; Documentation by YARD 0.8.7.6
21
+ &mdash; Documentation by YARD 0.9.5
22
22
 
23
23
  </title>
24
24
 
@@ -27,9 +27,8 @@
27
27
  <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
28
28
 
29
29
  <script type="text/javascript" charset="utf-8">
30
- hasFrames = window.top.frames.main ? true : false;
30
+ pathId = "potential.mjx";
31
31
  relpath = '';
32
- framesUrl = "frames.html#!file.potential.mjx.html";
33
32
  </script>
34
33
 
35
34
 
@@ -40,40 +39,39 @@
40
39
 
41
40
  </head>
42
41
  <body>
43
- <div id="header">
44
- <div id="menu">
42
+ <div class="nav_wrap">
43
+ <iframe id="nav" src="file_list.html"></iframe>
44
+ <div id="resizer"></div>
45
+ </div>
46
+
47
+ <div id="main" tabindex="-1">
48
+ <div id="header">
49
+ <div id="menu">
45
50
 
46
51
  <a href="_index.html">Index</a> &raquo;
47
52
  <span class="title">File: potential.mjx</span>
48
53
 
49
-
50
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
51
54
  </div>
52
55
 
53
- <div id="search">
56
+ <div id="search">
54
57
 
55
58
  <a class="full_list_link" id="class_list_link"
56
59
  href="class_list.html">
57
- Class List
58
- </a>
59
-
60
- <a class="full_list_link" id="method_list_link"
61
- href="method_list.html">
62
- Method List
63
- </a>
64
-
65
- <a class="full_list_link" id="file_list_link"
66
- href="file_list.html">
67
- File List
60
+
61
+ <svg width="24" height="24">
62
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
63
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
64
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
65
+ </svg>
68
66
  </a>
69
67
 
70
68
  </div>
71
- <div class="clear"></div>
72
- </div>
69
+ <div class="clear"></div>
70
+ </div>
73
71
 
74
- <iframe id="search_frame"></iframe>
72
+ <iframe id="search_frame" src="file_list.html"></iframe>
75
73
 
76
- <div id="content"><div id='filecontents'><ol>
74
+ <div id="content"><div id='filecontents'><ol>
77
75
  <li>lj_0</li>
78
76
  </ol>
79
77
 
@@ -86,11 +84,12 @@ E=\frac{ d_0 \left( r_0/rr^{n}m- r_0/rr^{m} n \right) }{ -n + m }
86
84
  $$</p>
87
85
  </div></div>
88
86
 
89
- <div id="footer">
90
- Generated on Fri Jun 24 11:52:33 2016 by
87
+ <div id="footer">
88
+ Generated on Wed Aug 17 18:27:24 2016 by
91
89
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
92
- 0.8.7.6 (ruby-2.2.2).
90
+ 0.9.5 (ruby-2.2.2).
93
91
  </div>
94
92
 
93
+ </div>
95
94
  </body>
96
95
  </html>
@@ -1,8 +1,8 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1
+ <!DOCTYPE html>
3
2
  <html>
4
3
  <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
5
+ <meta charset="utf-8" />
6
6
 
7
7
  <link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
8
8
 
@@ -19,65 +19,87 @@
19
19
  <base id="base_target" target="_parent" />
20
20
  </head>
21
21
  <body>
22
- <script type="text/javascript" charset="utf-8">
23
- var hasFrames = false;
24
- try {
25
- hasFrames = window.top.frames.main ? true : false;
26
- } catch (e) { }
27
- if (hasFrames) {
28
- document.getElementById('base_target').target = 'main';
29
- document.body.className = 'frames';
30
- }
31
- </script>
32
22
  <div id="content">
33
- <h1 id="full_list_header">File List</h1>
34
- <div id="nav">
35
-
36
- <span><a target="_self" href="class_list.html">
37
- Classes
38
- </a></span>
39
-
40
- <span><a target="_self" href="method_list.html">
41
- Methods
42
- </a></span>
43
-
44
- <span><a target="_self" href="file_list.html">
45
- Files
46
- </a></span>
47
-
23
+ <div class="fixed_header">
24
+ <h1 id="full_list_header">File List</h1>
25
+ <div id="full_list_nav">
26
+
27
+ <span><a target="_self" href="class_list.html">
28
+ Classes
29
+ </a></span>
30
+
31
+ <span><a target="_self" href="method_list.html">
32
+ Methods
33
+ </a></span>
34
+
35
+ <span><a target="_self" href="file_list.html">
36
+ Files
37
+ </a></span>
38
+
39
+ </div>
40
+
41
+ <div id="search">Search: <input type="text" /></div>
48
42
  </div>
49
- <div id="search">Search: <input type="text" /></div>
50
43
 
51
44
  <ul id="full_list" class="file">
52
45
 
53
46
 
54
- <li class="r1"><span class="object_link"><a href="index.html" title="README">README</a></a></li>
47
+ <li id="object_README" class="odd">
48
+ <div class="item"><span class="object_link"><a href="index.html" title="README">README</a></span></div>
49
+ </li>
55
50
 
56
51
 
57
- <li class="r2"><span class="object_link"><a href="file.atom.html" title="atom">atom</a></a></li>
52
+ <li id="object_CODE_OF_CONDUCT" class="even">
53
+ <div class="item"><span class="object_link"><a href="file.CODE_OF_CONDUCT.html" title="CODE_OF_CONDUCT">CODE_OF_CONDUCT</a></span></div>
54
+ </li>
58
55
 
59
56
 
60
- <li class="r1"><span class="object_link"><a href="file.atom.mjx.html" title="atom.mjx">atom.mjx</a></a></li>
57
+ <li id="object_atom" class="odd">
58
+ <div class="item"><span class="object_link"><a href="file.atom.html" title="atom">atom</a></span></div>
59
+ </li>
61
60
 
62
61
 
63
- <li class="r2"><span class="object_link"><a href="file.Home.html" title="Home">Home</a></a></li>
62
+ <li id="object_atom.mjx" class="even">
63
+ <div class="item"><span class="object_link"><a href="file.atom.mjx.html" title="atom.mjx">atom.mjx</a></span></div>
64
+ </li>
64
65
 
65
66
 
66
- <li class="r1"><span class="object_link"><a href="file.potential.html" title="potential">potential</a></a></li>
67
+ <li id="object_Home" class="odd">
68
+ <div class="item"><span class="object_link"><a href="file.Home.html" title="Home">Home</a></span></div>
69
+ </li>
67
70
 
68
71
 
69
- <li class="r2"><span class="object_link"><a href="file.potential.mjx.html" title="potential.mjx">potential.mjx</a></a></li>
72
+ <li id="object_left_issue" class="even">
73
+ <div class="item"><span class="object_link"><a href="file.left_issue.html" title="left_issue">left_issue</a></span></div>
74
+ </li>
70
75
 
71
76
 
72
- <li class="r1"><span class="object_link"><a href="file.README_ja.html" title="README_ja">README_ja</a></a></li>
77
+ <li id="object_potential" class="odd">
78
+ <div class="item"><span class="object_link"><a href="file.potential.html" title="potential">potential</a></span></div>
79
+ </li>
73
80
 
74
81
 
75
- <li class="r2"><span class="object_link"><a href="file.Why_mathjax-yard.html" title="Why_mathjax-yard">Why_mathjax-yard</a></a></li>
82
+ <li id="object_potential.mjx" class="even">
83
+ <div class="item"><span class="object_link"><a href="file.potential.mjx.html" title="potential.mjx">potential.mjx</a></span></div>
84
+ </li>
76
85
 
77
86
 
78
- <li class="r1"><span class="object_link"><a href="file.Why_mathjax-yard.mjx.html" title="Why_mathjax-yard.mjx">Why_mathjax-yard.mjx</a></a></li>
87
+ <li id="object_README_ja" class="odd">
88
+ <div class="item"><span class="object_link"><a href="file.README_ja.html" title="README_ja">README_ja</a></span></div>
89
+ </li>
79
90
 
80
91
 
92
+ <li id="object_Why_mathjax-yard" class="even">
93
+ <div class="item"><span class="object_link"><a href="file.Why_mathjax-yard.html" title="Why_mathjax-yard">Why_mathjax-yard</a></span></div>
94
+ </li>
95
+
96
+
97
+ <li id="object_Why_mathjax-yard.mjx" class="odd">
98
+ <div class="item"><span class="object_link"><a href="file.Why_mathjax-yard.mjx.html" title="Why_mathjax-yard.mjx">Why_mathjax-yard.mjx</a></span></div>
99
+ </li>
100
+
101
+
102
+
81
103
  </ul>
82
104
  </div>
83
105
  </body>
@@ -1,26 +1,17 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
3
-
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1
+ <!DOCTYPE html>
2
+ <html>
5
3
  <head>
6
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
- <title>Documentation by YARD 0.8.7.6</title>
4
+ <meta charset="utf-8">
5
+ <title>Documentation by YARD 0.9.5</title>
8
6
  </head>
9
7
  <script type="text/javascript" charset="utf-8">
10
- window.onload = function() {
11
8
  var match = unescape(window.location.hash).match(/^#!(.+)/);
12
9
  var name = match ? match[1] : 'index.html';
13
10
  name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
14
- document.writeln('<frameset cols="20%,*">' +
15
- '<frame name="list" src="class_list.html" />' +
16
- '<frame name="main" src="' + escape(name) + '" />' +
17
- '</frameset>');
18
- }
11
+ window.top.location = name;
19
12
  </script>
20
13
  <noscript>
21
- <frameset cols="20%,*">
22
- <frame name="list" src="class_list.html" />
23
- <frame name="main" src="index.html" />
24
- </frameset>
14
+ <h1>Oops!</h1>
15
+ <h2>YARD requires JavaScript!</h2>
25
16
  </noscript>
26
17
  </html>
@@ -1,6 +1,5 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
1
+ <!DOCTYPE html>
2
+ <html>
4
3
  <head>
5
4
  <script type="text/x-mathjax-config">
6
5
  MathJax.Hub.Config({
@@ -14,11 +13,12 @@
14
13
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML">
15
14
  </script>
16
15
  <meta http-equiv="X-UA-Compatible" CONTENT="IE=EmulateIE7" />
17
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
16
+ <meta charset="UTF-8">
17
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
18
  <title>
19
19
  File: README
20
20
 
21
- &mdash; Documentation by YARD 0.8.7.6
21
+ &mdash; Documentation by YARD 0.9.5
22
22
 
23
23
  </title>
24
24
 
@@ -27,9 +27,8 @@
27
27
  <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
28
28
 
29
29
  <script type="text/javascript" charset="utf-8">
30
- hasFrames = window.top.frames.main ? true : false;
30
+ pathId = "README";
31
31
  relpath = '';
32
- framesUrl = "frames.html#!file.README.html";
33
32
  </script>
34
33
 
35
34
 
@@ -40,49 +39,74 @@
40
39
 
41
40
  </head>
42
41
  <body>
43
- <div id="header">
44
- <div id="menu">
42
+ <div class="nav_wrap">
43
+ <iframe id="nav" src="class_list.html"></iframe>
44
+ <div id="resizer"></div>
45
+ </div>
46
+
47
+ <div id="main" tabindex="-1">
48
+ <div id="header">
49
+ <div id="menu">
45
50
 
46
51
  <a href="_index.html">Index</a> &raquo;
47
52
  <span class="title">File: README</span>
48
53
 
49
-
50
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
51
54
  </div>
52
55
 
53
- <div id="search">
56
+ <div id="search">
54
57
 
55
58
  <a class="full_list_link" id="class_list_link"
56
59
  href="class_list.html">
57
- Class List
58
- </a>
59
-
60
- <a class="full_list_link" id="method_list_link"
61
- href="method_list.html">
62
- Method List
63
- </a>
64
-
65
- <a class="full_list_link" id="file_list_link"
66
- href="file_list.html">
67
- File List
60
+
61
+ <svg width="24" height="24">
62
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
63
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
64
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
65
+ </svg>
68
66
  </a>
69
67
 
70
68
  </div>
71
- <div class="clear"></div>
72
- </div>
69
+ <div class="clear"></div>
70
+ </div>
73
71
 
74
- <iframe id="search_frame"></iframe>
72
+ <iframe id="search_frame" src="class_list.html"></iframe>
75
73
 
76
- <div id="content"><div id='filecontents'><h1>MathJaxYard</h1>
74
+ <div id="content"><div id='filecontents'><h1>MathJaxYard</h1>
77
75
 
78
76
  <p>mathjax-yardはyardによるmarkdown変換においてmathjaxを使えるようにする拡張機能です.</p>
79
77
 
78
+ <p>Github, rubygemsなど,この文書をどのサイトで見るかによって見え方が変わります.</p>
79
+
80
80
  <ul>
81
- <li><a href="file.Why_mathjax-yard.mjx.html">なぜ開発したか</a></li>
82
- <li><a href="file.atom.mjx.html">数式サンプル1</a></li>
83
- <li><a href="file.potential.mjx.html">数式サンプル2</a></li>
81
+ <li><a href="http://nishitani0.kwansei.ac.jp/Open/mathjax-yard/">yardの出力見本</a></li>
84
82
  </ul>
85
83
 
84
+ <p>が,mathjax-yardで意図している完成形です.そこから数式サンプルをたどってみてください.綺麗に数式が表示されるはず.</p>
85
+
86
+ <table><thead>
87
+ <tr>
88
+ <th style="text-align: left">項目</th>
89
+ <th style="text-align: left">from gems</th>
90
+ <th style="text-align: left">for github</th>
91
+ </tr>
92
+ </thead><tbody>
93
+ <tr>
94
+ <td style="text-align: left">なぜ開発したか</td>
95
+ <td style="text-align: left"><a href="file.Why_mathjax-yard.mjx.html">gems</a></td>
96
+ <td style="text-align: left"><a href="Why_mathjax-yard">wiki</a></td>
97
+ </tr>
98
+ <tr>
99
+ <td style="text-align: left">数式サンプル1</td>
100
+ <td style="text-align: left"><a href="file.atom.mjx.html">gems</a></td>
101
+ <td style="text-align: left"><a href="atom">gems</a></td>
102
+ </tr>
103
+ <tr>
104
+ <td style="text-align: left">数式サンプル2</td>
105
+ <td style="text-align: left"><a href="file.potential.mjx.html">gems</a></td>
106
+ <td style="text-align: left"><a href="potential">gems</a></td>
107
+ </tr>
108
+ </tbody></table>
109
+
86
110
  <h2>Installation</h2>
87
111
 
88
112
  <p>Add this line to your application&#39;s Gemfile:</p>
@@ -90,6 +114,14 @@
90
114
  <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>mathjax-yard</span><span class='tstring_end'>&#39;</span></span>
91
115
  </code></pre>
92
116
 
117
+ <p>or</p>
118
+
119
+ <pre class="code ruby"><code class="ruby">Gem::Specification.new do |spec|
120
+ ...
121
+ spec.add_development_dependency &quot;mathjax-yard&quot;, &quot;~&gt; 1.0.2&quot;
122
+ end
123
+ </code></pre>
124
+
93
125
  <p>And then execute:</p>
94
126
 
95
127
  <pre class="code ruby"><code class="ruby">$ bundle
@@ -102,57 +134,71 @@
102
134
 
103
135
  <h2>Usage</h2>
104
136
 
105
- <p>mathjax-yardはcommand line toolとしての使用を意図して作られています.例えば,Rakefileでの使用例は次の通りです.</p>
137
+ <p>mathjax-yardは,bundle gemで作られるgemの開発directoryでの文書作成を前提に作られています.</p>
106
138
 
107
- <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>make documents by yard</span><span class='tstring_end'>&quot;</span></span>
108
- <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:yard</span> <span class='kw'>do</span>
109
- <span class='const'>YARD</span><span class='op'>::</span><span class='const'>Rake</span><span class='op'>::</span><span class='const'>YardocTask</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
110
- <span class='kw'>end</span>
139
+ <h3>準備</h3>
111
140
 
112
- <span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>arrange yard target by mathjax-yard</span><span class='tstring_end'>&quot;</span></span>
113
- <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:pre_math</span> <span class='kw'>do</span>
114
- <span class='id identifier rubyid_system'>system</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>mathjax-yard</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
115
- <span class='kw'>end</span>
141
+ <p>yardのoptionは,.yardoptsに</p>
116
142
 
117
- <span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>make yard documents with yardmath</span><span class='tstring_end'>&quot;</span></span>
118
- <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:myard</span> <span class='op'>=&gt;</span> <span class='lbracket'>[</span><span class='symbol'>:pre_math</span><span class='comma'>,</span><span class='symbol'>:yard</span><span class='rbracket'>]</span> <span class='kw'>do</span>
119
- <span class='id identifier rubyid_system'>system</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>mathjax-yard --post</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
120
- <span class='kw'>end</span>
143
+ <pre class="code ruby"><code class="ruby">-t mathjax -p templates
144
+ -
145
+ spec/*.md
146
+ </code></pre>
147
+
148
+ <p>としています.</p>
149
+
150
+ <p>htmlのhead部分にmathjaxのscriptを埋め込んだlayoutを用意する必要があります.
151
+ mathjax-yardでは,</p>
152
+
153
+ <pre class="code csh"><code class="csh"> mathjax-yard --init
154
+ </code></pre>
155
+
156
+ <p>で自動生成します.</p>
157
+
158
+ <p>その他に,Rakefile, .yardoptsに記述の追加が必要ですが,今は手動で行うように指示しています.</p>
159
+
160
+ <h2>Usage</h2>
161
+
162
+ <pre class="code csh"><code class="csh">Usage: mathjax-yard [options] [DIRECTORY]
163
+ with no extention: mathjax-yard -p lib/../*/*.md
164
+
165
+ -v, --version show program Version.
166
+ -r, --revert revert mjx file to orig file.
167
+ -p, --pre pre operation.
168
+ --post post operation.
169
+ -i, --init init for mathjax on yard layout.
121
170
  </code></pre>
122
171
 
123
172
  <p>yardのデフォルトでの動作をなぞって,動作するように作られています.</p>
124
173
 
125
174
  <ul>
126
175
  <li>mathjax-yardは./<em>/</em>.mdを探索し,それらの中に&#39;\$\$&#39;あるいは&#39;\$\$..\$\$&#39;があると\$MATHJAX20\$などというタグに付け替え,</li>
127
- <li><em>.mj.mdとしたファイルに元ファイルのバックアップを取り,</em>.mdにタグ付け替えした内容を保存します.</li>
128
- <li>また,同時に, &#39;mathjax.yml&#39;にそれらのhash関係をyaml形式で保存します.</li>
176
+ <li>*.mjx.mdとしたファイルに元ファイルのバックアップを取り,タグ付け替えした内容を保存します.</li>
177
+ <li>また,同時に,&#39;mathjax.yml&#39;にそれらのhash関係をyaml形式で保存します.</li>
129
178
  <li>通常のrake yardで変換したのち,</li>
130
179
  <li>&#39;mathjax-yard --post&#39;によって,&#39;doc/file.*.mjx.html&#39;に残されたtagを元に戻します.</li>
131
180
  <li>また同時に,mjx.mdファイルを消します.</li>
181
+ <li>doc中には,files.<em>.mjx.htmlとfiles.</em>.htmlという2種類のほぼ同じ内容のhtmlが生成されます.</li>
132
182
  </ul>
133
183
 
134
- <p>yardのoptionは,.yardoptsに</p>
135
-
136
- <pre class="code ruby"><code class="ruby">-t mathjax -p templates
137
- -
138
- spec/*.md
139
- </code></pre>
184
+ <h3>Rakefileでの使用例</h3>
140
185
 
141
- <p>としています.また,htmlのhead部分にmathjaxのscriptを埋め込んだlayoutを用意しています.</p>
186
+ <p>Rakefileでの使用例は次の通りです.</p>
142
187
 
143
- <p>これをmathjax-yardで行うには,</p>
144
-
145
- <pre class="code csh"><code class="csh"> mathjax-yard --init
146
- </code></pre>
188
+ <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>make documents by yard</span><span class='tstring_end'>&quot;</span></span>
189
+ <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:yard</span> <span class='kw'>do</span>
190
+ <span class='const'>YARD</span><span class='op'>::</span><span class='const'>Rake</span><span class='op'>::</span><span class='const'>YardocTask</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
191
+ <span class='kw'>end</span>
147
192
 
148
- <p>とする必要があります.</p>
193
+ <span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>arrange yard target by mathjax-yard</span><span class='tstring_end'>&quot;</span></span>
194
+ <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:pre_math</span> <span class='kw'>do</span>
195
+ <span class='id identifier rubyid_system'>system</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>mathjax-yard</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
196
+ <span class='kw'>end</span>
149
197
 
150
- <pre class="code csh"><code class="csh">bob% mathjax-yard --help
151
- Usage: yardmath [options] [DIRECTORY]
152
- -v, --version show program Version.
153
- -r, --revert revert mjx file to orig file.
154
- -p, --post post operation.
155
- -i, --init initiation for mathjax extension on yard layout.
198
+ <span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>make yard documents with yardmath</span><span class='tstring_end'>&quot;</span></span>
199
+ <span class='id identifier rubyid_task'>task</span> <span class='symbol'>:myard</span> <span class='op'>=&gt;</span> <span class='lbracket'>[</span><span class='symbol'>:pre_math</span><span class='comma'>,</span><span class='symbol'>:yard</span><span class='rbracket'>]</span> <span class='kw'>do</span>
200
+ <span class='id identifier rubyid_system'>system</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>mathjax-yard --post</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
201
+ <span class='kw'>end</span>
156
202
  </code></pre>
157
203
 
158
204
  <h2>Development</h2>
@@ -161,6 +207,12 @@ Usage: yardmath [options] [DIRECTORY]
161
207
 
162
208
  <p>To install this gem onto your local machine, run <code>bundle exec rake install</code>. To release a new version, update the version number in <code>version.rb</code>, and then run <code>bundle exec rake release</code>, which will create a git tag for the version, push git commits and tags, and push the <code>.gem</code> file to <a href="https://rubygems.org">rubygems.org</a>.</p>
163
209
 
210
+ <h2>left issues</h2>
211
+
212
+ <ul>
213
+ <li><a href="file.Why_mathjax-yard.html">残された課題</a>のやり残しに既述.</li>
214
+ </ul>
215
+
164
216
  <h2>Contributing</h2>
165
217
 
166
218
  <p>Bug reports and pull requests are welcome on GitHub at [[<a href="https://github.com/%5BUSERNAME%5D/mathjax-yard%5D">https://github.com/[USERNAME]/mathjax-yard]</a>]. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the <a href="http://contributor-covenant.org">Contributor Covenant</a> code of conduct.</p>
@@ -170,11 +222,12 @@ Usage: yardmath [options] [DIRECTORY]
170
222
  <p>The gem is available as open source under the terms of the <a href="http://opensource.org/licenses/MIT">MIT License</a>.</p>
171
223
  </div></div>
172
224
 
173
- <div id="footer">
174
- Generated on Fri Jun 24 11:52:33 2016 by
225
+ <div id="footer">
226
+ Generated on Wed Aug 17 18:27:24 2016 by
175
227
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
176
- 0.8.7.6 (ruby-2.2.2).
228
+ 0.9.5 (ruby-2.2.2).
177
229
  </div>
178
230
 
231
+ </div>
179
232
  </body>
180
233
  </html>