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.
- checksums.yaml +4 -4
- data/.#Rakefile +1 -0
- data/.yardopts +1 -3
- data/README.md +70 -37
- data/Rakefile +8 -9
- data/doc/MathJaxYard.html +47 -47
- data/doc/MathJaxYard/Command.html +289 -182
- data/doc/Mathjax-yard_design_20160624.png +0 -0
- data/doc/_index.html +38 -33
- data/doc/class_list.html +24 -31
- data/doc/css/full_list.css +32 -31
- data/doc/css/style.css +220 -78
- data/doc/file.CODE_OF_CONDUCT.html +132 -0
- data/doc/file.Home.html +119 -66
- data/doc/file.README.html +119 -66
- data/doc/file.README_ja.html +119 -66
- data/doc/file.Why_mathjax-yard.html +29 -30
- data/doc/file.Why_mathjax-yard.mjx.html +29 -30
- data/doc/file.atom.html +30 -31
- data/doc/file.atom.mjx.html +30 -31
- data/doc/file.left_issue.html +111 -0
- data/doc/file.potential.html +29 -30
- data/doc/file.potential.mjx.html +29 -30
- data/doc/file_list.html +60 -38
- data/doc/frames.html +7 -16
- data/doc/index.html +119 -66
- data/doc/js/app.js +100 -76
- data/doc/js/full_list.js +170 -135
- data/doc/method_list.html +96 -68
- data/doc/top-level-namespace.html +48 -50
- data/hikis/Mathjax-yard_design_20160624.pdf +0 -0
- data/hikis/Mathjax-yard_design_20160624.png +0 -0
- data/{docs → hikis}/README_ja.hiki +68 -37
- data/{docs → hikis}/Why_mathjax-yard.hiki +0 -0
- data/{docs → hikis}/atom.hiki +1 -1
- data/hikis/left_issue.hiki +19 -0
- data/{docs → hikis}/potential.hiki +0 -0
- data/lib/mathjax-yard.rb +26 -0
- data/lib/mathjax-yard/init.rb +1 -1
- data/lib/mathjax-yard/version.rb +1 -1
- data/mathjax-yard.gemspec +2 -1
- data/mathjax.yml +4 -3
- metadata +28 -9
- data/mathjax.yml.bk +0 -28
data/doc/file.potential.mjx.html
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
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
|
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
|
-
— Documentation by YARD 0.
|
21
|
+
— 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
|
-
|
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
|
44
|
-
<
|
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> »
|
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
|
-
|
56
|
+
<div id="search">
|
54
57
|
|
55
58
|
<a class="full_list_link" id="class_list_link"
|
56
59
|
href="class_list.html">
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
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
|
-
|
72
|
-
|
69
|
+
<div class="clear"></div>
|
70
|
+
</div>
|
73
71
|
|
74
|
-
|
72
|
+
<iframe id="search_frame" src="file_list.html"></iframe>
|
75
73
|
|
76
|
-
|
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
|
-
|
90
|
-
Generated on
|
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.
|
90
|
+
0.9.5 (ruby-2.2.2).
|
93
91
|
</div>
|
94
92
|
|
93
|
+
</div>
|
95
94
|
</body>
|
96
95
|
</html>
|
data/doc/file_list.html
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
1
|
+
<!DOCTYPE html>
|
3
2
|
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
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
|
-
<
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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>
|
data/doc/frames.html
CHANGED
@@ -1,26 +1,17 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
5
3
|
<head>
|
6
|
-
|
7
|
-
<title>Documentation by YARD 0.
|
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
|
-
|
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
|
-
<
|
22
|
-
|
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>
|
data/doc/index.html
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
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
|
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
|
-
— Documentation by YARD 0.
|
21
|
+
— 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
|
-
|
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
|
44
|
-
<
|
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> »
|
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
|
-
|
56
|
+
<div id="search">
|
54
57
|
|
55
58
|
<a class="full_list_link" id="class_list_link"
|
56
59
|
href="class_list.html">
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
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
|
-
|
72
|
-
|
69
|
+
<div class="clear"></div>
|
70
|
+
</div>
|
73
71
|
|
74
|
-
|
72
|
+
<iframe id="search_frame" src="class_list.html"></iframe>
|
75
73
|
|
76
|
-
|
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="
|
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'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'>'</span><span class='tstring_content'>mathjax-yard</span><span class='tstring_end'>'</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 "mathjax-yard", "~> 1.0.2"
|
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
|
137
|
+
<p>mathjax-yardは,bundle gemで作られるgemの開発directoryでの文書作成を前提に作られています.</p>
|
106
138
|
|
107
|
-
<
|
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
|
-
<
|
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'>'</span><span class='tstring_content'>mathjax-yard</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
115
|
-
<span class='kw'>end</span>
|
141
|
+
<p>yardのoptionは,.yardoptsに</p>
|
116
142
|
|
117
|
-
<
|
118
|
-
|
119
|
-
|
120
|
-
|
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を探索し,それらの中に'\$\$'あるいは'\$\$..\$\$'があると\$MATHJAX20\$などというタグに付け替え,</li>
|
127
|
-
<li
|
128
|
-
<li
|
176
|
+
<li>*.mjx.mdとしたファイルに元ファイルのバックアップを取り,タグ付け替えした内容を保存します.</li>
|
177
|
+
<li>また,同時に,'mathjax.yml'にそれらのhash関係をyaml形式で保存します.</li>
|
129
178
|
<li>通常のrake yardで変換したのち,</li>
|
130
179
|
<li>'mathjax-yard --post'によって,'doc/file.*.mjx.html'に残された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
|
-
<
|
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
|
186
|
+
<p>Rakefileでの使用例は次の通りです.</p>
|
142
187
|
|
143
|
-
<
|
144
|
-
|
145
|
-
<
|
146
|
-
</
|
188
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>make documents by yard</span><span class='tstring_end'>"</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
|
-
<
|
193
|
+
<span class='id identifier rubyid_desc'>desc</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>arrange yard target by mathjax-yard</span><span class='tstring_end'>"</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'>'</span><span class='tstring_content'>mathjax-yard</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
196
|
+
<span class='kw'>end</span>
|
149
197
|
|
150
|
-
<
|
151
|
-
|
152
|
-
|
153
|
-
|
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'>"</span><span class='tstring_content'>make yard documents with yardmath</span><span class='tstring_end'>"</span></span>
|
199
|
+
<span class='id identifier rubyid_task'>task</span> <span class='symbol'>:myard</span> <span class='op'>=></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'>'</span><span class='tstring_content'>mathjax-yard --post</span><span class='tstring_end'>'</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
|
-
|
174
|
-
Generated on
|
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.
|
228
|
+
0.9.5 (ruby-2.2.2).
|
177
229
|
</div>
|
178
230
|
|
231
|
+
</div>
|
179
232
|
</body>
|
180
233
|
</html>
|