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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66ac1a35323bf910dad2e01b6a606ed2c9e26ca1
|
4
|
+
data.tar.gz: 0da35671e8d9655503e48dfba70d2843749a3ac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f5a7e56cdbf5725c45cb90658159af7fc08e6e841478fcd69be7a52dfcf4d32b0e06716075648fa8580b1c910708a263ade7915270a614122decc2d881e3238
|
7
|
+
data.tar.gz: b7c5d0062be8dafad1c4bec2f290b71ba0b16fedc379d37f0d6e0b3e0d832f39b57591691ef8674978ee84e97cc6130846a0bf172d96cad879d418c790ff2486
|
data/.#Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
bob@bob.local.22314
|
data/.yardopts
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,21 @@
|
|
1
1
|
# MathJaxYard
|
2
2
|
|
3
3
|
mathjax-yardはyardによるmarkdown変換においてmathjaxを使えるようにする拡張機能です.
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
|
5
|
+
Github, rubygemsなど,この文書をどのサイトで見るかによって見え方が変わります.
|
6
|
+
|
7
|
+
- [yardの出力見本](http://nishitani0.kwansei.ac.jp/Open/mathjax-yard/)
|
8
|
+
|
9
|
+
が,mathjax-yardで意図している完成形です.そこから数式サンプルをたどってみてください.綺麗に数式が表示されるはず.
|
10
|
+
|
11
|
+
|
12
|
+
|項目| from gems | for github|
|
13
|
+
|:----|:----|:----|
|
14
|
+
|なぜ開発したか|[gems](file.Why_mathjax-yard.mjx.html)|[wiki](Why_mathjax-yard)|
|
15
|
+
|数式サンプル1|[gems](file.atom.mjx.html)|[gems](atom)|
|
16
|
+
|数式サンプル2|[gems](file.potential.mjx.html)|[gems](potential)|
|
17
|
+
|
18
|
+
|
7
19
|
|
8
20
|
## Installation
|
9
21
|
|
@@ -12,7 +24,13 @@ Add this line to your application's Gemfile:
|
|
12
24
|
```ruby
|
13
25
|
gem 'mathjax-yard'
|
14
26
|
```
|
15
|
-
|
27
|
+
or
|
28
|
+
```ruby
|
29
|
+
Gem::Specification.new do |spec|
|
30
|
+
...
|
31
|
+
spec.add_development_dependency "mathjax-yard", "~> 1.0.2"
|
32
|
+
end
|
33
|
+
```
|
16
34
|
And then execute:
|
17
35
|
|
18
36
|
```
|
@@ -26,8 +44,52 @@ $ gem install mathjax-yard
|
|
26
44
|
```
|
27
45
|
|
28
46
|
## Usage
|
47
|
+
mathjax-yardは,bundle gemで作られるgemの開発directoryでの文書作成を前提に作られています.
|
48
|
+
|
49
|
+
### 準備
|
50
|
+
yardのoptionは,.yardoptsに
|
51
|
+
|
52
|
+
```
|
53
|
+
-t mathjax -p templates
|
54
|
+
-
|
55
|
+
spec/*.md
|
56
|
+
```
|
57
|
+
|
58
|
+
としています.
|
59
|
+
|
60
|
+
htmlのhead部分にmathjaxのscriptを埋め込んだlayoutを用意する必要があります.
|
61
|
+
mathjax-yardでは,
|
62
|
+
```csh
|
63
|
+
mathjax-yard --init
|
64
|
+
```
|
65
|
+
で自動生成します.
|
66
|
+
|
67
|
+
その他に,Rakefile, .yardoptsに記述の追加が必要ですが,今は手動で行うように指示しています.
|
68
|
+
|
69
|
+
## Usage
|
70
|
+
```csh
|
71
|
+
Usage: mathjax-yard [options] [DIRECTORY]
|
72
|
+
with no extention: mathjax-yard -p lib/../*/*.md
|
29
73
|
|
30
|
-
|
74
|
+
-v, --version show program Version.
|
75
|
+
-r, --revert revert mjx file to orig file.
|
76
|
+
-p, --pre pre operation.
|
77
|
+
--post post operation.
|
78
|
+
-i, --init init for mathjax on yard layout.
|
79
|
+
```
|
80
|
+
|
81
|
+
yardのデフォルトでの動作をなぞって,動作するように作られています.
|
82
|
+
- mathjax-yardは./*/*.mdを探索し,それらの中に'\$\$'あるいは'\$\$..\$\$'があると\$MATHJAX20\$などというタグに付け替え,
|
83
|
+
- *.mjx.mdとしたファイルに元ファイルのバックアップを取り,タグ付け替えした内容を保存します.
|
84
|
+
- また,同時に,'mathjax.yml'にそれらのhash関係をyaml形式で保存します.
|
85
|
+
- 通常のrake yardで変換したのち,
|
86
|
+
- 'mathjax-yard --post'によって,'doc/file.*.mjx.html'に残されたtagを元に戻します.
|
87
|
+
- また同時に,mjx.mdファイルを消します.
|
88
|
+
- doc中には,files.*.mjx.htmlとfiles.*.htmlという2種類のほぼ同じ内容のhtmlが生成されます.
|
89
|
+
|
90
|
+
### Rakefileでの使用例
|
91
|
+
|
92
|
+
Rakefileでの使用例は次の通りです.
|
31
93
|
|
32
94
|
```ruby
|
33
95
|
desc "make documents by yard"
|
@@ -46,38 +108,6 @@ task :myard => [:pre_math,:yard] do
|
|
46
108
|
end
|
47
109
|
```
|
48
110
|
|
49
|
-
yardのデフォルトでの動作をなぞって,動作するように作られています.
|
50
|
-
- mathjax-yardは./*/*.mdを探索し,それらの中に'\$\$'あるいは'\$\$..\$\$'があると\$MATHJAX20\$などというタグに付け替え,
|
51
|
-
- *.mj.mdとしたファイルに元ファイルのバックアップを取り,*.mdにタグ付け替えした内容を保存します.
|
52
|
-
- また,同時に, 'mathjax.yml'にそれらのhash関係をyaml形式で保存します.
|
53
|
-
- 通常のrake yardで変換したのち,
|
54
|
-
- 'mathjax-yard --post'によって,'doc/file.*.mjx.html'に残されたtagを元に戻します.
|
55
|
-
- また同時に,mjx.mdファイルを消します.
|
56
|
-
|
57
|
-
yardのoptionは,.yardoptsに
|
58
|
-
|
59
|
-
```
|
60
|
-
-t mathjax -p templates
|
61
|
-
-
|
62
|
-
spec/*.md
|
63
|
-
```
|
64
|
-
|
65
|
-
としています.また,htmlのhead部分にmathjaxのscriptを埋め込んだlayoutを用意しています.
|
66
|
-
|
67
|
-
これをmathjax-yardで行うには,
|
68
|
-
```csh
|
69
|
-
mathjax-yard --init
|
70
|
-
```
|
71
|
-
とする必要があります.
|
72
|
-
|
73
|
-
```csh
|
74
|
-
bob% mathjax-yard --help
|
75
|
-
Usage: yardmath [options] [DIRECTORY]
|
76
|
-
-v, --version show program Version.
|
77
|
-
-r, --revert revert mjx file to orig file.
|
78
|
-
-p, --post post operation.
|
79
|
-
-i, --init initiation for mathjax extension on yard layout.
|
80
|
-
```
|
81
111
|
|
82
112
|
## Development
|
83
113
|
|
@@ -85,6 +115,9 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
85
115
|
|
86
116
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
87
117
|
|
118
|
+
## left issues
|
119
|
+
- [残された課題](file.Why_mathjax-yard.html)のやり残しに既述.
|
120
|
+
|
88
121
|
## Contributing
|
89
122
|
|
90
123
|
Bug reports and pull requests are welcome on GitHub at [[https://github.com/[USERNAME]/mathjax-yard]]. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/Rakefile
CHANGED
@@ -13,22 +13,21 @@ task :yard do
|
|
13
13
|
YARD::Rake::YardocTask.new
|
14
14
|
end
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
files = Dir.entries('docs')
|
16
|
+
task :hiki2md do
|
17
|
+
files = Dir.entries('hikis')
|
19
18
|
files.each{|file|
|
20
19
|
name=file.split('.')
|
21
20
|
if name[1]=='hiki' then
|
22
|
-
p command="hiki2md
|
21
|
+
p command="hiki2md hikis/#{name[0]}.hiki > #{basename}.wiki/#{name[0]}.md"
|
23
22
|
system command
|
24
23
|
end
|
25
24
|
}
|
26
25
|
system "cp #{basename}.wiki/README_ja.md README.md"
|
27
26
|
system "cp #{basename}.wiki/README_ja.md #{basename}.wiki/Home.md"
|
28
|
-
system "cp
|
29
|
-
system "cp
|
30
|
-
system "cp
|
31
|
-
system "cp
|
27
|
+
system "cp hikis/*.gif #{basename}.wiki"
|
28
|
+
system "cp hikis/*.gif doc"
|
29
|
+
system "cp hikis/*.png #{basename}.wiki"
|
30
|
+
system "cp hikis/*.png doc"
|
32
31
|
end
|
33
32
|
|
34
33
|
desc "arrange yard target by mathjax-yard"
|
@@ -37,6 +36,6 @@ task :pre_math do
|
|
37
36
|
end
|
38
37
|
|
39
38
|
desc "make yard documents with yardmath"
|
40
|
-
task :myard => [:
|
39
|
+
task :myard => [:hiki2md, :pre_math,:yard] do
|
41
40
|
system('mathjax-yard --post')
|
42
41
|
end
|
data/doc/MathJaxYard.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
|
Module: MathJaxYard
|
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 = "MathJaxYard";
|
31
31
|
relpath = '';
|
32
|
-
framesUrl = "frames.html#!MathJaxYard.html";
|
33
32
|
</script>
|
34
33
|
|
35
34
|
|
@@ -40,63 +39,65 @@
|
|
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 (M)</a> »
|
47
52
|
|
48
53
|
|
49
54
|
<span class="title">MathJaxYard</span>
|
50
55
|
|
51
|
-
|
52
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
53
56
|
</div>
|
54
57
|
|
55
|
-
|
58
|
+
<div id="search">
|
56
59
|
|
57
60
|
<a class="full_list_link" id="class_list_link"
|
58
61
|
href="class_list.html">
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
</a>
|
66
|
-
|
67
|
-
<a class="full_list_link" id="file_list_link"
|
68
|
-
href="file_list.html">
|
69
|
-
File List
|
62
|
+
|
63
|
+
<svg width="24" height="24">
|
64
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
65
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
66
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
67
|
+
</svg>
|
70
68
|
</a>
|
71
69
|
|
72
70
|
</div>
|
73
|
-
|
74
|
-
|
71
|
+
<div class="clear"></div>
|
72
|
+
</div>
|
75
73
|
|
76
|
-
|
74
|
+
<iframe id="search_frame" src="class_list.html"></iframe>
|
77
75
|
|
78
|
-
|
76
|
+
<div id="content"><h1>Module: MathJaxYard
|
79
77
|
|
80
78
|
|
81
79
|
|
82
80
|
</h1>
|
81
|
+
<div class="box_info">
|
82
|
+
|
83
83
|
|
84
|
-
<dl class="box">
|
85
84
|
|
86
85
|
|
87
|
-
|
88
86
|
|
89
|
-
|
90
87
|
|
91
88
|
|
89
|
+
|
92
90
|
|
93
|
-
|
94
|
-
|
91
|
+
|
92
|
+
|
93
|
+
<dl>
|
94
|
+
<dt>Defined in:</dt>
|
95
|
+
<dd>lib/mathjax-yard.rb<span class="defines">,<br />
|
95
96
|
lib/mathjax-yard/init.rb,<br /> lib/mathjax-yard/version.rb</span>
|
96
97
|
</dd>
|
98
|
+
</dl>
|
97
99
|
|
98
|
-
</
|
99
|
-
<div class="clear"></div>
|
100
|
+
</div>
|
100
101
|
|
101
102
|
<h2>Defined Under Namespace</h2>
|
102
103
|
<p class="children">
|
@@ -110,16 +111,14 @@
|
|
110
111
|
</p>
|
111
112
|
|
112
113
|
<h2>Constant Summary</h2>
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
</dl>
|
122
|
-
|
114
|
+
<dl class="constants">
|
115
|
+
|
116
|
+
<dt id="VERSION-constant" class="">VERSION =
|
117
|
+
|
118
|
+
</dt>
|
119
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>1.0.3</span><span class='tstring_end'>"</span></span></pre></dd>
|
120
|
+
|
121
|
+
</dl>
|
123
122
|
|
124
123
|
|
125
124
|
|
@@ -131,11 +130,12 @@
|
|
131
130
|
|
132
131
|
</div>
|
133
132
|
|
134
|
-
|
135
|
-
Generated on
|
133
|
+
<div id="footer">
|
134
|
+
Generated on Wed Aug 17 18:27:25 2016 by
|
136
135
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
137
|
-
0.
|
136
|
+
0.9.5 (ruby-2.2.2).
|
138
137
|
</div>
|
139
138
|
|
139
|
+
</div>
|
140
140
|
</body>
|
141
141
|
</html>
|
@@ -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
|
Class: MathJaxYard::Command
|
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 = "MathJaxYard::Command";
|
31
31
|
relpath = '../';
|
32
|
-
framesUrl = "../frames.html#!MathJaxYard/Command.html";
|
33
32
|
</script>
|
34
33
|
|
35
34
|
|
@@ -40,51 +39,50 @@
|
|
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 (C)</a> »
|
47
52
|
<span class='title'><span class='object_link'><a href="../MathJaxYard.html" title="MathJaxYard (module)">MathJaxYard</a></span></span>
|
48
53
|
»
|
49
54
|
<span class="title">Command</span>
|
50
55
|
|
51
|
-
|
52
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
53
56
|
</div>
|
54
57
|
|
55
|
-
|
58
|
+
<div id="search">
|
56
59
|
|
57
60
|
<a class="full_list_link" id="class_list_link"
|
58
61
|
href="../class_list.html">
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
</a>
|
66
|
-
|
67
|
-
<a class="full_list_link" id="file_list_link"
|
68
|
-
href="../file_list.html">
|
69
|
-
File List
|
62
|
+
|
63
|
+
<svg width="24" height="24">
|
64
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
65
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
66
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
67
|
+
</svg>
|
70
68
|
</a>
|
71
69
|
|
72
70
|
</div>
|
73
|
-
|
74
|
-
|
71
|
+
<div class="clear"></div>
|
72
|
+
</div>
|
75
73
|
|
76
|
-
|
74
|
+
<iframe id="search_frame" src="../class_list.html"></iframe>
|
77
75
|
|
78
|
-
|
76
|
+
<div id="content"><h1>Class: MathJaxYard::Command
|
79
77
|
|
80
78
|
|
81
79
|
|
82
80
|
</h1>
|
83
|
-
|
84
|
-
<dl class="box">
|
81
|
+
<div class="box_info">
|
85
82
|
|
86
|
-
|
87
|
-
<
|
83
|
+
<dl>
|
84
|
+
<dt>Inherits:</dt>
|
85
|
+
<dd>
|
88
86
|
<span class="inheritName">Object</span>
|
89
87
|
|
90
88
|
<ul class="fullTree">
|
@@ -95,36 +93,38 @@
|
|
95
93
|
</ul>
|
96
94
|
<a href="#" class="inheritanceTree">show all</a>
|
97
95
|
|
98
|
-
|
99
|
-
|
96
|
+
</dd>
|
97
|
+
</dl>
|
100
98
|
|
99
|
+
|
101
100
|
|
102
|
-
|
103
101
|
|
104
|
-
|
105
102
|
|
106
103
|
|
107
104
|
|
108
|
-
|
109
|
-
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<dl>
|
110
|
+
<dt>Defined in:</dt>
|
111
|
+
<dd>lib/mathjax-yard.rb<span class="defines">,<br />
|
110
112
|
lib/mathjax-yard/init.rb</span>
|
111
113
|
</dd>
|
114
|
+
</dl>
|
112
115
|
|
113
|
-
</
|
114
|
-
<div class="clear"></div>
|
116
|
+
</div>
|
115
117
|
|
116
118
|
|
117
119
|
<h2>Constant Summary</h2>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
</dl>
|
127
|
-
|
120
|
+
<dl class="constants">
|
121
|
+
|
122
|
+
<dt id="MJX_FILE_EXT-constant" class="">MJX_FILE_EXT =
|
123
|
+
|
124
|
+
</dt>
|
125
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>*.mjx.md</span><span class='tstring_end'>'</span></span></pre></dd>
|
126
|
+
|
127
|
+
</dl>
|
128
128
|
|
129
129
|
|
130
130
|
|
@@ -135,7 +135,7 @@
|
|
135
135
|
|
136
136
|
<h2>
|
137
137
|
Class Method Summary
|
138
|
-
<small
|
138
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
139
139
|
</h2>
|
140
140
|
|
141
141
|
<ul class="summary">
|
@@ -143,7 +143,7 @@
|
|
143
143
|
<li class="public ">
|
144
144
|
<span class="summary_signature">
|
145
145
|
|
146
|
-
<a href="#run-class_method" title="run (class method)"
|
146
|
+
<a href="#run-class_method" title="run (class method)">.<strong>run</strong>(argv = []) ⇒ Object </a>
|
147
147
|
|
148
148
|
|
149
149
|
|
@@ -166,7 +166,7 @@
|
|
166
166
|
|
167
167
|
<h2>
|
168
168
|
Instance Method Summary
|
169
|
-
<small
|
169
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
170
170
|
</h2>
|
171
171
|
|
172
172
|
<ul class="summary">
|
@@ -174,7 +174,29 @@
|
|
174
174
|
<li class="public ">
|
175
175
|
<span class="summary_signature">
|
176
176
|
|
177
|
-
<a href="#convert-instance_method" title="#convert (instance method)"
|
177
|
+
<a href="#convert-instance_method" title="#convert (instance method)">#<strong>convert</strong>(directory) ⇒ Object </a>
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
</span>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
192
|
+
|
193
|
+
</li>
|
194
|
+
|
195
|
+
|
196
|
+
<li class="public ">
|
197
|
+
<span class="summary_signature">
|
198
|
+
|
199
|
+
<a href="#execute-instance_method" title="#execute (instance method)">#<strong>execute</strong> ⇒ Object </a>
|
178
200
|
|
179
201
|
|
180
202
|
|
@@ -196,7 +218,7 @@
|
|
196
218
|
<li class="public ">
|
197
219
|
<span class="summary_signature">
|
198
220
|
|
199
|
-
<a href="#
|
221
|
+
<a href="#get_yard_layout_dir-instance_method" title="#get_yard_layout_dir (instance method)">#<strong>get_yard_layout_dir</strong> ⇒ Object </a>
|
200
222
|
|
201
223
|
|
202
224
|
|
@@ -218,7 +240,7 @@
|
|
218
240
|
<li class="public ">
|
219
241
|
<span class="summary_signature">
|
220
242
|
|
221
|
-
<a href="#
|
243
|
+
<a href="#init_mathjax_yard-instance_method" title="#init_mathjax_yard (instance method)">#<strong>init_mathjax_yard</strong> ⇒ Object </a>
|
222
244
|
|
223
245
|
|
224
246
|
|
@@ -240,7 +262,7 @@
|
|
240
262
|
<li class="public ">
|
241
263
|
<span class="summary_signature">
|
242
264
|
|
243
|
-
<a href="#init_yard-instance_method" title="#init_yard (instance method)"
|
265
|
+
<a href="#init_yard-instance_method" title="#init_yard (instance method)">#<strong>init_yard</strong> ⇒ Object </a>
|
244
266
|
|
245
267
|
|
246
268
|
|
@@ -262,7 +284,7 @@
|
|
262
284
|
<li class="public ">
|
263
285
|
<span class="summary_signature">
|
264
286
|
|
265
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
287
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(argv = []) ⇒ Command </a>
|
266
288
|
|
267
289
|
|
268
290
|
|
@@ -288,7 +310,7 @@
|
|
288
310
|
<li class="public ">
|
289
311
|
<span class="summary_signature">
|
290
312
|
|
291
|
-
<a href="#mk_mjx_file_name-instance_method" title="#mk_mjx_file_name (instance method)"
|
313
|
+
<a href="#mk_mjx_file_name-instance_method" title="#mk_mjx_file_name (instance method)">#<strong>mk_mjx_file_name</strong>(file) ⇒ Object </a>
|
292
314
|
|
293
315
|
|
294
316
|
|
@@ -310,7 +332,7 @@
|
|
310
332
|
<li class="public ">
|
311
333
|
<span class="summary_signature">
|
312
334
|
|
313
|
-
<a href="#mk_tags-instance_method" title="#mk_tags (instance method)"
|
335
|
+
<a href="#mk_tags-instance_method" title="#mk_tags (instance method)">#<strong>mk_tags</strong>(lines, file_name) ⇒ Object </a>
|
314
336
|
|
315
337
|
|
316
338
|
|
@@ -332,7 +354,7 @@
|
|
332
354
|
<li class="public ">
|
333
355
|
<span class="summary_signature">
|
334
356
|
|
335
|
-
<a href="#modify_layout-instance_method" title="#modify_layout (instance method)"
|
357
|
+
<a href="#modify_layout-instance_method" title="#modify_layout (instance method)">#<strong>modify_layout</strong>(file_name) ⇒ Object </a>
|
336
358
|
|
337
359
|
|
338
360
|
|
@@ -354,7 +376,7 @@
|
|
354
376
|
<li class="public ">
|
355
377
|
<span class="summary_signature">
|
356
378
|
|
357
|
-
<a href="#post_operation-instance_method" title="#post_operation (instance method)"
|
379
|
+
<a href="#post_operation-instance_method" title="#post_operation (instance method)">#<strong>post_operation</strong> ⇒ Object </a>
|
358
380
|
|
359
381
|
|
360
382
|
|
@@ -376,7 +398,7 @@
|
|
376
398
|
<li class="public ">
|
377
399
|
<span class="summary_signature">
|
378
400
|
|
379
|
-
<a href="#revert-instance_method" title="#revert (instance method)"
|
401
|
+
<a href="#revert-instance_method" title="#revert (instance method)">#<strong>revert</strong>(directory) ⇒ Object </a>
|
380
402
|
|
381
403
|
|
382
404
|
|
@@ -398,7 +420,7 @@
|
|
398
420
|
<li class="public ">
|
399
421
|
<span class="summary_signature">
|
400
422
|
|
401
|
-
<a href="#store_eq_data-instance_method" title="#store_eq_data (instance method)"
|
423
|
+
<a href="#store_eq_data-instance_method" title="#store_eq_data (instance method)">#<strong>store_eq_data</strong>(equation, file_name) ⇒ Object </a>
|
402
424
|
|
403
425
|
|
404
426
|
|
@@ -420,7 +442,7 @@
|
|
420
442
|
<li class="public ">
|
421
443
|
<span class="summary_signature">
|
422
444
|
|
423
|
-
<a href="#write_output_on_target-instance_method" title="#write_output_on_target (instance method)"
|
445
|
+
<a href="#write_output_on_target-instance_method" title="#write_output_on_target (instance method)">#<strong>write_output_on_target</strong>(file, output) ⇒ Object </a>
|
424
446
|
|
425
447
|
|
426
448
|
|
@@ -448,7 +470,7 @@
|
|
448
470
|
<div class="method_details first">
|
449
471
|
<h3 class="signature first" id="initialize-instance_method">
|
450
472
|
|
451
|
-
|
473
|
+
#<strong>initialize</strong>(argv = []) ⇒ <tt><span class='object_link'><a href="" title="MathJaxYard::Command (class)">Command</a></span></tt>
|
452
474
|
|
453
475
|
|
454
476
|
|
@@ -500,7 +522,7 @@
|
|
500
522
|
<div class="method_details first">
|
501
523
|
<h3 class="signature first" id="run-class_method">
|
502
524
|
|
503
|
-
|
525
|
+
.<strong>run</strong>(argv = []) ⇒ <tt>Object</tt>
|
504
526
|
|
505
527
|
|
506
528
|
|
@@ -536,7 +558,7 @@
|
|
536
558
|
<div class="method_details first">
|
537
559
|
<h3 class="signature first" id="convert-instance_method">
|
538
560
|
|
539
|
-
|
561
|
+
#<strong>convert</strong>(directory) ⇒ <tt>Object</tt>
|
540
562
|
|
541
563
|
|
542
564
|
|
@@ -548,24 +570,24 @@
|
|
548
570
|
<pre class="lines">
|
549
571
|
|
550
572
|
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
573
|
+
109
|
574
|
+
110
|
575
|
+
111
|
576
|
+
112
|
577
|
+
113
|
578
|
+
114
|
579
|
+
115
|
580
|
+
116
|
581
|
+
117
|
582
|
+
118
|
583
|
+
119
|
584
|
+
120
|
585
|
+
121
|
586
|
+
122
|
587
|
+
123</pre>
|
566
588
|
</td>
|
567
589
|
<td>
|
568
|
-
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line
|
590
|
+
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line 109</span>
|
569
591
|
|
570
592
|
<span class='kw'>def</span> <span class='id identifier rubyid_convert'>convert</span><span class='lparen'>(</span><span class='id identifier rubyid_directory'>directory</span><span class='rparen'>)</span>
|
571
593
|
<span class='id identifier rubyid_files'>files</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_glob'>glob</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_directory'>directory</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>*.md</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
|
@@ -590,7 +612,7 @@
|
|
590
612
|
<div class="method_details ">
|
591
613
|
<h3 class="signature " id="execute-instance_method">
|
592
614
|
|
593
|
-
|
615
|
+
#<strong>execute</strong> ⇒ <tt>Object</tt>
|
594
616
|
|
595
617
|
|
596
618
|
|
@@ -639,7 +661,8 @@
|
|
639
661
|
55
|
640
662
|
56
|
641
663
|
57
|
642
|
-
58
|
664
|
+
58
|
665
|
+
59</pre>
|
643
666
|
</td>
|
644
667
|
<td>
|
645
668
|
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line 21</span>
|
@@ -669,6 +692,7 @@
|
|
669
692
|
<span class='rbrace'>}</span>
|
670
693
|
<span class='id identifier rubyid_opt'>opt</span><span class='period'>.</span><span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>-i</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>--init</span><span class='tstring_end'>'</span></span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>init for mathjax on yard layout.</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span>
|
671
694
|
<span class='id identifier rubyid_init_yard'>init_yard</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
695
|
+
<span class='id identifier rubyid_init_mathjax_yard'>init_mathjax_yard</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
672
696
|
<span class='id identifier rubyid_exit'>exit</span>
|
673
697
|
<span class='rbrace'>}</span>
|
674
698
|
<span class='kw'>end</span>
|
@@ -690,7 +714,7 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
690
714
|
<div class="method_details ">
|
691
715
|
<h3 class="signature " id="get_yard_layout_dir-instance_method">
|
692
716
|
|
693
|
-
|
717
|
+
#<strong>get_yard_layout_dir</strong> ⇒ <tt>Object</tt>
|
694
718
|
|
695
719
|
|
696
720
|
|
@@ -702,17 +726,17 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
702
726
|
<pre class="lines">
|
703
727
|
|
704
728
|
|
705
|
-
13
|
706
|
-
14
|
707
|
-
15
|
708
|
-
16
|
709
|
-
17
|
710
729
|
18
|
711
730
|
19
|
712
|
-
20
|
731
|
+
20
|
732
|
+
21
|
733
|
+
22
|
734
|
+
23
|
735
|
+
24
|
736
|
+
25</pre>
|
713
737
|
</td>
|
714
738
|
<td>
|
715
|
-
<pre class="code"><span class="info file"># File 'lib/mathjax-yard/init.rb', line
|
739
|
+
<pre class="code"><span class="info file"># File 'lib/mathjax-yard/init.rb', line 18</span>
|
716
740
|
|
717
741
|
<span class='kw'>def</span> <span class='id identifier rubyid_get_yard_layout_dir'>get_yard_layout_dir</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
718
742
|
<span class='id identifier rubyid_status'>status</span><span class='comma'>,</span> <span class='id identifier rubyid_stdout'>stdout</span><span class='comma'>,</span> <span class='id identifier rubyid_stderr'>stderr</span> <span class='op'>=</span> <span class='id identifier rubyid_systemu'>systemu</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>gem env | grep INSTALLATION </span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
@@ -725,12 +749,84 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
725
749
|
</td>
|
726
750
|
</tr>
|
727
751
|
</table>
|
752
|
+
</div>
|
753
|
+
|
754
|
+
<div class="method_details ">
|
755
|
+
<h3 class="signature " id="init_mathjax_yard-instance_method">
|
756
|
+
|
757
|
+
#<strong>init_mathjax_yard</strong> ⇒ <tt>Object</tt>
|
758
|
+
|
759
|
+
|
760
|
+
|
761
|
+
|
762
|
+
|
763
|
+
</h3><table class="source_code">
|
764
|
+
<tr>
|
765
|
+
<td>
|
766
|
+
<pre class="lines">
|
767
|
+
|
768
|
+
|
769
|
+
61
|
770
|
+
62
|
771
|
+
63
|
772
|
+
64
|
773
|
+
65
|
774
|
+
66
|
775
|
+
67
|
776
|
+
68
|
777
|
+
69
|
778
|
+
70
|
779
|
+
71
|
780
|
+
72
|
781
|
+
73
|
782
|
+
74
|
783
|
+
75
|
784
|
+
76
|
785
|
+
77
|
786
|
+
78
|
787
|
+
79
|
788
|
+
80
|
789
|
+
81
|
790
|
+
82
|
791
|
+
83
|
792
|
+
84</pre>
|
793
|
+
</td>
|
794
|
+
<td>
|
795
|
+
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line 61</span>
|
796
|
+
|
797
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_init_mathjax_yard'>init_mathjax_yard</span>
|
798
|
+
<span class='id identifier rubyid_text'>text</span> <span class='op'>=</span> <span class='heredoc_beg'><<EOS</span>
|
799
|
+
<span class='tstring_content'>
|
800
|
+
Following hand operations are necessary.
|
801
|
+
|
802
|
+
Add ./yardopts
|
803
|
+
|
804
|
+
-t mathjax -p templates
|
805
|
+
|
806
|
+
Add Rakefile
|
807
|
+
|
808
|
+
desc "arrange yard target by mathjax-yard"
|
809
|
+
task :pre_math do
|
810
|
+
system('mathjax-yard')
|
811
|
+
end
|
812
|
+
|
813
|
+
desc "make yard documents with yardmath"
|
814
|
+
task :myard => [:hiki2md, :pre_math,:yard] do
|
815
|
+
system('mathjax-yard --post')
|
816
|
+
end
|
817
|
+
|
818
|
+
</span><span class='heredoc_end'>EOS
|
819
|
+
</span> <span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_text'>text</span>
|
820
|
+
<span class='kw'>end</span></pre>
|
821
|
+
</td>
|
822
|
+
</tr>
|
823
|
+
</table>
|
728
824
|
</div>
|
729
825
|
|
730
826
|
<div class="method_details ">
|
731
827
|
<h3 class="signature " id="init_yard-instance_method">
|
732
828
|
|
733
|
-
|
829
|
+
#<strong>init_yard</strong> ⇒ <tt>Object</tt>
|
734
830
|
|
735
831
|
|
736
832
|
|
@@ -750,7 +846,12 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
750
846
|
8
|
751
847
|
9
|
752
848
|
10
|
753
|
-
11
|
849
|
+
11
|
850
|
+
12
|
851
|
+
13
|
852
|
+
14
|
853
|
+
15
|
854
|
+
16</pre>
|
754
855
|
</td>
|
755
856
|
<td>
|
756
857
|
<pre class="code"><span class="info file"># File 'lib/mathjax-yard/init.rb', line 3</span>
|
@@ -759,7 +860,12 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
759
860
|
<span class='id identifier rubyid_target_dir'>target_dir</span><span class='op'>=</span><span class='id identifier rubyid_get_yard_layout_dir'>get_yard_layout_dir</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
760
861
|
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_cd'>cd</span><span class='lparen'>(</span><span class='id identifier rubyid_target_dir'>target_dir</span><span class='rparen'>)</span><span class='lbrace'>{</span>
|
761
862
|
<span class='id identifier rubyid_tmp_dir'>tmp_dir</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>mathjax</span><span class='tstring_end'>'</span></span> <span class='comment'># 'math2'
|
762
|
-
</span> <span class='
|
863
|
+
</span> <span class='id identifier rubyid_full_path'>full_path</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_target_dir'>target_dir</span><span class='embexpr_end'>}</span><span class='tstring_content'>/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_tmp_dir'>tmp_dir</span><span class='embexpr_end'>}</span><span class='tstring_content'>/layout/html/layout.erb</span><span class='tstring_end'>"</span></span>
|
864
|
+
<span class='kw'>if</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_exist?'>exist?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_tmp_dir'>tmp_dir</span><span class='embexpr_end'>}</span><span class='tstring_content'>/layout/html/layout.erb</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
865
|
+
<span class='id identifier rubyid_print'>print</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>file </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_full_path'>full_path</span><span class='embexpr_end'>}</span><span class='tstring_content'> exists.\nDelete them first.\n</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
866
|
+
<span class='kw'>return</span>
|
867
|
+
<span class='kw'>end</span>
|
868
|
+
<span class='const'>FileUtils</span><span class='period'>.</span><span class='id identifier rubyid_cp_r'>cp_r</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>default</span><span class='tstring_end'>'</span></span><span class='comma'>,</span><span class='id identifier rubyid_tmp_dir'>tmp_dir</span><span class='rparen'>)</span>
|
763
869
|
<span class='id identifier rubyid_modify_layout'>modify_layout</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_tmp_dir'>tmp_dir</span><span class='embexpr_end'>}</span><span class='tstring_content'>/layout/html/layout.erb</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
764
870
|
<span class='id identifier rubyid_modify_layout'>modify_layout</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_tmp_dir'>tmp_dir</span><span class='embexpr_end'>}</span><span class='tstring_content'>/onefile/html/layout.erb</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
765
871
|
<span class='rbrace'>}</span>
|
@@ -772,7 +878,7 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
772
878
|
<div class="method_details ">
|
773
879
|
<h3 class="signature " id="mk_mjx_file_name-instance_method">
|
774
880
|
|
775
|
-
|
881
|
+
#<strong>mk_mjx_file_name</strong>(file) ⇒ <tt>Object</tt>
|
776
882
|
|
777
883
|
|
778
884
|
|
@@ -784,15 +890,15 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
784
890
|
<pre class="lines">
|
785
891
|
|
786
892
|
|
787
|
-
|
788
|
-
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
893
|
+
125
|
894
|
+
126
|
895
|
+
127
|
896
|
+
128
|
897
|
+
129
|
898
|
+
130</pre>
|
793
899
|
</td>
|
794
900
|
<td>
|
795
|
-
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line
|
901
|
+
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line 125</span>
|
796
902
|
|
797
903
|
<span class='kw'>def</span> <span class='id identifier rubyid_mk_mjx_file_name'>mk_mjx_file_name</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
|
798
904
|
<span class='id identifier rubyid_dir'>dir</span><span class='op'>=</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_dirname'>dirname</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
|
@@ -808,7 +914,7 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
808
914
|
<div class="method_details ">
|
809
915
|
<h3 class="signature " id="mk_tags-instance_method">
|
810
916
|
|
811
|
-
|
917
|
+
#<strong>mk_tags</strong>(lines, file_name) ⇒ <tt>Object</tt>
|
812
918
|
|
813
919
|
|
814
920
|
|
@@ -820,32 +926,6 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
820
926
|
<pre class="lines">
|
821
927
|
|
822
928
|
|
823
|
-
111
|
824
|
-
112
|
825
|
-
113
|
826
|
-
114
|
827
|
-
115
|
828
|
-
116
|
829
|
-
117
|
830
|
-
118
|
831
|
-
119
|
832
|
-
120
|
833
|
-
121
|
834
|
-
122
|
835
|
-
123
|
836
|
-
124
|
837
|
-
125
|
838
|
-
126
|
839
|
-
127
|
840
|
-
128
|
841
|
-
129
|
842
|
-
130
|
843
|
-
131
|
844
|
-
132
|
845
|
-
133
|
846
|
-
134
|
847
|
-
135
|
848
|
-
136
|
849
929
|
137
|
850
930
|
138
|
851
931
|
139
|
@@ -853,10 +933,36 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
853
933
|
141
|
854
934
|
142
|
855
935
|
143
|
856
|
-
144
|
936
|
+
144
|
937
|
+
145
|
938
|
+
146
|
939
|
+
147
|
940
|
+
148
|
941
|
+
149
|
942
|
+
150
|
943
|
+
151
|
944
|
+
152
|
945
|
+
153
|
946
|
+
154
|
947
|
+
155
|
948
|
+
156
|
949
|
+
157
|
950
|
+
158
|
951
|
+
159
|
952
|
+
160
|
953
|
+
161
|
954
|
+
162
|
955
|
+
163
|
956
|
+
164
|
957
|
+
165
|
958
|
+
166
|
959
|
+
167
|
960
|
+
168
|
961
|
+
169
|
962
|
+
170</pre>
|
857
963
|
</td>
|
858
964
|
<td>
|
859
|
-
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line
|
965
|
+
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line 137</span>
|
860
966
|
|
861
967
|
<span class='kw'>def</span> <span class='id identifier rubyid_mk_tags'>mk_tags</span><span class='lparen'>(</span><span class='id identifier rubyid_lines'>lines</span><span class='comma'>,</span><span class='id identifier rubyid_file_name'>file_name</span><span class='rparen'>)</span>
|
862
968
|
<span class='ivar'>@in_eq_block</span> <span class='op'>=</span> <span class='kw'>false</span>
|
@@ -900,7 +1006,7 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
900
1006
|
<div class="method_details ">
|
901
1007
|
<h3 class="signature " id="modify_layout-instance_method">
|
902
1008
|
|
903
|
-
|
1009
|
+
#<strong>modify_layout</strong>(file_name) ⇒ <tt>Object</tt>
|
904
1010
|
|
905
1011
|
|
906
1012
|
|
@@ -912,15 +1018,15 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
912
1018
|
<pre class="lines">
|
913
1019
|
|
914
1020
|
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
1021
|
+
27
|
1022
|
+
28
|
1023
|
+
29
|
1024
|
+
30
|
1025
|
+
31
|
1026
|
+
32</pre>
|
921
1027
|
</td>
|
922
1028
|
<td>
|
923
|
-
<pre class="code"><span class="info file"># File 'lib/mathjax-yard/init.rb', line
|
1029
|
+
<pre class="code"><span class="info file"># File 'lib/mathjax-yard/init.rb', line 27</span>
|
924
1030
|
|
925
1031
|
<span class='kw'>def</span> <span class='id identifier rubyid_modify_layout'>modify_layout</span><span class='lparen'>(</span><span class='id identifier rubyid_file_name'>file_name</span><span class='rparen'>)</span>
|
926
1032
|
<span class='id identifier rubyid_p'>p</span> <span class='id identifier rubyid_file_name'>file_name</span>
|
@@ -936,7 +1042,7 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
936
1042
|
<div class="method_details ">
|
937
1043
|
<h3 class="signature " id="post_operation-instance_method">
|
938
1044
|
|
939
|
-
|
1045
|
+
#<strong>post_operation</strong> ⇒ <tt>Object</tt>
|
940
1046
|
|
941
1047
|
|
942
1048
|
|
@@ -948,23 +1054,23 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
948
1054
|
<pre class="lines">
|
949
1055
|
|
950
1056
|
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
1057
|
+
86
|
1058
|
+
87
|
1059
|
+
88
|
1060
|
+
89
|
1061
|
+
90
|
1062
|
+
91
|
1063
|
+
92
|
1064
|
+
93
|
1065
|
+
94
|
1066
|
+
95
|
1067
|
+
96
|
1068
|
+
97
|
1069
|
+
98
|
1070
|
+
99</pre>
|
965
1071
|
</td>
|
966
1072
|
<td>
|
967
|
-
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line
|
1073
|
+
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line 86</span>
|
968
1074
|
|
969
1075
|
<span class='kw'>def</span> <span class='id identifier rubyid_post_operation'>post_operation</span>
|
970
1076
|
<span class='id identifier rubyid_src'>src</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>./mathjax.yml</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
@@ -988,7 +1094,7 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
988
1094
|
<div class="method_details ">
|
989
1095
|
<h3 class="signature " id="revert-instance_method">
|
990
1096
|
|
991
|
-
|
1097
|
+
#<strong>revert</strong>(directory) ⇒ <tt>Object</tt>
|
992
1098
|
|
993
1099
|
|
994
1100
|
|
@@ -1000,15 +1106,15 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
1000
1106
|
<pre class="lines">
|
1001
1107
|
|
1002
1108
|
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1109
|
+
102
|
1110
|
+
103
|
1111
|
+
104
|
1112
|
+
105
|
1113
|
+
106
|
1114
|
+
107</pre>
|
1009
1115
|
</td>
|
1010
1116
|
<td>
|
1011
|
-
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line
|
1117
|
+
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line 102</span>
|
1012
1118
|
|
1013
1119
|
<span class='kw'>def</span> <span class='id identifier rubyid_revert'>revert</span><span class='lparen'>(</span><span class='id identifier rubyid_directory'>directory</span><span class='rparen'>)</span>
|
1014
1120
|
<span class='id identifier rubyid_files'>files</span> <span class='op'>=</span> <span class='const'>Dir</span><span class='period'>.</span><span class='id identifier rubyid_glob'>glob</span><span class='lparen'>(</span><span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_directory'>directory</span><span class='comma'>,</span><span class='const'>MJX_FILE_EXT</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
@@ -1024,7 +1130,7 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
1024
1130
|
<div class="method_details ">
|
1025
1131
|
<h3 class="signature " id="store_eq_data-instance_method">
|
1026
1132
|
|
1027
|
-
|
1133
|
+
#<strong>store_eq_data</strong>(equation, file_name) ⇒ <tt>Object</tt>
|
1028
1134
|
|
1029
1135
|
|
1030
1136
|
|
@@ -1036,15 +1142,15 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
1036
1142
|
<pre class="lines">
|
1037
1143
|
|
1038
1144
|
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1145
|
+
172
|
1146
|
+
173
|
1147
|
+
174
|
1148
|
+
175
|
1149
|
+
176
|
1150
|
+
177</pre>
|
1045
1151
|
</td>
|
1046
1152
|
<td>
|
1047
|
-
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line
|
1153
|
+
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line 172</span>
|
1048
1154
|
|
1049
1155
|
<span class='kw'>def</span> <span class='id identifier rubyid_store_eq_data'>store_eq_data</span><span class='lparen'>(</span><span class='id identifier rubyid_equation'>equation</span><span class='comma'>,</span><span class='id identifier rubyid_file_name'>file_name</span><span class='rparen'>)</span>
|
1050
1156
|
<span class='ivar'>@eq_number</span><span class='op'>+=</span><span class='int'>1</span>
|
@@ -1060,7 +1166,7 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
1060
1166
|
<div class="method_details ">
|
1061
1167
|
<h3 class="signature " id="write_output_on_target-instance_method">
|
1062
1168
|
|
1063
|
-
|
1169
|
+
#<strong>write_output_on_target</strong>(file, output) ⇒ <tt>Object</tt>
|
1064
1170
|
|
1065
1171
|
|
1066
1172
|
|
@@ -1072,13 +1178,13 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
1072
1178
|
<pre class="lines">
|
1073
1179
|
|
1074
1180
|
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1181
|
+
132
|
1182
|
+
133
|
1183
|
+
134
|
1184
|
+
135</pre>
|
1079
1185
|
</td>
|
1080
1186
|
<td>
|
1081
|
-
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line
|
1187
|
+
<pre class="code"><span class="info file"># File 'lib/mathjax-yard.rb', line 132</span>
|
1082
1188
|
|
1083
1189
|
<span class='kw'>def</span> <span class='id identifier rubyid_write_output_on_target'>write_output_on_target</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='comma'>,</span><span class='id identifier rubyid_output'>output</span><span class='rparen'>)</span>
|
1084
1190
|
<span class='id identifier rubyid_m_file'>m_file</span> <span class='op'>=</span> <span class='id identifier rubyid_mk_mjx_file_name'>mk_mjx_file_name</span><span class='lparen'>(</span><span class='id identifier rubyid_file'>file</span><span class='rparen'>)</span>
|
@@ -1093,11 +1199,12 @@ with no extention: mathjax-yard -p lib/../*/*.md
|
|
1093
1199
|
|
1094
1200
|
</div>
|
1095
1201
|
|
1096
|
-
|
1097
|
-
Generated on
|
1202
|
+
<div id="footer">
|
1203
|
+
Generated on Wed Aug 17 18:27:25 2016 by
|
1098
1204
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1099
|
-
0.
|
1205
|
+
0.9.5 (ruby-2.2.2).
|
1100
1206
|
</div>
|
1101
1207
|
|
1208
|
+
</div>
|
1102
1209
|
</body>
|
1103
1210
|
</html>
|