mizuho 0.9.10 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. data/README.markdown +18 -2
  2. data/asciidoc/BUGS +3 -6
  3. data/asciidoc/BUGS.txt +0 -3
  4. data/asciidoc/CHANGELOG +660 -397
  5. data/asciidoc/CHANGELOG.txt +237 -2
  6. data/asciidoc/INSTALL +14 -14
  7. data/asciidoc/MANIFEST +2 -0
  8. data/asciidoc/Makefile.in +9 -1
  9. data/asciidoc/README +2 -2
  10. data/asciidoc/a2x.py +101 -43
  11. data/asciidoc/asciidoc.conf +18 -11
  12. data/asciidoc/asciidoc.py +615 -260
  13. data/asciidoc/common.aap +2 -2
  14. data/asciidoc/configure +9 -9
  15. data/asciidoc/configure.ac +1 -1
  16. data/asciidoc/doc/a2x.1 +34 -4
  17. data/asciidoc/doc/a2x.1.txt +12 -0
  18. data/asciidoc/doc/article.pdf +0 -0
  19. data/asciidoc/doc/asciidoc.1 +73 -29
  20. data/asciidoc/doc/asciidoc.1.txt +56 -30
  21. data/asciidoc/doc/asciidoc.dict +23 -2
  22. data/asciidoc/doc/asciidoc.txt +468 -327
  23. data/asciidoc/doc/book.epub +0 -0
  24. data/asciidoc/doc/faq.txt +201 -25
  25. data/asciidoc/doc/latex-filter.pdf +0 -0
  26. data/asciidoc/doc/music-filter.pdf +0 -0
  27. data/asciidoc/doc/publishing-ebooks-with-asciidoc.txt +1 -1
  28. data/asciidoc/doc/source-highlight-filter.pdf +0 -0
  29. data/asciidoc/doc/source-highlight-filter.txt +48 -37
  30. data/asciidoc/docbook45.conf +4 -4
  31. data/asciidoc/examples/website/ASCIIMathML.js +938 -0
  32. data/asciidoc/examples/website/CHANGELOG.txt +3056 -0
  33. data/asciidoc/examples/website/INSTALL.txt +227 -0
  34. data/asciidoc/examples/website/LaTeXMathML.js +1223 -0
  35. data/asciidoc/examples/website/README-website.txt +29 -0
  36. data/asciidoc/examples/website/README.txt +35 -0
  37. data/asciidoc/examples/website/a2x.1.txt +358 -0
  38. data/asciidoc/examples/website/asciidoc-docbook-xsl.txt +65 -0
  39. data/asciidoc/examples/website/asciidoc-graphviz-sample.txt +170 -0
  40. data/asciidoc/examples/website/asciidoc.css +533 -0
  41. data/asciidoc/examples/website/asciidoc.js +189 -0
  42. data/asciidoc/examples/website/asciidocapi.txt +189 -0
  43. data/asciidoc/examples/website/asciimathml.txt +61 -0
  44. data/asciidoc/examples/website/build-website.sh +25 -0
  45. data/asciidoc/examples/website/customers.csv +18 -0
  46. data/asciidoc/examples/website/epub-notes.txt +210 -0
  47. data/asciidoc/examples/website/faq.txt +1298 -0
  48. data/asciidoc/examples/website/index.txt +502 -0
  49. data/asciidoc/examples/website/latex-backend.txt +192 -0
  50. data/asciidoc/examples/website/latex-bugs.txt +134 -0
  51. data/asciidoc/examples/website/latex-filter.txt +196 -0
  52. data/asciidoc/examples/website/latexmathml.txt +41 -0
  53. data/asciidoc/examples/website/layout1.conf +153 -0
  54. data/asciidoc/examples/website/layout1.css +65 -0
  55. data/asciidoc/examples/website/layout2.conf +153 -0
  56. data/asciidoc/examples/website/layout2.css +83 -0
  57. data/asciidoc/examples/website/main.aap +159 -0
  58. data/asciidoc/examples/website/manpage.txt +197 -0
  59. data/asciidoc/examples/website/music-filter.txt +148 -0
  60. data/asciidoc/examples/website/newlists.txt +40 -0
  61. data/asciidoc/examples/website/newtables.txt +743 -0
  62. data/asciidoc/examples/website/plugins.txt +91 -0
  63. data/asciidoc/examples/website/publishing-ebooks-with-asciidoc.txt +398 -0
  64. data/asciidoc/examples/website/slidy-example.txt +167 -0
  65. data/asciidoc/examples/website/slidy.txt +113 -0
  66. data/asciidoc/examples/website/source-highlight-filter.txt +239 -0
  67. data/asciidoc/examples/website/support.txt +5 -0
  68. data/asciidoc/examples/website/testasciidoc.txt +231 -0
  69. data/asciidoc/examples/website/userguide.txt +5991 -0
  70. data/asciidoc/examples/website/version83.txt +37 -0
  71. data/asciidoc/examples/website/xhtml11-quirks.css +43 -0
  72. data/asciidoc/filters/latex/latex2png.py +28 -12
  73. data/asciidoc/filters/music/music2png.py +22 -6
  74. data/asciidoc/filters/source/source-highlight-filter.conf +7 -5
  75. data/asciidoc/help.conf +147 -131
  76. data/asciidoc/html4.conf +1 -0
  77. data/asciidoc/html5.conf +37 -39
  78. data/asciidoc/javascripts/asciidoc.js +3 -3
  79. data/asciidoc/lang-de.conf +4 -0
  80. data/asciidoc/lang-es.conf +2 -0
  81. data/asciidoc/lang-fr.conf +1 -1
  82. data/asciidoc/lang-hu.conf +2 -0
  83. data/asciidoc/lang-it.conf +2 -0
  84. data/asciidoc/lang-nl.conf +5 -0
  85. data/asciidoc/lang-pt-BR.conf +2 -0
  86. data/asciidoc/lang-ru.conf +2 -3
  87. data/asciidoc/latex.conf +2 -2
  88. data/asciidoc/slidy.conf +4 -2
  89. data/asciidoc/stylesheets/asciidoc.css +29 -4
  90. data/asciidoc/stylesheets/docbook-xsl.css +12 -5
  91. data/asciidoc/stylesheets/toc2.css +1 -0
  92. data/asciidoc/stylesheets/xhtml11-quirks.css +1 -1
  93. data/asciidoc/tests/data/lang-de-man-test.txt +21 -0
  94. data/asciidoc/tests/data/lang-en-man-test.txt +21 -0
  95. data/asciidoc/tests/data/lang-es-man-test.txt +21 -0
  96. data/asciidoc/tests/data/lang-fr-man-test.txt +21 -0
  97. data/asciidoc/tests/data/lang-hu-man-test.txt +21 -0
  98. data/asciidoc/tests/data/lang-it-man-test.txt +21 -0
  99. data/asciidoc/tests/data/lang-it-test.txt +106 -0
  100. data/asciidoc/tests/data/lang-nl-man-test.txt +21 -0
  101. data/asciidoc/tests/data/lang-pt-BR-man-test.txt +21 -0
  102. data/asciidoc/tests/data/lang-ru-man-test.txt +21 -0
  103. data/asciidoc/tests/data/lang-uk-man-test.txt +21 -0
  104. data/asciidoc/tests/data/testcases.conf +10 -0
  105. data/asciidoc/tests/data/testcases.txt +40 -0
  106. data/asciidoc/tests/testasciidoc.conf +143 -17
  107. data/asciidoc/tests/testasciidoc.py +11 -2
  108. data/asciidoc/{stylesheets → themes/flask}/flask.css +0 -0
  109. data/asciidoc/{stylesheets → themes/volnitsky}/volnitsky.css +1 -1
  110. data/asciidoc/vim/ftdetect/asciidoc_filetype.vim +1 -1
  111. data/asciidoc/vim/syntax/asciidoc.vim +1 -1
  112. data/asciidoc/xhtml11-quirks.conf +2 -2
  113. data/asciidoc/xhtml11.conf +35 -37
  114. data/lib/mizuho.rb +1 -1
  115. data/lib/mizuho/generator.rb +3 -1
  116. data/source-highlight/darwin/source-highlight +0 -0
  117. data/templates/juvia.js +30 -5
  118. metadata +58 -9
  119. data/asciidoc/stylesheets/asciidoc-manpage.css +0 -18
  120. data/asciidoc/stylesheets/flask-manpage.css +0 -1
  121. data/asciidoc/stylesheets/volnitsky-manpage.css +0 -1
data/lib/mizuho.rb CHANGED
@@ -24,7 +24,7 @@ module Mizuho
24
24
  TEMPLATES_DIR = "#{SOURCE_ROOT}/templates"
25
25
  ASCIIDOC = "#{SOURCE_ROOT}/asciidoc/asciidoc.py"
26
26
 
27
- VERSION_STRING = "0.9.10"
27
+ VERSION_STRING = "0.9.11"
28
28
 
29
29
  if $LOAD_PATH.first != LIBDIR
30
30
  $LOAD_PATH.unshift(LIBDIR)
@@ -147,7 +147,9 @@ private
147
147
  preamble_copy['id'] = 'preamble'
148
148
  end
149
149
 
150
- toctitle.add_previous_sibling(create_comment_balloon)
150
+ if @commenting_system
151
+ toctitle.add_previous_sibling(create_comment_balloon)
152
+ end
151
153
 
152
154
  f.rewind
153
155
  f.truncate(0)
data/templates/juvia.js CHANGED
@@ -20,12 +20,19 @@ Mizuho.showLightbox = $.proxy(function(creationCallback, closeCallback) {
20
20
  '</div>');
21
21
  var shadow = $('#comments_lightbox_shadow', lightbox);
22
22
  var contents = $('#comments_lightbox_contents > .shell', lightbox);
23
- shadow.click(function() {
24
- lightbox.remove();
25
- if (closeCallback) {
26
- closeCallback();
23
+
24
+ function close() {
25
+ if (lightbox) {
26
+ lightbox.remove();
27
+ lightbox = undefined;
28
+ if (closeCallback) {
29
+ closeCallback();
30
+ }
27
31
  }
28
- });
32
+ }
33
+
34
+ shadow.click(close);
35
+ lightbox.bind('lightbox:close', close);
29
36
  lightbox.appendTo(document.body);
30
37
  creationCallback(contents);
31
38
  }, Mizuho);
@@ -90,6 +97,24 @@ Mizuho.showCommentsPopup = $.proxy(function(balloon) {
90
97
 
91
98
  var self = this;
92
99
  this.showLightbox(function(element) {
100
+ // We install a 'Close' button in the Juvia comment form after it has loaded.
101
+ function installCloseButton() {
102
+ if ($('#comments .juvia-form-actions').size() > 0) {
103
+ // The Juvia form is now loaded. Install the button.
104
+ var div = $('<div class="juvia-action" style="margin-left: 0.5em"></div>');
105
+ var button = $('<input type="button" value="Cancel"></div>').appendTo(div);
106
+ div.insertBefore('#comments .juvia-form-actions .juvia-error');
107
+ button.click(function() {
108
+ $(element).trigger('lightbox:close');
109
+ });
110
+ } else {
111
+ // Continue polling.
112
+ setTimeout(installCloseButton, 50);
113
+ }
114
+ }
115
+ setTimeout(installCloseButton, 50);
116
+
117
+ // Now load the Juvia comments form.
93
118
  element.html('<div id="comments">Loading comments...</div>');
94
119
  self.changingHash = true;
95
120
  location.hash = '#!/' + info.id;
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mizuho
3
3
  version: !ruby/object:Gem::Version
4
- hash: 47
4
+ hash: 45
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 10
10
- version: 0.9.10
9
+ - 11
10
+ version: 0.9.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Hongli Lai
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-15 00:00:00 Z
18
+ date: 2012-05-28 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: nokogiri
@@ -126,6 +126,47 @@ files:
126
126
  - asciidoc/docbook-xsl/text.xsl
127
127
  - asciidoc/docbook-xsl/xhtml.xsl
128
128
  - asciidoc/docbook45.conf
129
+ - asciidoc/examples/website/a2x.1.txt
130
+ - asciidoc/examples/website/asciidoc-docbook-xsl.txt
131
+ - asciidoc/examples/website/asciidoc-graphviz-sample.txt
132
+ - asciidoc/examples/website/asciidoc.css
133
+ - asciidoc/examples/website/asciidoc.js
134
+ - asciidoc/examples/website/asciidocapi.txt
135
+ - asciidoc/examples/website/ASCIIMathML.js
136
+ - asciidoc/examples/website/asciimathml.txt
137
+ - asciidoc/examples/website/build-website.sh
138
+ - asciidoc/examples/website/CHANGELOG.txt
139
+ - asciidoc/examples/website/customers.csv
140
+ - asciidoc/examples/website/epub-notes.txt
141
+ - asciidoc/examples/website/faq.txt
142
+ - asciidoc/examples/website/index.txt
143
+ - asciidoc/examples/website/INSTALL.txt
144
+ - asciidoc/examples/website/latex-backend.txt
145
+ - asciidoc/examples/website/latex-bugs.txt
146
+ - asciidoc/examples/website/latex-filter.txt
147
+ - asciidoc/examples/website/LaTeXMathML.js
148
+ - asciidoc/examples/website/latexmathml.txt
149
+ - asciidoc/examples/website/layout1.conf
150
+ - asciidoc/examples/website/layout1.css
151
+ - asciidoc/examples/website/layout2.conf
152
+ - asciidoc/examples/website/layout2.css
153
+ - asciidoc/examples/website/main.aap
154
+ - asciidoc/examples/website/manpage.txt
155
+ - asciidoc/examples/website/music-filter.txt
156
+ - asciidoc/examples/website/newlists.txt
157
+ - asciidoc/examples/website/newtables.txt
158
+ - asciidoc/examples/website/plugins.txt
159
+ - asciidoc/examples/website/publishing-ebooks-with-asciidoc.txt
160
+ - asciidoc/examples/website/README-website.txt
161
+ - asciidoc/examples/website/README.txt
162
+ - asciidoc/examples/website/slidy-example.txt
163
+ - asciidoc/examples/website/slidy.txt
164
+ - asciidoc/examples/website/source-highlight-filter.txt
165
+ - asciidoc/examples/website/support.txt
166
+ - asciidoc/examples/website/testasciidoc.txt
167
+ - asciidoc/examples/website/userguide.txt
168
+ - asciidoc/examples/website/version83.txt
169
+ - asciidoc/examples/website/xhtml11-quirks.css
129
170
  - asciidoc/filters/code/code-filter-readme.txt
130
171
  - asciidoc/filters/code/code-filter-test.txt
131
172
  - asciidoc/filters/code/code-filter.conf
@@ -197,28 +238,34 @@ files:
197
238
  - asciidoc/README
198
239
  - asciidoc/README.txt
199
240
  - asciidoc/slidy.conf
200
- - asciidoc/stylesheets/asciidoc-manpage.css
201
241
  - asciidoc/stylesheets/asciidoc.css
202
242
  - asciidoc/stylesheets/docbook-xsl.css
203
- - asciidoc/stylesheets/flask-manpage.css
204
- - asciidoc/stylesheets/flask.css
205
243
  - asciidoc/stylesheets/pygments.css
206
244
  - asciidoc/stylesheets/slidy.css
207
245
  - asciidoc/stylesheets/toc2.css
208
- - asciidoc/stylesheets/volnitsky-manpage.css
209
- - asciidoc/stylesheets/volnitsky.css
210
246
  - asciidoc/stylesheets/xhtml11-quirks.css
211
247
  - asciidoc/tests/asciidocapi.py
212
248
  - asciidoc/tests/data/deprecated-quotes.txt
213
249
  - asciidoc/tests/data/filters-test.txt
250
+ - asciidoc/tests/data/lang-de-man-test.txt
214
251
  - asciidoc/tests/data/lang-de-test.txt
252
+ - asciidoc/tests/data/lang-en-man-test.txt
215
253
  - asciidoc/tests/data/lang-en-test.txt
254
+ - asciidoc/tests/data/lang-es-man-test.txt
216
255
  - asciidoc/tests/data/lang-es-test.txt
256
+ - asciidoc/tests/data/lang-fr-man-test.txt
217
257
  - asciidoc/tests/data/lang-fr-test.txt
258
+ - asciidoc/tests/data/lang-hu-man-test.txt
218
259
  - asciidoc/tests/data/lang-hu-test.txt
260
+ - asciidoc/tests/data/lang-it-man-test.txt
261
+ - asciidoc/tests/data/lang-it-test.txt
262
+ - asciidoc/tests/data/lang-nl-man-test.txt
219
263
  - asciidoc/tests/data/lang-nl-test.txt
264
+ - asciidoc/tests/data/lang-pt-BR-man-test.txt
220
265
  - asciidoc/tests/data/lang-pt-BR-test.txt
266
+ - asciidoc/tests/data/lang-ru-man-test.txt
221
267
  - asciidoc/tests/data/lang-ru-test.txt
268
+ - asciidoc/tests/data/lang-uk-man-test.txt
222
269
  - asciidoc/tests/data/lang-uk-test.txt
223
270
  - asciidoc/tests/data/oldtables.txt
224
271
  - asciidoc/tests/data/rcs-id-marker-test.txt
@@ -229,6 +276,8 @@ files:
229
276
  - asciidoc/tests/testasciidoc.conf
230
277
  - asciidoc/tests/testasciidoc.py
231
278
  - asciidoc/text.conf
279
+ - asciidoc/themes/flask/flask.css
280
+ - asciidoc/themes/volnitsky/volnitsky.css
232
281
  - asciidoc/vim/ftdetect/asciidoc_filetype.vim
233
282
  - asciidoc/vim/syntax/asciidoc.vim
234
283
  - asciidoc/wordpress.conf
@@ -1,18 +0,0 @@
1
- /* Overrides for manpage documents */
2
- h1 {
3
- padding-top: 0.5em;
4
- padding-bottom: 0.5em;
5
- border-top: 2px solid silver;
6
- border-bottom: 2px solid silver;
7
- }
8
- h2 {
9
- border-style: none;
10
- }
11
- div.sectionbody {
12
- margin-left: 3em;
13
- }
14
-
15
- @media print {
16
- div#toc { display: none; }
17
- }
18
-
@@ -1 +0,0 @@
1
- /* Empty placeholder file */
@@ -1 +0,0 @@
1
- /* Empty placeholder file */