gollum 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of gollum might be problematic. Click here for more details.

Files changed (765) hide show
  1. data/Gemfile +3 -0
  2. data/HISTORY.md +14 -2
  3. data/Home.md +3 -0
  4. data/README.md +24 -7
  5. data/bin/gollum +25 -6
  6. data/gollum.gemspec +336 -39
  7. data/lib/gollum.rb +5 -44
  8. data/lib/gollum/albino.rb +4 -29
  9. data/lib/gollum/blob_entry.rb +15 -8
  10. data/lib/gollum/committer.rb +217 -0
  11. data/lib/gollum/file.rb +2 -3
  12. data/lib/gollum/frontend/app.rb +64 -23
  13. data/lib/gollum/frontend/public/css/dialog.css +141 -0
  14. data/lib/gollum/frontend/public/css/editor.css +537 -0
  15. data/lib/gollum/frontend/public/css/gollum.css +643 -33
  16. data/lib/gollum/frontend/public/css/ie7.css +69 -0
  17. data/lib/gollum/frontend/public/css/template.css +316 -0
  18. data/lib/gollum/frontend/public/images/icon-sprite.png +0 -0
  19. data/lib/gollum/frontend/public/javascript/MathJax/MathJax.js +17 -1678
  20. data/lib/gollum/frontend/public/javascript/MathJax/config/MMLorHTML.js +10 -55
  21. data/lib/gollum/frontend/public/javascript/MathJax/config/MathJax.js +288 -49
  22. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.buildinfo +4 -0
  23. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/CSS-styles.doctree +0 -0
  24. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/HTML-snippets.doctree +0 -0
  25. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/ajax.doctree +0 -0
  26. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/callback.doctree +0 -0
  27. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/elementjax.doctree +0 -0
  28. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/html.doctree +0 -0
  29. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/hub.doctree +0 -0
  30. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/index.doctree +0 -0
  31. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/inputjax.doctree +0 -0
  32. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/jax.doctree +0 -0
  33. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/message.doctree +0 -0
  34. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/object.doctree +0 -0
  35. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/outputjax.doctree +0 -0
  36. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/queue.doctree +0 -0
  37. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/signal.doctree +0 -0
  38. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/api/variable.doctree +0 -0
  39. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/callbacks.doctree +0 -0
  40. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/community.doctree +0 -0
  41. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/configuration.doctree +0 -0
  42. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/dynamic.doctree +0 -0
  43. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/environment.pickle +0 -0
  44. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/glossary.doctree +0 -0
  45. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/index.doctree +0 -0
  46. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/installation.doctree +0 -0
  47. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/jsMath.doctree +0 -0
  48. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/mathjax.doctree +0 -0
  49. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/mathml.doctree +0 -0
  50. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/model.doctree +0 -0
  51. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/FontWarnings.doctree +0 -0
  52. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/HTML-CSS.doctree +0 -0
  53. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MMLorHTML.doctree +0 -0
  54. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MathML.doctree +0 -0
  55. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MathMenu.doctree +0 -0
  56. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/MathZoom.doctree +0 -0
  57. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/NativeMML.doctree +0 -0
  58. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/TeX.doctree +0 -0
  59. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/hub.doctree +0 -0
  60. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/jsMath2jax.doctree +0 -0
  61. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/mml2jax.doctree +0 -0
  62. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/options/tex2jax.doctree +0 -0
  63. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/output.doctree +0 -0
  64. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/platforms/index.doctree +0 -0
  65. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/platforms/movable-type.doctree +0 -0
  66. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/platforms/wordpress.doctree +0 -0
  67. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/queues.doctree +0 -0
  68. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/signals.doctree +0 -0
  69. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/start.doctree +0 -0
  70. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/startup.doctree +0 -0
  71. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/synchronize.doctree +0 -0
  72. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/tex.doctree +0 -0
  73. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/.doctrees/typeset.doctree +0 -0
  74. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/CSS-styles.html +173 -0
  75. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/HTML-snippets.html +170 -0
  76. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/badge.gif +0 -0
  77. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/mt_head.png +0 -0
  78. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/mt_menu.png +0 -0
  79. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/mt_templates.png +0 -0
  80. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/wp_menu.png +0 -0
  81. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_images/wp_templates.png +0 -0
  82. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/CSS-styles.txt +79 -0
  83. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/HTML-snippets.txt +83 -0
  84. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/ajax.txt +196 -0
  85. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/callback.txt +259 -0
  86. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/elementjax.txt +122 -0
  87. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/html.txt +122 -0
  88. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/hub.txt +330 -0
  89. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/index.txt +44 -0
  90. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/inputjax.txt +86 -0
  91. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/jax.txt +148 -0
  92. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/message.txt +86 -0
  93. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/object.txt +210 -0
  94. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/outputjax.txt +100 -0
  95. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/queue.txt +99 -0
  96. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/signal.txt +154 -0
  97. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/api/variable.txt +83 -0
  98. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/callbacks.txt +228 -0
  99. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/community.txt +60 -0
  100. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/configuration.txt +375 -0
  101. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/dynamic.txt +181 -0
  102. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/glossary.txt +75 -0
  103. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/index.txt +71 -0
  104. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/installation.txt +184 -0
  105. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/jsMath.txt +31 -0
  106. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/mathjax.txt +36 -0
  107. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/mathml.txt +97 -0
  108. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/model.txt +224 -0
  109. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/FontWarnings.txt +140 -0
  110. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/HTML-CSS.txt +119 -0
  111. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MMLorHTML.txt +42 -0
  112. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MathML.txt +27 -0
  113. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MathMenu.txt +79 -0
  114. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/MathZoom.txt +42 -0
  115. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/NativeMML.txt +61 -0
  116. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/TeX.txt +67 -0
  117. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/hub.txt +209 -0
  118. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/jsMath2jax.txt +53 -0
  119. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/mml2jax.txt +53 -0
  120. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/options/tex2jax.txt +137 -0
  121. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/output.txt +126 -0
  122. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/platforms/index.txt +65 -0
  123. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/platforms/movable-type.txt +41 -0
  124. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/platforms/wordpress.txt +42 -0
  125. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/queues.txt +254 -0
  126. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/signals.txt +161 -0
  127. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/start.txt +314 -0
  128. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/startup.txt +152 -0
  129. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/synchronize.txt +65 -0
  130. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/tex.txt +1090 -0
  131. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_sources/typeset.txt +229 -0
  132. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/basic.css +509 -0
  133. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/doctools.js +247 -0
  134. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/file.png +0 -0
  135. data/lib/gollum/frontend/public/javascript/{jquery-1.4.2.min.js → MathJax/docs/html/_static/jquery.js} +1 -1
  136. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/mathjax_mathml.user.js +22 -0
  137. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/mathjax_wikipedia.user.js +35 -0
  138. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/minus.png +0 -0
  139. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/mj.css +223 -0
  140. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/plus.png +0 -0
  141. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/pygments.css +61 -0
  142. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/searchtools.js +505 -0
  143. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/_static/underscore.js +16 -0
  144. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/ajax.html +406 -0
  145. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/callback.html +435 -0
  146. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/elementjax.html +283 -0
  147. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/html.html +292 -0
  148. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/hub.html +674 -0
  149. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/index.html +144 -0
  150. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/inputjax.html +221 -0
  151. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/jax.html +319 -0
  152. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/message.html +224 -0
  153. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/object.html +356 -0
  154. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/outputjax.html +246 -0
  155. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/queue.html +247 -0
  156. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/signal.html +334 -0
  157. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/api/variable.html +220 -0
  158. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/callbacks.html +305 -0
  159. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/community.html +155 -0
  160. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/configuration.html +434 -0
  161. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/dynamic.html +274 -0
  162. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/genindex.html +295 -0
  163. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/glossary.html +160 -0
  164. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/index.html +177 -0
  165. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/installation.html +262 -0
  166. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/jsMath.html +128 -0
  167. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/mathjax.html +137 -0
  168. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/mathml.html +194 -0
  169. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/model.html +305 -0
  170. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/objects.inv +0 -0
  171. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/FontWarnings.html +264 -0
  172. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/HTML-CSS.html +241 -0
  173. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MMLorHTML.html +143 -0
  174. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MathML.html +132 -0
  175. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MathMenu.html +194 -0
  176. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/MathZoom.html +147 -0
  177. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/NativeMML.html +171 -0
  178. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/TeX.html +175 -0
  179. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/hub.html +342 -0
  180. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/jsMath2jax.html +154 -0
  181. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/mml2jax.html +154 -0
  182. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/options/tex2jax.html +249 -0
  183. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/output.html +218 -0
  184. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/platforms/index.html +168 -0
  185. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/platforms/movable-type.html +145 -0
  186. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/platforms/wordpress.html +146 -0
  187. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/queues.html +334 -0
  188. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/search.html +95 -0
  189. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/searchindex.js +1 -0
  190. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/signals.html +257 -0
  191. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/start.html +374 -0
  192. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/startup.html +239 -0
  193. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/synchronize.html +161 -0
  194. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/tex.html +1152 -0
  195. data/lib/gollum/frontend/public/javascript/MathJax/docs/html/typeset.html +318 -0
  196. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/CSS-styles.rst +79 -0
  197. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/HTML-snippets.rst +83 -0
  198. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/_static/mathjax_mathml.user.js +22 -0
  199. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/_static/mathjax_wikipedia.user.js +35 -0
  200. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/ajax.rst +196 -0
  201. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/callback.rst +259 -0
  202. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/elementjax.rst +122 -0
  203. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/html.rst +122 -0
  204. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/hub.rst +330 -0
  205. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/index.rst +44 -0
  206. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/inputjax.rst +86 -0
  207. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/jax.rst +148 -0
  208. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/message.rst +86 -0
  209. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/object.rst +210 -0
  210. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/outputjax.rst +100 -0
  211. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/queue.rst +99 -0
  212. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/signal.rst +154 -0
  213. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/api/variable.rst +83 -0
  214. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/callbacks.rst +228 -0
  215. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/community.rst +60 -0
  216. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/conf.py +198 -0
  217. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/configuration.rst +375 -0
  218. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/dynamic.rst +181 -0
  219. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/glossary.rst +75 -0
  220. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/mt_head.png +0 -0
  221. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/mt_menu.png +0 -0
  222. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/mt_templates.png +0 -0
  223. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/wp_menu.png +0 -0
  224. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/images/wp_templates.png +0 -0
  225. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/index.rst +71 -0
  226. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/installation.rst +184 -0
  227. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/jsMath.rst +31 -0
  228. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mathjax.rst +36 -0
  229. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mathml.rst +97 -0
  230. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mjtheme/static/mj.css_t +256 -0
  231. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/mjtheme/theme.conf +30 -0
  232. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/model.rst +224 -0
  233. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/FontWarnings.rst +140 -0
  234. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/HTML-CSS.rst +119 -0
  235. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MMLorHTML.rst +42 -0
  236. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MathML.rst +27 -0
  237. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MathMenu.rst +79 -0
  238. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/MathZoom.rst +42 -0
  239. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/NativeMML.rst +61 -0
  240. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/TeX.rst +67 -0
  241. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/hub.rst +209 -0
  242. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/jsMath2jax.rst +53 -0
  243. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/mml2jax.rst +53 -0
  244. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/options/tex2jax.rst +137 -0
  245. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/output.rst +126 -0
  246. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/platforms/index.rst +65 -0
  247. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/platforms/movable-type.rst +41 -0
  248. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/platforms/wordpress.rst +42 -0
  249. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/queues.rst +254 -0
  250. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/signals.rst +161 -0
  251. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/start.rst +314 -0
  252. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/startup.rst +152 -0
  253. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/synchronize.rst +65 -0
  254. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/tex.rst +1090 -0
  255. data/lib/gollum/frontend/public/javascript/MathJax/docs/rst/typeset.rst +229 -0
  256. data/lib/gollum/frontend/public/javascript/MathJax/extensions/FontWarnings.js +18 -0
  257. data/lib/gollum/frontend/public/javascript/MathJax/extensions/MathMenu.js +18 -0
  258. data/lib/gollum/frontend/public/javascript/MathJax/extensions/MathZoom.js +18 -0
  259. data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/AMSmath.js +11 -369
  260. data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/AMSsymbols.js +11 -378
  261. data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/autobold.js +11 -36
  262. data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/boldsymbol.js +10 -101
  263. data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/mathchoice.js +10 -57
  264. data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/newcommand.js +10 -177
  265. data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/noErrors.js +10 -161
  266. data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/noUndefined.js +18 -0
  267. data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/unicode.js +10 -123
  268. data/lib/gollum/frontend/public/javascript/MathJax/extensions/TeX/verb.js +10 -45
  269. data/lib/gollum/frontend/public/javascript/MathJax/extensions/jsMath2jax.js +10 -69
  270. data/lib/gollum/frontend/public/javascript/MathJax/extensions/mml2jax.js +10 -93
  271. data/lib/gollum/frontend/public/javascript/MathJax/extensions/tex2jax.js +10 -234
  272. data/lib/gollum/frontend/public/javascript/MathJax/extensions/toMathML.js +10 -132
  273. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/jax.js +11 -1466
  274. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/Arrows.js +11 -115
  275. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/BasicLatin.js +11 -51
  276. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/CombDiacritMarks.js +11 -28
  277. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/CombDiactForSymbols.js +11 -28
  278. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/Dingbats.js +11 -28
  279. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/GeneralPunctuation.js +11 -33
  280. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/GeometricShapes.js +11 -59
  281. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/GreekAndCoptic.js +11 -28
  282. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/Latin1Supplement.js +11 -30
  283. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/LetterlikeSymbols.js +11 -32
  284. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MathOperators.js +11 -221
  285. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MiscMathSymbolsA.js +11 -31
  286. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MiscMathSymbolsB.js +11 -160
  287. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/MiscTechnical.js +11 -31
  288. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/SpacingModLetters.js +11 -29
  289. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/SuppMathOperators.js +11 -282
  290. data/lib/gollum/frontend/public/javascript/MathJax/jax/element/mml/optable/SupplementalArrowsB.js +11 -155
  291. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/config.js +11 -32
  292. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/a.js +11 -80
  293. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/b.js +11 -107
  294. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/c.js +11 -104
  295. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/d.js +11 -105
  296. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/e.js +11 -81
  297. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/f.js +11 -51
  298. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/fr.js +11 -72
  299. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/g.js +11 -75
  300. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/h.js +11 -45
  301. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/i.js +11 -78
  302. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/j.js +11 -29
  303. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/k.js +11 -29
  304. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/l.js +11 -168
  305. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/m.js +11 -54
  306. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/n.js +11 -212
  307. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/o.js +11 -81
  308. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/opf.js +11 -72
  309. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/p.js +11 -77
  310. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/q.js +11 -27
  311. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/r.js +11 -127
  312. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/s.js +11 -161
  313. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/scr.js +11 -72
  314. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/t.js +11 -75
  315. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/u.js +11 -84
  316. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/v.js +11 -66
  317. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/w.js +11 -28
  318. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/x.js +11 -40
  319. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/y.js +11 -34
  320. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/entities/z.js +11 -32
  321. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/MathML/jax.js +10 -582
  322. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/TeX/config.js +11 -33
  323. data/lib/gollum/frontend/public/javascript/MathJax/jax/input/TeX/jax.js +11 -1644
  324. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/maction.js +18 -0
  325. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/menclose.js +10 -53
  326. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/mglyph.js +10 -90
  327. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/mmultiscripts.js +18 -0
  328. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/ms.js +10 -41
  329. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/mtable.js +18 -0
  330. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/multiline.js +18 -0
  331. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/config.js +10 -119
  332. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/AlphaPresentForms.js +12 -26
  333. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Arrows.js +12 -103
  334. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BoldFraktur.js +12 -73
  335. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/BoxDrawing.js +12 -61
  336. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CombDiacritMarks.js +12 -92
  337. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CombDiactForSymbols.js +12 -43
  338. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/ControlPictures.js +12 -22
  339. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/CurrencySymbols.js +12 -25
  340. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Cyrillic.js +12 -123
  341. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/EnclosedAlphanum.js +12 -83
  342. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GeneralPunctuation.js +12 -61
  343. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GeometricShapes.js +12 -27
  344. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekAndCoptic.js +12 -103
  345. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekBold.js +12 -79
  346. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/GreekSSBold.js +12 -79
  347. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/IPAExtensions.js +12 -110
  348. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Latin1Supplement.js +12 -117
  349. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedA.js +12 -149
  350. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedAdditional.js +12 -29
  351. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LatinExtendedB.js +12 -53
  352. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/LetterlikeSymbols.js +12 -63
  353. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Main.js +12 -166
  354. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathBold.js +12 -83
  355. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathOperators.js +12 -254
  356. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MathSSBold.js +12 -83
  357. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsA.js +12 -25
  358. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscMathSymbolsB.js +12 -31
  359. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscSymbols.js +12 -24
  360. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/MiscTechnical.js +12 -36
  361. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/NumberForms.js +12 -33
  362. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/PhoneticExtensions.js +12 -24
  363. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SpacingModLetters.js +12 -81
  364. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SuperAndSubscripts.js +12 -22
  365. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/SuppMathOperators.js +12 -78
  366. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/AlphaPresentForms.js +12 -26
  367. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BasicLatin.js +12 -116
  368. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/BoxDrawing.js +12 -61
  369. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/CombDiactForSymbols.js +12 -22
  370. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/ControlPictures.js +12 -22
  371. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/CurrencySymbols.js +12 -25
  372. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Cyrillic.js +12 -123
  373. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/EnclosedAlphanum.js +12 -83
  374. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GeneralPunctuation.js +12 -44
  375. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekAndCoptic.js +12 -113
  376. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekBoldItalic.js +12 -79
  377. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/GreekSSBoldItalic.js +12 -79
  378. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/IPAExtensions.js +12 -110
  379. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Latin1Supplement.js +12 -117
  380. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedA.js +12 -149
  381. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedAdditional.js +12 -29
  382. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LatinExtendedB.js +12 -53
  383. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/LetterlikeSymbols.js +12 -50
  384. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/Main.js +12 -50
  385. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathBoldItalic.js +12 -73
  386. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathBoldScript.js +12 -73
  387. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathOperators.js +12 -23
  388. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/MathSSItalicBold.js +12 -73
  389. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/BoldItalic/SpacingModLetters.js +12 -48
  390. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/AlphaPresentForms.js +12 -26
  391. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/BoxDrawing.js +12 -61
  392. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/CombDiactForSymbols.js +12 -41
  393. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/ControlPictures.js +12 -22
  394. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/CurrencySymbols.js +12 -25
  395. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Cyrillic.js +12 -123
  396. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/EnclosedAlphanum.js +12 -83
  397. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GeneralPunctuation.js +12 -44
  398. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GreekAndCoptic.js +12 -72
  399. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/GreekItalic.js +12 -79
  400. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/IPAExtensions.js +12 -110
  401. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Latin1Supplement.js +12 -117
  402. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedA.js +12 -148
  403. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedAdditional.js +12 -29
  404. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LatinExtendedB.js +12 -52
  405. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/LetterlikeSymbols.js +12 -50
  406. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/Main.js +12 -186
  407. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathItalic.js +12 -72
  408. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathOperators.js +12 -23
  409. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathSSItalic.js +12 -73
  410. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/MathScript.js +12 -62
  411. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/SpacingModLetters.js +12 -48
  412. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Italic/ij.js +12 -23
  413. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/AlphaPresentForms.js +12 -26
  414. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Arrows.js +12 -100
  415. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BBBold.js +12 -76
  416. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BlockElements.js +12 -29
  417. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BoldFraktur.js +12 -73
  418. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/BoxDrawing.js +12 -66
  419. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CJK.js +12 -23
  420. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CombDiacritMarks.js +12 -80
  421. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CombDiactForSymbols.js +12 -44
  422. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ControlPictures.js +12 -22
  423. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/CurrencySymbols.js +12 -25
  424. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Cyrillic.js +12 -123
  425. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Dingbats.js +12 -51
  426. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/EnclosedAlphanum.js +12 -83
  427. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Fraktur.js +12 -68
  428. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeneralPunctuation.js +12 -62
  429. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GeometricShapes.js +12 -112
  430. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekAndCoptic.js +12 -103
  431. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBold.js +12 -79
  432. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekBoldItalic.js +12 -79
  433. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekItalic.js +12 -79
  434. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekSSBold.js +12 -79
  435. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/GreekSSBoldItalic.js +12 -79
  436. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/IPAExtensions.js +12 -112
  437. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Latin1Supplement.js +12 -109
  438. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedA.js +12 -148
  439. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedAdditional.js +12 -29
  440. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedB.js +12 -57
  441. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LatinExtendedD.js +12 -22
  442. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/LetterlikeSymbols.js +12 -76
  443. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Main.js +12 -374
  444. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBold.js +12 -83
  445. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBoldItalic.js +12 -73
  446. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathBoldScript.js +12 -73
  447. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathItalic.js +12 -72
  448. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathOperators.js +12 -201
  449. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSS.js +12 -83
  450. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSBold.js +12 -84
  451. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSItalic.js +12 -73
  452. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathSSItalicBold.js +12 -73
  453. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathScript.js +12 -62
  454. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MathTT.js +12 -82
  455. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscMathSymbolsA.js +12 -60
  456. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscMathSymbolsB.js +12 -148
  457. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscSymbols.js +12 -68
  458. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscSymbolsAndArrows.js +12 -85
  459. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/MiscTechnical.js +12 -74
  460. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/NumberForms.js +12 -33
  461. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/PhoneticExtensions.js +12 -30
  462. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SpacingModLetters.js +12 -73
  463. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuperAndSubscripts.js +12 -22
  464. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SuppMathOperators.js +12 -265
  465. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsA.js +12 -29
  466. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/SupplementalArrowsB.js +12 -149
  467. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/ij.js +12 -23
  468. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Bold/All.js +12 -49
  469. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Regular/All.js +12 -48
  470. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsD/Regular/Main.js +12 -30
  471. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Bold/All.js +12 -49
  472. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/All.js +12 -48
  473. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsSm/Regular/Main.js +12 -30
  474. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Bold/All.js +12 -49
  475. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/All.js +12 -48
  476. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUp/Regular/Main.js +12 -30
  477. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Bold/All.js +12 -49
  478. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/All.js +12 -48
  479. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpD/Regular/Main.js +12 -30
  480. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Bold/All.js +12 -49
  481. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/All.js +12 -48
  482. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/IntegralsUpSm/Regular/Main.js +12 -30
  483. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/All.js +12 -23
  484. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/Main.js +12 -29
  485. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Bold/PrivateUse.js +12 -176
  486. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/All.js +12 -23
  487. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/Main.js +12 -30
  488. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/BoldItalic/PrivateUse.js +12 -209
  489. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/All.js +12 -23
  490. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/Main.js +12 -54
  491. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Italic/PrivateUse.js +12 -236
  492. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/All.js +12 -23
  493. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/Main.js +12 -51
  494. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/NonUnicode/Regular/PrivateUse.js +12 -381
  495. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/All.js +12 -45
  496. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFiveSym/Regular/Main.js +12 -37
  497. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Bold/Main.js +12 -40
  498. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/All.js +12 -57
  499. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeFourSym/Regular/Main.js +12 -56
  500. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/All.js +12 -22
  501. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Bold/Main.js +12 -46
  502. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/All.js +12 -71
  503. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeOneSym/Regular/Main.js +12 -99
  504. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Bold/Main.js +12 -40
  505. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/All.js +12 -57
  506. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeThreeSym/Regular/Main.js +12 -56
  507. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Bold/Main.js +12 -40
  508. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Regular/All.js +12 -58
  509. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/SizeTwoSym/Regular/Main.js +12 -57
  510. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Bold/All.js +12 -54
  511. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Bold/Main.js +12 -38
  512. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Regular/All.js +12 -114
  513. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/Variants/Regular/Main.js +12 -43
  514. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata-beta.js +10 -365
  515. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/fontdata.js +12 -1396
  516. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Arrows.js +12 -59
  517. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BBBold.js +12 -49
  518. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/BoxDrawing.js +12 -27
  519. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/CombDiacritMarks.js +12 -23
  520. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Dingbats.js +12 -23
  521. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/EnclosedAlphanum.js +12 -22
  522. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeneralPunctuation.js +12 -22
  523. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GeometricShapes.js +12 -30
  524. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/GreekAndCoptic.js +12 -23
  525. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Latin1Supplement.js +12 -25
  526. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LatinExtendedA.js +12 -22
  527. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/LetterlikeSymbols.js +12 -28
  528. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/Main.js +12 -45
  529. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MathOperators.js +12 -132
  530. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscTechnical.js +12 -23
  531. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/PUA.js +12 -37
  532. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SpacingModLetters.js +12 -23
  533. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/SuppMathOperators.js +12 -44
  534. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Bold/Main.js +12 -90
  535. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Caligraphic/Regular/Main.js +12 -89
  536. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/BasicLatin.js +12 -103
  537. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Main.js +12 -30
  538. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/Other.js +12 -24
  539. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Bold/PUA.js +12 -28
  540. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/BasicLatin.js +12 -103
  541. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Main.js +12 -29
  542. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/Other.js +12 -24
  543. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Fraktur/Regular/PUA.js +12 -29
  544. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Bold/Main.js +12 -37
  545. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/BoldItalic/Main.js +12 -104
  546. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Italic/Main.js +12 -103
  547. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Greek/Regular/Main.js +12 -36
  548. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Arrows.js +12 -45
  549. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/CombDiacritMarks.js +12 -33
  550. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/CombDiactForSymbols.js +12 -22
  551. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GeneralPunctuation.js +12 -38
  552. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GeometricShapes.js +12 -26
  553. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/GreekAndCoptic.js +12 -32
  554. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Latin1Supplement.js +12 -30
  555. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedA.js +12 -22
  556. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LatinExtendedB.js +12 -22
  557. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/LetterlikeSymbols.js +12 -27
  558. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/Main.js +12 -155
  559. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MathOperators.js +12 -88
  560. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscMathSymbolsA.js +12 -23
  561. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscSymbols.js +12 -28
  562. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/MiscTechnical.js +12 -27
  563. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SpacingModLetters.js +12 -30
  564. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SuppMathOperators.js +12 -24
  565. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Bold/SupplementalArrowsA.js +12 -28
  566. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/CombDiacritMarks.js +12 -32
  567. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/GeneralPunctuation.js +12 -27
  568. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/GreekAndCoptic.js +12 -32
  569. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/Latin1Supplement.js +12 -22
  570. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LatinExtendedA.js +12 -22
  571. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LatinExtendedB.js +12 -22
  572. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/LetterlikeSymbols.js +12 -22
  573. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/Main.js +12 -131
  574. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Arrows.js +12 -45
  575. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/CombDiacritMarks.js +12 -33
  576. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/CombDiactForSymbols.js +12 -22
  577. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GeneralPunctuation.js +12 -32
  578. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GeometricShapes.js +12 -26
  579. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/GreekAndCoptic.js +12 -32
  580. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Latin1Supplement.js +12 -26
  581. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/LatinExtendedA.js +12 -22
  582. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/LatinExtendedB.js +12 -22
  583. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/LetterlikeSymbols.js +12 -27
  584. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/Main.js +12 -298
  585. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MathOperators.js +12 -88
  586. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscMathSymbolsA.js +12 -25
  587. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscSymbols.js +12 -28
  588. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/MiscTechnical.js +12 -29
  589. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SuppMathOperators.js +12 -24
  590. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SupplementalArrowsA.js +12 -28
  591. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Math/BoldItalic/Main.js +12 -199
  592. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Math/Italic/Main.js +12 -198
  593. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/BasicLatin.js +12 -109
  594. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/CombDiacritMarks.js +12 -32
  595. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Main.js +12 -30
  596. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/Other.js +12 -41
  597. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/BasicLatin.js +12 -109
  598. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/CombDiacritMarks.js +12 -32
  599. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Main.js +12 -30
  600. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Italic/Other.js +12 -41
  601. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/BasicLatin.js +12 -109
  602. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/CombDiacritMarks.js +12 -32
  603. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Main.js +12 -29
  604. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Regular/Other.js +12 -41
  605. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/BasicLatin.js +12 -48
  606. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Main.js +12 -56
  607. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size1/Regular/Main.js +12 -68
  608. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size2/Regular/Main.js +12 -60
  609. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size3/Regular/Main.js +12 -44
  610. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Size4/Regular/Main.js +12 -71
  611. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/BasicLatin.js +12 -117
  612. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/CombDiacritMarks.js +12 -30
  613. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Main.js +12 -29
  614. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Typewriter/Regular/Other.js +12 -38
  615. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinChrome/Regular/Main.js +12 -37
  616. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/AMS.js +12 -50
  617. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Bold.js +12 -76
  618. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/WinIE6/Regular/Main.js +12 -105
  619. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/fontdata.js +12 -1684
  620. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/imageFonts.js +10 -177
  621. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/jax.js +12 -1984
  622. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/NativeMML/config.js +10 -43
  623. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/NativeMML/jax.js +10 -222
  624. data/lib/gollum/frontend/public/javascript/MathJax/test/index-images.html +22 -14
  625. data/lib/gollum/frontend/public/javascript/MathJax/test/index.html +58 -8
  626. data/lib/gollum/frontend/public/javascript/MathJax/test/sample-dynamic.html +54 -0
  627. data/lib/gollum/frontend/public/javascript/MathJax/test/sample-mml.html +44 -0
  628. data/lib/gollum/frontend/public/javascript/MathJax/test/sample-signals.html +121 -0
  629. data/lib/gollum/frontend/public/javascript/MathJax/test/sample-tex.html +22 -0
  630. data/lib/gollum/frontend/public/javascript/MathJax/test/sample-tex2mml.html +23 -0
  631. data/lib/gollum/frontend/public/javascript/editor/gollum.editor.js +1084 -0
  632. data/lib/gollum/frontend/public/javascript/editor/langs/asciidoc.js +168 -0
  633. data/lib/gollum/frontend/public/javascript/editor/langs/creole.js +103 -0
  634. data/lib/gollum/frontend/public/javascript/editor/langs/markdown.js +211 -0
  635. data/lib/gollum/frontend/public/javascript/editor/langs/org.js +173 -0
  636. data/lib/gollum/frontend/public/javascript/editor/langs/pod.js +111 -0
  637. data/lib/gollum/frontend/public/javascript/editor/langs/rdoc.js +74 -0
  638. data/lib/gollum/frontend/public/javascript/editor/langs/textile.js +175 -0
  639. data/lib/gollum/frontend/public/javascript/gollum.dialog.js +206 -0
  640. data/lib/gollum/frontend/public/javascript/gollum.js +178 -231
  641. data/lib/gollum/frontend/public/javascript/gollum.placeholder.js +54 -0
  642. data/lib/gollum/frontend/public/javascript/jquery.color.js +123 -0
  643. data/lib/gollum/frontend/public/javascript/jquery.js +7179 -0
  644. data/lib/gollum/frontend/templates/compare.mustache +51 -31
  645. data/lib/gollum/frontend/templates/create.mustache +15 -39
  646. data/lib/gollum/frontend/templates/edit.mustache +17 -38
  647. data/lib/gollum/frontend/templates/editor.mustache +116 -0
  648. data/lib/gollum/frontend/templates/error.mustache +5 -8
  649. data/lib/gollum/frontend/templates/history.mustache +59 -36
  650. data/lib/gollum/frontend/templates/layout.mustache +24 -29
  651. data/lib/gollum/frontend/templates/page.mustache +34 -26
  652. data/lib/gollum/frontend/templates/search.mustache +35 -18
  653. data/lib/gollum/frontend/templates/searchbar.mustache +10 -0
  654. data/lib/gollum/frontend/views/compare.rb +9 -5
  655. data/lib/gollum/frontend/views/create.rb +23 -0
  656. data/lib/gollum/frontend/views/edit.rb +40 -1
  657. data/lib/gollum/frontend/views/history.rb +1 -1
  658. data/lib/gollum/frontend/views/page.rb +17 -6
  659. data/lib/gollum/frontend/views/search.rb +8 -0
  660. data/lib/gollum/git_access.rb +241 -0
  661. data/lib/gollum/markup.rb +107 -47
  662. data/lib/gollum/page.rb +114 -67
  663. data/lib/gollum/sanitization.rb +115 -0
  664. data/lib/gollum/wiki.rb +307 -267
  665. data/test/examples/lotr.git/COMMIT_EDITMSG +1 -0
  666. data/test/examples/lotr.git/config +8 -1
  667. data/test/examples/lotr.git/index +0 -0
  668. data/test/examples/lotr.git/info/exclude +1 -1
  669. data/test/examples/lotr.git/logs/HEAD +2 -0
  670. data/test/examples/lotr.git/logs/refs/heads/master +2 -0
  671. data/test/examples/lotr.git/objects/84/0ec5b1ba1320e8ec443f28f99566f615d5af10 +0 -0
  672. data/test/examples/lotr.git/objects/a3/1ca2a7c352c92531a8b99815d15843b259e814 +0 -0
  673. data/test/examples/lotr.git/objects/a8/ad3c09dd842a3517085bfadd37718856dee813 +0 -0
  674. data/test/examples/lotr.git/packed-refs +1 -1
  675. data/test/examples/lotr.git/refs/heads/master +1 -1
  676. data/test/examples/lotr.git/refs/remotes/origin/HEAD +1 -0
  677. data/test/examples/page_file_dir.git/COMMIT_EDITMSG +1 -0
  678. data/test/examples/page_file_dir.git/HEAD +1 -0
  679. data/test/examples/page_file_dir.git/config +6 -0
  680. data/test/examples/page_file_dir.git/description +1 -0
  681. data/test/examples/page_file_dir.git/index +0 -0
  682. data/test/examples/page_file_dir.git/info/exclude +6 -0
  683. data/test/examples/page_file_dir.git/logs/HEAD +1 -0
  684. data/test/examples/page_file_dir.git/logs/refs/heads/master +1 -0
  685. data/test/examples/page_file_dir.git/objects/0c/7d27db1f575263efdcab3dc650f4502a2dbcbf +0 -0
  686. data/test/examples/page_file_dir.git/objects/22/b404803c966dd92865614d86ff22ca12e50c1e +0 -0
  687. data/test/examples/page_file_dir.git/objects/25/7cc5642cb1a054f08cc83f2d943e56fd3ebe99 +0 -0
  688. data/test/examples/page_file_dir.git/objects/57/16ca5987cbf97d6bb54920bea6adde242d87e6 +0 -0
  689. data/test/examples/page_file_dir.git/objects/5b/43e14e0a15fb6f08feab1773d1c0991e9f71e2 +0 -0
  690. data/test/examples/page_file_dir.git/refs/heads/master +1 -0
  691. data/test/examples/revert.git/COMMIT_EDITMSG +1 -0
  692. data/test/examples/revert.git/HEAD +1 -0
  693. data/test/examples/revert.git/config +12 -0
  694. data/test/examples/revert.git/description +1 -0
  695. data/test/examples/revert.git/index +0 -0
  696. data/test/examples/revert.git/info/exclude +6 -0
  697. data/test/examples/revert.git/logs/HEAD +2 -0
  698. data/test/examples/revert.git/logs/refs/heads/master +2 -0
  699. data/test/examples/revert.git/objects/20/2ced67cea93c7b6bd2928aa1daef8d1d55a20d +0 -0
  700. data/test/examples/revert.git/objects/41/76394bfa11222363c66ce7e84b5f154095b6d9 +0 -0
  701. data/test/examples/revert.git/objects/6a/69f92020f5df77af6e8813ff1232493383b708 +0 -0
  702. data/test/examples/revert.git/objects/b4/785957bc986dc39c629de9fac9df46972c00fc +0 -0
  703. data/test/examples/revert.git/objects/f4/03b791119f8232b7cb0ba455c624ac6435f433 +0 -0
  704. data/test/examples/revert.git/objects/info/packs +2 -0
  705. data/test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.idx +0 -0
  706. data/test/examples/revert.git/objects/pack/pack-a561f8437234f74d0bacb9e0eebe52d207f5770d.pack +0 -0
  707. data/test/examples/revert.git/packed-refs +2 -0
  708. data/test/examples/revert.git/refs/heads/master +1 -0
  709. data/test/examples/revert.git/refs/remotes/origin/HEAD +1 -0
  710. data/test/examples/yubiwa.git/HEAD +1 -0
  711. data/test/examples/yubiwa.git/config +5 -0
  712. data/test/examples/yubiwa.git/description +1 -0
  713. data/test/examples/yubiwa.git/info/exclude +6 -0
  714. data/test/examples/yubiwa.git/objects/10/fa2ddc4e3b4009d8a453aace10bd6148c1ad00 +0 -0
  715. data/test/examples/yubiwa.git/objects/52/4b82874327ea7cbf730389964ba7cb3de966de +0 -0
  716. data/test/examples/yubiwa.git/objects/58/3fc201cb457fb3f1480f3e1e5999b119633835 +0 -0
  717. data/test/examples/yubiwa.git/objects/87/bc1dd46ab3d3874d4e898d45dd512cc20a7cc8 +1 -0
  718. data/test/examples/yubiwa.git/objects/89/64ed1b4e21aa90e831763bbce9034bfda81b70 +0 -0
  719. data/test/examples/yubiwa.git/objects/9f/f6dd0660da5fba2d3374adb2b84fa653bb538b +0 -0
  720. data/test/examples/yubiwa.git/objects/ac/e97abf2b177815a1972d7db22f229f58c83309 +0 -0
  721. data/test/examples/yubiwa.git/objects/b1/f443863a4816628807fbf86141ebef055dda34 +0 -0
  722. data/test/examples/yubiwa.git/refs/heads/master +1 -0
  723. data/test/helper.rb +19 -3
  724. data/test/test_app.rb +144 -0
  725. data/test/test_committer.rb +51 -0
  726. data/test/test_file.rb +3 -1
  727. data/test/test_git_access.rb +52 -0
  728. data/test/test_markup.rb +92 -17
  729. data/test/test_page.rb +30 -2
  730. data/test/test_page_revert.rb +45 -0
  731. data/test/test_wiki.rb +55 -36
  732. metadata +388 -47
  733. data/lib/gollum/frontend/public/css/editbar.css +0 -194
  734. data/lib/gollum/frontend/public/css/screen.css +0 -726
  735. data/lib/gollum/frontend/public/css/syntax.css +0 -61
  736. data/lib/gollum/frontend/public/images/buttons.png +0 -0
  737. data/lib/gollum/frontend/public/images/editbar-buttons.png +0 -0
  738. data/lib/gollum/frontend/public/images/example.png +0 -0
  739. data/lib/gollum/frontend/public/images/twiddle-down.png +0 -0
  740. data/lib/gollum/frontend/public/images/twiddle-right.png +0 -0
  741. data/lib/gollum/frontend/public/images/txt.png +0 -0
  742. data/lib/gollum/frontend/public/javascript/MathJax/COPYING.txt +0 -202
  743. data/lib/gollum/frontend/public/javascript/MathJax/README.txt +0 -480
  744. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/blank.gif +0 -0
  745. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Hiragana.js +0 -28
  746. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/STIX/General/Regular/Specials.js +0 -28
  747. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscMathSymbolsB.js +0 -28
  748. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/AMS/Regular/MiscSymbols.js +0 -28
  749. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Regular/SpacingModLetters.js +0 -28
  750. data/lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/fonts/TeX/Script/Regular/Other.js +0 -28
  751. data/lib/gollum/frontend/public/javascript/jquery.previewable_comment_form.js +0 -57
  752. data/lib/gollum/frontend/public/javascript/jquery.tabs.js +0 -59
  753. data/lib/gollum/frontend/public/javascript/jquery.text_selection-1.0.0.min.js +0 -1
  754. data/lib/gollum/frontend/templates/editbar.mustache +0 -1196
  755. data/test/examples/lotr.git/hooks/applypatch-msg.sample +0 -15
  756. data/test/examples/lotr.git/hooks/commit-msg.sample +0 -24
  757. data/test/examples/lotr.git/hooks/post-commit.sample +0 -8
  758. data/test/examples/lotr.git/hooks/post-receive.sample +0 -15
  759. data/test/examples/lotr.git/hooks/post-update.sample +0 -8
  760. data/test/examples/lotr.git/hooks/pre-applypatch.sample +0 -14
  761. data/test/examples/lotr.git/hooks/pre-commit.sample +0 -46
  762. data/test/examples/lotr.git/hooks/pre-rebase.sample +0 -169
  763. data/test/examples/lotr.git/hooks/prepare-commit-msg.sample +0 -36
  764. data/test/examples/lotr.git/hooks/update.sample +0 -128
  765. data/test/examples/lotr.git/info/refs +0 -1
@@ -0,0 +1,54 @@
1
+ <html>
2
+ <head>
3
+ <title>MathJax Dynamic Math Test Page</title>
4
+ <!-- Copyright (c) 2010 Design Science, Inc. -->
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
7
+
8
+ <script src="../MathJax.js">
9
+ MathJax.Hub.Config({
10
+ extensions: ["tex2jax.js"],
11
+ jax: ["input/TeX","output/HTML-CSS"],
12
+ tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
13
+ });
14
+ </script>
15
+
16
+ </head>
17
+ <body>
18
+
19
+ <script>
20
+ //
21
+ // Use a closure to hide the local variables from the
22
+ // global namespace
23
+ //
24
+ (function () {
25
+ var QUEUE = MathJax.Hub.queue; // shorthand for the queue
26
+ var math = null; // the element jax for the math output.
27
+
28
+ //
29
+ // Get the element jax when MathJax has produced it.
30
+ //
31
+ QUEUE.Push(function () {
32
+ math = MathJax.Hub.getAllJax("MathOutput")[0];
33
+ });
34
+
35
+ //
36
+ // The onchange event handler that typesets the
37
+ // math entered by the user
38
+ //
39
+ window.UpdateMath = function (TeX) {
40
+ QUEUE.Push(["Text",math,"\\displaystyle{"+TeX+"}"]);
41
+ }
42
+ })();
43
+ </script>
44
+
45
+ Type some TeX code and press RETURN:<br/>
46
+ <input id="MathInput" size="50" onchange="UpdateMath(this.value)" />
47
+ <p>
48
+
49
+ <div id="MathOutput">
50
+ You typed: ${}$
51
+ </div>
52
+
53
+ </body>
54
+ </html>
@@ -0,0 +1,44 @@
1
+ <html>
2
+ <head>
3
+ <title>MathJax MathML Test Page</title>
4
+ <!-- Copyright (c) 2010 Design Science, Inc. -->
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
7
+
8
+ <script src="../MathJax.js">
9
+ MathJax.Hub.Config({
10
+ extensions: ["mml2jax.js"],
11
+ jax: ["input/MathML","output/HTML-CSS"]
12
+ });
13
+ </script>
14
+ </head>
15
+ <body>
16
+
17
+ When <math><mi>a</mi><mo>&#x2260;</mo><mn>0</mn></math>,
18
+ there are two solutions to <math>
19
+ <mi>a</mi><msup><mi>x</mi><mn>2</mn></msup>
20
+ <mo>+</mo> <mi>b</mi><mi>x</mi>
21
+ <mo>+</mo> <mi>c</mi> <mo>=</mo> <mn>0</mn>
22
+ </math> and they are
23
+ <math mode="display">
24
+ <mi>x</mi> <mo>=</mo>
25
+ <mrow>
26
+ <mfrac>
27
+ <mrow>
28
+ <mo>&#x2212;</mo>
29
+ <mi>b</mi>
30
+ <mo>&#x00B1;</mo>
31
+ <msqrt>
32
+ <msup><mi>b</mi><mn>2</mn></msup>
33
+ <mo>&#x2212;</mo>
34
+ <mn>4</mn><mi>a</mi><mi>c</mi>
35
+ </msqrt>
36
+ </mrow>
37
+ <mrow> <mn>2</mn><mi>a</mi> </mrow>
38
+ </mfrac>
39
+ </mrow>
40
+ <mtext>.</mtext>
41
+ </math>
42
+
43
+ </body>
44
+ </html>
@@ -0,0 +1,121 @@
1
+ <html>
2
+ <head>
3
+ <title>MathJax Signals Test Page</title>
4
+ <!-- Copyright (c) 2010 Design Science, Inc. -->
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
7
+
8
+ <!--
9
+ | This example shows how to use MathJax's signal mechanism to find out
10
+ | about what MathJax is doing, and to hook into various events as they
11
+ | occur.
12
+ -->
13
+
14
+ <script src="../MathJax.js">
15
+
16
+ //
17
+ // Configure MathJax
18
+ //
19
+ MathJax.Hub.Config({
20
+ extensions: ["tex2jax.js"],
21
+ jax: ["input/TeX","output/HTML-CSS"],
22
+ tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
23
+ });
24
+
25
+ //
26
+ // Display a message that we are in the configuration code
27
+ // (The Message function is not yet defined when this code
28
+ // runs, so we can't use that here. Post a signal
29
+ // of our own, so it will be displayed along with all
30
+ // the other signals).
31
+ //
32
+ MathJax.Hub.Startup.signal.Post("*** In Startup Configuration code ***");
33
+
34
+ //
35
+ // When the "onLoad" message is posted, display a message.
36
+ // (Since this hook is registered before the ones in the main body
37
+ // below, it runs before the code to print the "Startup: onLoad"
38
+ // message, so this message shows up first in the output.)
39
+ //
40
+ MathJax.Hub.Register.StartupHook("onLoad",function () {
41
+ Message("*** The onLoad handler has run, page is ready to process ***");
42
+ });
43
+
44
+ //
45
+ // This will be performed after MathJax has completed its
46
+ // setup and typesetting run, which have already been
47
+ // pushed onto the queue.
48
+ // (Since the Message function isn't defined yet when this code
49
+ // runs, we need to enclose it in a function so it will be
50
+ // looked up later when it is defined.)
51
+ //
52
+ MathJax.Hub.Queue(function () {Message("*** MathJax is done ***")});
53
+
54
+ </script>
55
+
56
+ <style>
57
+ .output {
58
+ background-color: #F0F0F0;
59
+ border-top: 1px solid;
60
+ border-bottom: 1px solid;
61
+ padding: 3px 1em;
62
+ }
63
+ </style>
64
+ </head>
65
+ <body>
66
+
67
+ When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
68
+ $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
69
+
70
+ Messages about mathematics:
71
+ <pre id="MathMessages" class="output">
72
+ </pre>
73
+
74
+ All Messages:
75
+ <pre id="AllMessages" class="output">
76
+ </pre>
77
+
78
+ <script>
79
+ (function () {
80
+ //
81
+ // The output areas
82
+ //
83
+ var math = document.getElementById("MathMessages");
84
+ var all = document.getElementById("AllMessages");
85
+
86
+ //
87
+ // A function to display messages in the "AllMessages" area.
88
+ // We make it global so it can be used in the startup code above.
89
+ //
90
+ window.Message = function (message) {
91
+ MathJax.HTML.addText(all,message);
92
+ MathJax.HTML.addElement(all,"br");
93
+ };
94
+
95
+ //
96
+ // Find out about "New Math" messages from the Hub and display them.
97
+ // (Look up the TeX code for each new math element)
98
+ //
99
+ MathJax.Hub.Register.MessageHook("New Math",function (message) {
100
+ var script = MathJax.Hub.getJaxFor(message[1]).SourceElement();
101
+ MathJax.HTML.addText(math,message.join(" ")+": '"+script.text+"'");
102
+ MathJax.HTML.addElement(math,"br");
103
+ });
104
+
105
+ //
106
+ // Find out about ALL startup and hub messages
107
+ //
108
+ MathJax.Hub.Startup.signal.Interest(function (message) {Message("Startup: "+message)});
109
+ MathJax.Hub.signal.Interest(function (message) {Message("Hub: "+message)});
110
+ //
111
+ // Since signals are remembered, registering an interest will cause
112
+ // use to receive all the past signals as well as new ones.
113
+ // This marks the point were the above routines were called.
114
+ //
115
+ Message("##### events above this have already occurred #####");
116
+
117
+ })();
118
+ </script>
119
+
120
+ </body>
121
+ </html>
@@ -0,0 +1,22 @@
1
+ <html>
2
+ <head>
3
+ <title>MathJax TeX Test Page</title>
4
+ <!-- Copyright (c) 2010 Design Science, Inc. -->
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
7
+
8
+ <script src="../MathJax.js">
9
+ MathJax.Hub.Config({
10
+ extensions: ["tex2jax.js"],
11
+ jax: ["input/TeX","output/HTML-CSS"],
12
+ tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
13
+ });
14
+ </script>
15
+ </head>
16
+ <body>
17
+
18
+ When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
19
+ $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
20
+
21
+ </body>
22
+ </html>
@@ -0,0 +1,23 @@
1
+ <html>
2
+ <head>
3
+ <title>MathJax TeX input with MathML output Test Page</title>
4
+ <!-- Copyright (c) 2010 Design Science, Inc. -->
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" >
7
+
8
+ <script src="../MathJax.js">
9
+ MathJax.Hub.Config({
10
+ config: ["MMLorHTML.js"],
11
+ extensions: ["tex2jax.js"],
12
+ jax: ["input/TeX"],
13
+ tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
14
+ });
15
+ </script>
16
+ </head>
17
+ <body>
18
+
19
+ When \(a \ne 0\), there are two solutions to \(ax^2 + bx + c = 0\) and they are
20
+ $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
21
+
22
+ </body>
23
+ </html>
@@ -0,0 +1,1084 @@
1
+ /**
2
+ * gollum.editor.js
3
+ * A jQuery plugin that creates the Gollum Editor.
4
+ *
5
+ * Usage:
6
+ * $.GollumEditor(); on DOM ready.
7
+ */
8
+ (function($) {
9
+
10
+ // Editor options
11
+ var DefaultOptions = {
12
+ MarkupType: 'markdown',
13
+ EditorMode: 'code',
14
+ NewFile: false,
15
+ HasFunctionBar: true,
16
+ Debug: false,
17
+ NoDefinitionsFor: []
18
+ };
19
+ var ActiveOptions = {};
20
+
21
+ /**
22
+ * $.GollumEditor
23
+ *
24
+ * You don't need to do anything. Just run this on DOM ready.
25
+ */
26
+ $.GollumEditor = function( IncomingOptions ) {
27
+
28
+ ActiveOptions = $.extend( DefaultOptions, IncomingOptions );
29
+
30
+ debug('GollumEditor loading');
31
+
32
+ if ( EditorHas.baseEditorMarkup() ) {
33
+
34
+ if ( EditorHas.titleDisplayed() ) {
35
+ $('#gollum-editor-title-field').addClass('active');
36
+ }
37
+
38
+ if ( EditorHas.editSummaryMarkup() ) {
39
+ $.GollumEditor.Placeholder.add($('#gollum-editor-edit-summary input'));
40
+ $('#gollum-editor form[name="gollum-editor"]').submit(function( e ) {
41
+ e.preventDefault();
42
+ $.GollumEditor.Placeholder.clearAll();
43
+ debug('submitting');
44
+ $(this).unbind('submit');
45
+ $(this).submit();
46
+ });
47
+ }
48
+
49
+ if ( EditorHas.collapsibleInputs() ) {
50
+ $('#gollum-editor .collapsed a.button, ' +
51
+ '#gollum-editor .expanded a.button').click(function( e ) {
52
+ e.preventDefault();
53
+ $(this).parent().toggleClass('expanded');
54
+ $(this).parent().toggleClass('collapsed');
55
+ });
56
+ }
57
+
58
+ if ( EditorHas.previewButton() ) {
59
+ var formAction =
60
+ $('#gollum-editor #gollum-editor-preview').click(function() {
61
+ // make a dummy form, submit to new target window
62
+ // get form fields
63
+ var oldAction = $('#gollum-editor form').attr('action');
64
+ var $form = $($('#gollum-editor form').get(0));
65
+ $form.attr('action', this.href);
66
+ $form.attr('target', '_blank');
67
+ $form.submit();
68
+
69
+
70
+ $form.attr('action', oldAction);
71
+ $form.removeAttr('target');
72
+ return false;
73
+ });
74
+ }
75
+
76
+ // Initialize the function bar by loading proper definitions
77
+ if ( EditorHas.functionBar() ) {
78
+
79
+ var htmlSetMarkupLang =
80
+ $('#gollum-editor-body').attr('data-markup-lang');
81
+
82
+ if ( htmlSetMarkupLang ) {
83
+ ActiveOptions.MarkupType = htmlSetMarkupLang;
84
+ }
85
+
86
+ // load language definition
87
+ LanguageDefinition.setActiveLanguage( ActiveOptions.MarkupType );
88
+ if ( EditorHas.formatSelector() ) {
89
+ FormatSelector.init(
90
+ $('#gollum-editor-format-selector select') );
91
+ }
92
+
93
+ if ( EditorHas.help() ) {
94
+ $('#gollum-editor-help').hide();
95
+ $('#gollum-editor-help').removeClass('jaws');
96
+ }
97
+
98
+ }
99
+ // EditorHas.functionBar
100
+ }
101
+ // EditorHas.baseEditorMarkup
102
+ };
103
+
104
+
105
+
106
+ /**
107
+ * $.GollumEditor.defineLanguage
108
+ * Defines a set of language actions that Gollum can use.
109
+ * Used by the definitions in langs/ to register language definitions.
110
+ */
111
+ $.GollumEditor.defineLanguage = function( language_name, languageObject ) {
112
+ if ( typeof languageObject == 'object' ) {
113
+ LanguageDefinition.define( language_name, languageObject );
114
+ } else {
115
+ debug('GollumEditor.defineLanguage: definition for ' + language_name +
116
+ ' is not an object');
117
+ }
118
+ };
119
+
120
+
121
+ /**
122
+ * debug
123
+ * Prints debug information to console.log if debug output is enabled.
124
+ *
125
+ * @param mixed Whatever you want to dump to console.log
126
+ * @return void
127
+ */
128
+ var debug = function(m) {
129
+ if ( ActiveOptions.Debug &&
130
+ typeof console != 'undefined' ) {
131
+ console.log( m );
132
+ }
133
+ };
134
+
135
+
136
+
137
+ /**
138
+ * LanguageDefinition
139
+ * Language definition file handler
140
+ * Loads language definition files as necessary.
141
+ */
142
+ var LanguageDefinition = {
143
+
144
+ _ACTIVE_LANG: '',
145
+ _LOADED_LANGS: [],
146
+ _LANG: {},
147
+
148
+ /**
149
+ * Defines a language
150
+ *
151
+ * @param name string The name of the language
152
+ * @param name object The definition object
153
+ */
154
+ define: function( name, definitionObject ) {
155
+ LanguageDefinition._ACTIVE_LANG = name;
156
+ LanguageDefinition._LOADED_LANGS.push( name );
157
+ LanguageDefinition._LANG[name] = definitionObject;
158
+ },
159
+
160
+ getActiveLanguage: function() {
161
+ return LanguageDefinition._ACTIVE_LANG;
162
+ },
163
+
164
+ setActiveLanguage: function( name ) {
165
+ if ( !LanguageDefinition.isLoadedFor(name) ) {
166
+ LanguageDefinition._ACTIVE_LANG = null;
167
+ LanguageDefinition.loadFor( name, function(x, t) {
168
+ if ( t != 'success' ) {
169
+ debug('Failed to load language definition for ' + name);
170
+ // well, fake it and turn everything off for this one
171
+ LanguageDefinition.define( name, {} );
172
+ }
173
+
174
+ // update features that rely on the language definition
175
+ if ( EditorHas.functionBar() ) {
176
+ FunctionBar.refresh();
177
+ }
178
+
179
+ if ( LanguageDefinition.isValid() && EditorHas.formatSelector() ) {
180
+ FormatSelector.updateSelected();
181
+ }
182
+
183
+ } );
184
+ } else {
185
+ LanguageDefinition._ACTIVE_LANG = name;
186
+ FunctionBar.refresh();
187
+ }
188
+ },
189
+
190
+
191
+ /**
192
+ * gets a definition object for a specified attribute
193
+ *
194
+ * @param string attr The specified attribute.
195
+ * @param string specified_lang The language to pull a definition for.
196
+ * @return object if exists, null otherwise
197
+ */
198
+ getDefinitionFor: function( attr, specified_lang ) {
199
+ if ( !specified_lang ) {
200
+ specified_lang = LanguageDefinition._ACTIVE_LANG;
201
+ }
202
+
203
+ if ( LanguageDefinition.isLoadedFor(specified_lang) &&
204
+ LanguageDefinition._LANG[specified_lang][attr] &&
205
+ typeof LanguageDefinition._LANG[specified_lang][attr] == 'object' ) {
206
+ return LanguageDefinition._LANG[specified_lang][attr];
207
+ }
208
+
209
+ return null;
210
+ },
211
+
212
+
213
+ /**
214
+ * loadFor
215
+ * Asynchronously loads a definition file for the current markup.
216
+ * Definition files are necessary to use the code editor.
217
+ *
218
+ * @param string markup_name The markup name you want to load
219
+ * @return void
220
+ */
221
+ loadFor: function( markup_name, on_complete ) {
222
+ // Keep us from hitting 404s on our site, check the definition blacklist
223
+ if ( ActiveOptions.NoDefinitionsFor.length ) {
224
+ for ( var i=0; i < ActiveOptions.NoDefinitionsFor.length; i++ ) {
225
+ if ( markup_name == ActiveOptions.NoDefinitionsFor[i] ) {
226
+ // we don't have this. get out.
227
+ if ( typeof on_complete == 'function' ) {
228
+ on_complete( null, 'error' );
229
+ return;
230
+ }
231
+ }
232
+ }
233
+ }
234
+
235
+ // attempt to load the definition for this language
236
+ var script_uri = '/javascript/editor/langs/' + markup_name + '.js';
237
+ $.ajax({
238
+ url: script_uri,
239
+ dataType: 'script',
240
+ complete: function( xhr, textStatus ) {
241
+ if ( typeof on_complete == 'function' ) {
242
+ on_complete( xhr, textStatus );
243
+ }
244
+ }
245
+ });
246
+ },
247
+
248
+
249
+ /**
250
+ * isLoadedFor
251
+ * Checks to see if a definition file has been loaded for the
252
+ * specified markup language.
253
+ *
254
+ * @param string markup_name The name of the markup.
255
+ * @return boolean
256
+ */
257
+ isLoadedFor: function( markup_name ) {
258
+ if ( LanguageDefinition._LOADED_LANGS.length === 0 ) {
259
+ return false;
260
+ }
261
+
262
+ for ( var i=0; i < LanguageDefinition._LOADED_LANGS.length; i++ ) {
263
+ if ( LanguageDefinition._LOADED_LANGS[i] == markup_name ) {
264
+ return true;
265
+ }
266
+ }
267
+ return false;
268
+ },
269
+
270
+ isValid: function() {
271
+ return ( LanguageDefinition._ACTIVE_LANG &&
272
+ typeof LanguageDefinition._LANG[LanguageDefinition._ACTIVE_LANG] ==
273
+ 'object' );
274
+ }
275
+
276
+ };
277
+
278
+
279
+ /**
280
+ * EditorHas
281
+ * Various conditionals to check what features of the Gollum Editor are
282
+ * active/operational.
283
+ */
284
+ var EditorHas = {
285
+
286
+
287
+ /**
288
+ * EditorHas.baseEditorMarkup
289
+ * True if the basic editor form is in place.
290
+ *
291
+ * @return boolean
292
+ */
293
+ baseEditorMarkup: function() {
294
+ return ( $('#gollum-editor').length &&
295
+ $('#gollum-editor-body').length );
296
+ },
297
+
298
+
299
+ /**
300
+ * EditorHas.collapsibleInputs
301
+ * True if the editor contains collapsible inputs for things like the
302
+ * sidebar or footer, false otherwise.
303
+ *
304
+ * @return boolean
305
+ */
306
+ collapsibleInputs: function() {
307
+ return $('#gollum-editor .collapsed, #gollum-editor .expanded').length;
308
+ },
309
+
310
+
311
+ /**
312
+ * EditorHas.formatSelector
313
+ * True if the editor has a format selector (for switching between
314
+ * language types), false otherwise.
315
+ *
316
+ * @return boolean
317
+ */
318
+ formatSelector: function() {
319
+ return $('#gollum-editor-format-selector select').length;
320
+ },
321
+
322
+
323
+ /**
324
+ * EditorHas.functionBar
325
+ * True if the Function Bar markup exists.
326
+ *
327
+ * @return boolean
328
+ */
329
+ functionBar: function() {
330
+ return ( ActiveOptions.HasFunctionBar &&
331
+ $('#gollum-editor-function-bar').length );
332
+ },
333
+
334
+
335
+ /**
336
+ * EditorHas.ff4Environment
337
+ * True if in a Firefox 4.0 Beta environment.
338
+ *
339
+ * @return boolean
340
+ */
341
+ ff4Environment: function() {
342
+ var ua = new RegExp(/Firefox\/4.0b/);
343
+ return ( ua.test( navigator.userAgent ) );
344
+ },
345
+
346
+
347
+ /**
348
+ * EditorHas.editSummaryMarkup
349
+ * True if the editor has a summary field (Gollum's commit message),
350
+ * false otherwise.
351
+ *
352
+ * @return boolean
353
+ */
354
+ editSummaryMarkup: function() {
355
+ return ( $('input#gollum-editor-message-field').length > 0 );
356
+ },
357
+
358
+
359
+ /**
360
+ * EditorHas.help
361
+ * True if the editor contains the inline help sector, false otherwise.
362
+ *
363
+ * @return boolean
364
+ */
365
+ help: function() {
366
+ return ( $('#gollum-editor #gollum-editor-help').length &&
367
+ $('#gollum-editor #function-help').length );
368
+ },
369
+
370
+
371
+ /**
372
+ * EditorHas.mathJax
373
+ * True if the editor has MathJax enabled and running, false otherwise.
374
+ *
375
+ * @return boolean
376
+ */
377
+ mathJax: function() {
378
+ return (typeof window.MathJax == 'object');
379
+ },
380
+
381
+
382
+ /**
383
+ * EditorHas.previewButton
384
+ * True if the editor has a preview button, false otherwise.
385
+ *
386
+ * @return boolean
387
+ */
388
+ previewButton: function() {
389
+ return ( $('#gollum-editor #gollum-editor-preview').length );
390
+ },
391
+
392
+
393
+ /**
394
+ * EditorHas.titleDisplayed
395
+ * True if the editor is displaying a title field, false otherwise.
396
+ *
397
+ * @return boolean
398
+ */
399
+ titleDisplayed: function() {
400
+ return ( ActiveOptions.NewFile );
401
+ }
402
+
403
+ };
404
+
405
+
406
+ /**
407
+ * FunctionBar
408
+ *
409
+ * Things the function bar does.
410
+ */
411
+ var FunctionBar = {
412
+
413
+ isActive: false,
414
+
415
+
416
+ /**
417
+ * FunctionBar.activate
418
+ * Activates the function bar, attaching all click events
419
+ * and displaying the bar.
420
+ *
421
+ */
422
+ activate: function() {
423
+ debug('Activating function bar');
424
+
425
+ // check these out
426
+ $('#gollum-editor-function-bar a.function-button').each(function() {
427
+ if ( LanguageDefinition.getDefinitionFor( $(this).attr('id') ) ) {
428
+ $(this).click( FunctionBar.evtFunctionButtonClick );
429
+ $(this).removeClass('disabled');
430
+ }
431
+ else if ( $(this).attr('id') != 'function-help' ) {
432
+ $(this).addClass('disabled');
433
+ }
434
+ });
435
+
436
+ // show bar as active
437
+ $('#gollum-editor-function-bar').addClass( 'active' );
438
+ FunctionBar.isActive = true;
439
+ },
440
+
441
+
442
+ deactivate: function() {
443
+ $('#gollum-editor-function-bar a.function-button').unbind('click');
444
+ $('#gollum-editor-function-bar').removeClass( 'active' );
445
+ FunctionBar.isActive = false;
446
+ },
447
+
448
+
449
+ /**
450
+ * FunctionBar.evtFunctionButtonClick
451
+ * Event handler for the function buttons. Traps the click and
452
+ * executes the proper language action.
453
+ *
454
+ * @param jQuery.Event jQuery event object.
455
+ */
456
+ evtFunctionButtonClick: function(e) {
457
+ e.preventDefault();
458
+ var def = LanguageDefinition.getDefinitionFor( $(this).attr('id') );
459
+ if ( typeof def == 'object' ) {
460
+ FunctionBar.executeAction( def );
461
+ }
462
+ },
463
+
464
+
465
+ /**
466
+ * FunctionBar.executeAction
467
+ * Executes a language-specific defined action for a function button.
468
+ *
469
+ */
470
+ executeAction: function( definitionObject ) {
471
+ // get the selected text from the textarea
472
+ var txt = $('#gollum-editor-body').val();
473
+ // hmm, I'm not sure this will work in a textarea
474
+ var selPos = FunctionBar
475
+ .getFieldSelectionPosition( $('#gollum-editor-body') );
476
+ var selText = FunctionBar.getFieldSelection( $('#gollum-editor-body') );
477
+ var repText = selText;
478
+ var reselect = true;
479
+ var cursor = null;
480
+
481
+ // execute a replacement function if one exists
482
+ if ( definitionObject.exec &&
483
+ typeof definitionObject.exec == 'function' ) {
484
+ definitionObject.exec( txt, selText, $('#gollum-editor-body') );
485
+ return;
486
+ }
487
+
488
+ // execute a search/replace if they exist
489
+ var searchExp = /([^\n]+)/gi;
490
+ if ( definitionObject.search &&
491
+ typeof definitionObject.search == 'object' ) {
492
+ debug('Replacing search Regex');
493
+ searchExp = null;
494
+ searchExp = new RegExp ( definitionObject.search );
495
+ debug( searchExp );
496
+ }
497
+ debug('repText is ' + '"' + repText + '"');
498
+ // replace text
499
+ if ( definitionObject.replace &&
500
+ typeof definitionObject.replace == 'string' ) {
501
+ debug('Running replacement - using ' + definitionObject.replace);
502
+ var rt = definitionObject.replace;
503
+ repText = repText.replace( searchExp, rt );
504
+ // remove backreferences
505
+ repText = repText.replace( /\$[\d]/g, '' );
506
+
507
+ if ( repText === '' ) {
508
+ debug('Search string is empty');
509
+
510
+ // find position of $1 - this is where we will place the cursor
511
+ cursor = rt.indexOf('$1');
512
+
513
+ // we have an empty string, so just remove backreferences
514
+ repText = rt.replace( /\$[\d]/g, '' );
515
+
516
+ // if the position of $1 doesn't exist, stick the cursor in
517
+ // the middle
518
+ if ( cursor == -1 ) {
519
+ cursor = Math.floor( rt.length / 2 );
520
+ }
521
+ }
522
+ }
523
+
524
+ // append if necessary
525
+ if ( definitionObject.append &&
526
+ typeof definitionObject.append == 'string' ) {
527
+ if ( repText == selText ) {
528
+ reselect = false;
529
+ }
530
+ repText += definitionObject.append;
531
+ }
532
+
533
+ if ( repText ) {
534
+ FunctionBar.replaceFieldSelection( $('#gollum-editor-body'),
535
+ repText, reselect, cursor );
536
+ }
537
+
538
+ },
539
+
540
+
541
+ /**
542
+ * getFieldSelectionPosition
543
+ * Retrieves the selection range for the textarea.
544
+ *
545
+ * @return object the .start and .end offsets in the string
546
+ */
547
+ getFieldSelectionPosition: function( $field ) {
548
+ if ($field.length) {
549
+ var start = 0, end = 0;
550
+ var el = $field.get(0);
551
+
552
+ if (typeof el.selectionStart == "number" &&
553
+ typeof el.selectionEnd == "number") {
554
+ start = el.selectionStart;
555
+ end = el.selectionEnd;
556
+ } else {
557
+ var range = document.selection.createRange();
558
+ var stored_range = range.duplicate();
559
+ stored_range.moveToElementText( el );
560
+ stored_range.setEndPoint( 'EndToEnd', range );
561
+ start = stored_range.text.length - range.text.length;
562
+ end = start + range.text.length;
563
+
564
+ // so, uh, we're close, but we need to search for line breaks and
565
+ // adjust the start/end points accordingly since IE counts them as
566
+ // 2 characters in TextRange.
567
+ var s = start;
568
+ var lb = 0;
569
+ var i;
570
+ debug('IE: start position is currently ' + s);
571
+ for ( i=0; i < s; i++ ) {
572
+ if ( el.value.charAt(i).match(/\r/) ) {
573
+ ++lb;
574
+ }
575
+ }
576
+
577
+ if ( lb ) {
578
+ debug('IE start: compensating for ' + lb + ' line breaks');
579
+ start = start - lb;
580
+ lb = 0;
581
+ }
582
+
583
+ var e = end;
584
+ for ( i=0; i < e; i++ ) {
585
+ if ( el.value.charAt(i).match(/\r/) ) {
586
+ ++lb;
587
+ }
588
+ }
589
+
590
+ if ( lb ) {
591
+ debug('IE end: compensating for ' + lb + ' line breaks');
592
+ end = end - lb;
593
+ }
594
+ }
595
+
596
+ return {
597
+ start: start,
598
+ end: end
599
+ };
600
+ } // end if ($field.length)
601
+ },
602
+
603
+
604
+ /**
605
+ * getFieldSelection
606
+ * Returns the currently selected substring of the textarea.
607
+ *
608
+ * @param jQuery A jQuery object for the textarea.
609
+ * @return string Selected string.
610
+ */
611
+ getFieldSelection: function( $field ) {
612
+ var selStr = '';
613
+ var selPos;
614
+
615
+ if ( $field.length ) {
616
+ selPos = FunctionBar.getFieldSelectionPosition( $field );
617
+ selStr = $field.val().substring( selPos.start, selPos.end );
618
+ debug('Selected: ' + selStr + ' (' + selPos.start + ', ' +
619
+ selPos.end + ')');
620
+ return selStr;
621
+ }
622
+ return false;
623
+ },
624
+
625
+
626
+ isShown: function() {
627
+ return ($('#gollum-editor-function-bar').is(':visible'));
628
+ },
629
+
630
+ refresh: function() {
631
+ if ( EditorHas.functionBar() ) {
632
+ debug('Refreshing function bar');
633
+ if ( LanguageDefinition.isValid() ) {
634
+ $('#gollum-editor-function-bar a.function-button').unbind('click');
635
+ FunctionBar.activate();
636
+ if ( Help ) {
637
+ Help.setActiveHelp( LanguageDefinition.getActiveLanguage() );
638
+ }
639
+ } else {
640
+ debug('Language definition is invalid.');
641
+ if ( FunctionBar.isShown() ) {
642
+ // deactivate the function bar; it's not gonna work now
643
+ FunctionBar.deactivate();
644
+ }
645
+ if ( Help.isShown() ) {
646
+ Help.hide();
647
+ }
648
+ }
649
+ }
650
+ },
651
+
652
+
653
+ /**
654
+ * replaceFieldSelection
655
+ * Replaces the currently selected substring of the textarea with
656
+ * a new string.
657
+ *
658
+ * @param jQuery A jQuery object for the textarea.
659
+ * @param string The string to replace the current selection with.
660
+ * @param boolean Reselect the new text range.
661
+ */
662
+ replaceFieldSelection: function( $field, replaceText, reselect, cursorOffset ) {
663
+ var selPos = FunctionBar.getFieldSelectionPosition( $field );
664
+ var fullStr = $field.val();
665
+ var selectNew = true;
666
+ if ( reselect === false) {
667
+ selectNew = false;
668
+ }
669
+
670
+ var scrollTop = null;
671
+ if ( $field[0].scrollTop ) {
672
+ scrollTop = $field[0].scrollTop;
673
+ }
674
+
675
+ $field.val( fullStr.substring(0, selPos.start) + replaceText +
676
+ fullStr.substring(selPos.end) );
677
+ $field[0].focus();
678
+
679
+ if ( selectNew ) {
680
+ if ( $field[0].setSelectionRange ) {
681
+ if ( cursorOffset ) {
682
+ $field[0].setSelectionRange(
683
+ selPos.start + cursorOffset,
684
+ selPos.start + cursorOffset
685
+ );
686
+ } else {
687
+ $field[0].setSelectionRange( selPos.start,
688
+ selPos.start + replaceText.length );
689
+ }
690
+ } else if ( $field[0].createTextRange ) {
691
+ var range = $field[0].createTextRange();
692
+ range.collapse( true );
693
+ if ( cursorOffset ) {
694
+ range.moveEnd( selPos.start + cursorOffset );
695
+ range.moveStart( selPos.start + cursorOffset );
696
+ } else {
697
+ range.moveEnd( 'character', selPos.start + replaceText.length );
698
+ range.moveStart( 'character', selPos.start );
699
+ }
700
+ range.select();
701
+ }
702
+ }
703
+
704
+ if ( scrollTop ) {
705
+ // this jumps sometimes in FF
706
+ $field[0].scrollTop = scrollTop;
707
+ }
708
+ }
709
+ };
710
+
711
+
712
+
713
+ /**
714
+ * FormatSelector
715
+ *
716
+ * Functions relating to the format selector (if it exists)
717
+ */
718
+ var FormatSelector = {
719
+
720
+ $_SELECTOR: null,
721
+
722
+ /**
723
+ * FormatSelector.evtChangeFormat
724
+ * Event handler for when a format has been changed by the format
725
+ * selector. Will automatically load a new language definition
726
+ * via JS if necessary.
727
+ *
728
+ * @return void
729
+ */
730
+ evtChangeFormat: function( e ) {
731
+ var newMarkup = $(this).val();
732
+ LanguageDefinition.setActiveLanguage( newMarkup );
733
+ },
734
+
735
+
736
+ /**
737
+ * FormatSelector.init
738
+ * Initializes the format selector.
739
+ *
740
+ * @return void
741
+ */
742
+ init: function( $sel ) {
743
+ debug('Initializing format selector');
744
+
745
+ // unbind events if init is being called twice for some reason
746
+ if ( FormatSelector.$_SELECTOR &&
747
+ typeof FormatSelector.$_SELECTOR == 'object' ) {
748
+ FormatSelector.$_SELECTOR.unbind( 'change' );
749
+ }
750
+
751
+ FormatSelector.$_SELECTOR = $sel;
752
+
753
+ // set format selector to the current language
754
+ FormatSelector.updateSelected();
755
+ FormatSelector.$_SELECTOR.change( FormatSelector.evtChangeFormat );
756
+ },
757
+
758
+
759
+ /**
760
+ * FormatSelector.update
761
+ */
762
+ updateSelected: function() {
763
+ var currentLang = LanguageDefinition.getActiveLanguage();
764
+ FormatSelector.$_SELECTOR.val( currentLang );
765
+ }
766
+
767
+ };
768
+
769
+
770
+
771
+ /**
772
+ * Help
773
+ *
774
+ * Functions that manage the display and loading of inline help files.
775
+ */
776
+ var Help = {
777
+
778
+ _ACTIVE_HELP: '',
779
+ _LOADED_HELP_LANGS: [],
780
+ _HELP: {},
781
+
782
+
783
+ /**
784
+ * Help.define
785
+ *
786
+ * Defines a new help context and enables the help function if it
787
+ * exists in the Gollum Function Bar.
788
+ *
789
+ * @param string name The name you're giving to this help context.
790
+ * Generally, this should match the language name.
791
+ * @param object definitionObject The definition object being loaded from a
792
+ * language / help definition file.
793
+ * @return void
794
+ */
795
+ define: function( name, definitionObject ) {
796
+ if ( Help.isValidHelpFormat( definitionObject ) ) {
797
+ debug('help is a valid format');
798
+
799
+ Help._ACTIVE_HELP_LANG = name;
800
+ Help._LOADED_HELP_LANGS.push( name );
801
+ Help._HELP[name] = definitionObject;
802
+
803
+ if ( $("#function-help").length ) {
804
+ if ( $('#function-help').hasClass('disabled') ) {
805
+ $('#function-help').removeClass('disabled');
806
+ }
807
+ $('#function-help').unbind('click');
808
+ $('#function-help').click( Help.evtHelpButtonClick );
809
+
810
+ // generate help menus
811
+ Help.generateHelpMenuFor( name );
812
+ }
813
+ } else {
814
+ if ( $('#function-help').length ) {
815
+ $('#function-help').addClass('disabled');
816
+ }
817
+ }
818
+ },
819
+
820
+
821
+ /**
822
+ * Help.generateHelpMenuFor
823
+ * Generates the markup for the main help menu given a context name.
824
+ *
825
+ * @param string name The context name.
826
+ * @return void
827
+ */
828
+ generateHelpMenuFor: function( name ) {
829
+ if ( !Help._HELP[name] ) {
830
+ debug('Help is not defined for ' + name.toString());
831
+ return false;
832
+ }
833
+ var helpData = Help._HELP[name];
834
+
835
+ if ( EditorHas.mathJax() && Help.isLoadedFor('mathjax') ) {
836
+ debug('Adding MathJax support to help');
837
+ // TODO
838
+ }
839
+
840
+ // clear this shiz out
841
+ $('#gollum-editor-help-parent').html('');
842
+ $('#gollum-editor-help-list').html('');
843
+ $('#gollum-editor-help-content').html('');
844
+
845
+ // go go inefficient algorithm
846
+ for ( var i=0; i < helpData.length; i++ ) {
847
+ if ( typeof helpData[i] != 'object' ) {
848
+ break;
849
+ }
850
+
851
+ var $newLi = $('<li><a href="#" rel="' + i + '">' +
852
+ helpData[i].menuName + '</a></li>');
853
+ $('#gollum-editor-help-parent').append( $newLi );
854
+ if ( i === 0 ) {
855
+ // select on first run
856
+ $newLi.children('a').addClass('selected');
857
+ }
858
+ $newLi.children('a').click( Help.evtParentMenuClick );
859
+ }
860
+
861
+ // generate parent submenu on first run
862
+ Help.generateSubMenu( helpData[0], 0 );
863
+ $($('#gollum-editor-help-list li a').get(0)).click();
864
+
865
+ },
866
+
867
+
868
+ /**
869
+ * Help.generateSubMenu
870
+ * Generates the markup for the inline help sub-menu given the data
871
+ * object for the submenu and the array index to start at.
872
+ *
873
+ * @param object subData The data for the sub-menu.
874
+ * @param integer index The index clicked on (parent menu index).
875
+ * @return void
876
+ */
877
+ generateSubMenu: function( subData, index ) {
878
+ $('#gollum-editor-help-list').html('');
879
+ $('#gollum-editor-help-content').html('');
880
+ for ( var i=0; i < subData.content.length; i++ ) {
881
+ if ( typeof subData.content[i] != 'object' ) {
882
+ break;
883
+ }
884
+
885
+ var $subLi = $('<li><a href="#" rel="' + index + ':' + i + '">' +
886
+ subData.content[i].menuName + '</a></li>');
887
+
888
+
889
+ $('#gollum-editor-help-list').append( $subLi );
890
+ $subLi.children('a').click( Help.evtSubMenuClick );
891
+ }
892
+ },
893
+
894
+
895
+ hide: function() {
896
+ if ( $.browser.msie ) {
897
+ $('#gollum-editor-help').css('display', 'none');
898
+ } else {
899
+ $('#gollum-editor-help').animate({
900
+ opacity: 0
901
+ }, 200,
902
+ function() {
903
+ $('#gollum-editor-help')
904
+ .animate({ height: 'hide' }, 200);
905
+ });
906
+ }
907
+ },
908
+
909
+ show: function() {
910
+ if ( $.browser.msie ) {
911
+ // bypass effects for internet explorer, since it does weird crap
912
+ // to text antialiasing with opacity animations
913
+ $('#gollum-editor-help').css('display', 'block');
914
+ } else {
915
+ $('#gollum-editor-help').animate({
916
+ height: 'show'
917
+ }, 200,
918
+ function() {
919
+ $('#gollum-editor-help')
920
+ .animate({ opacity: 1 }, 300);
921
+ });
922
+ }
923
+ },
924
+
925
+
926
+ /**
927
+ * Help.showHelpFor
928
+ * Displays the actual help content given the two menu indexes, which are
929
+ * rendered in the rel="" attributes of the help menus
930
+ *
931
+ * @param integer index1 parent index
932
+ * @param integer index2 submenu index
933
+ * @return void
934
+ */
935
+ showHelpFor: function( index1, index2 ) {
936
+ var html =
937
+ Help._HELP[Help._ACTIVE_HELP_LANG][index1].content[index2].data;
938
+ $('#gollum-editor-help-content').html(html);
939
+ },
940
+
941
+
942
+ /**
943
+ * Help.isLoadedFor
944
+ * Returns true if help is loaded for a specific markup language,
945
+ * false otherwise.
946
+ *
947
+ * @param string name The name of the markup language.
948
+ * @return boolean
949
+ */
950
+ isLoadedFor: function( name ) {
951
+ for ( var i=0; i < Help._LOADED_HELP_LANGS.length; i++ ) {
952
+ if ( name == Help._LOADED_HELP_LANGS[i] ) {
953
+ return true;
954
+ }
955
+ }
956
+ return false;
957
+ },
958
+
959
+
960
+ isShown: function() {
961
+ return ( $('#gollum-editor-help').is(':visible') );
962
+ },
963
+
964
+
965
+ /**
966
+ * Help.isValidHelpFormat
967
+ * Does a quick check to make sure that the help definition isn't in a
968
+ * completely messed-up format.
969
+ *
970
+ * @param object (Array) helpArr The help definition array.
971
+ * @return boolean
972
+ */
973
+ isValidHelpFormat: function( helpArr ) {
974
+ return ( typeof helpArr == 'object' &&
975
+ helpArr.length &&
976
+ typeof helpArr[0].menuName == 'string' &&
977
+ typeof helpArr[0].content == 'object' &&
978
+ helpArr[0].content.length );
979
+ },
980
+
981
+
982
+ /**
983
+ * Help.setActiveHelp
984
+ * Sets the active help definition to the one defined in the argument,
985
+ * re-rendering the help menu to match the new definition.
986
+ *
987
+ * @param string name The name of the help definition.
988
+ * @return void
989
+ */
990
+ setActiveHelp: function( name ) {
991
+ if ( !Help.isLoadedFor( name ) ) {
992
+ if ( $('#function-help').length ) {
993
+ $('#function-help').addClass('disabled');
994
+ }
995
+ if ( Help.isShown() ) {
996
+ Help.hide();
997
+ }
998
+ } else {
999
+ Help._ACTIVE_HELP_LANG = name;
1000
+ if ( $("#function-help").length ) {
1001
+ if ( $('#function-help').hasClass('disabled') ) {
1002
+ $('#function-help').removeClass('disabled');
1003
+ }
1004
+ $('#function-help').unbind('click');
1005
+ $('#function-help').click( Help.evtHelpButtonClick );
1006
+ Help.generateHelpMenuFor( name );
1007
+ }
1008
+ }
1009
+ },
1010
+
1011
+
1012
+ /**
1013
+ * Help.evtHelpButtonClick
1014
+ * Event handler for clicking the help button in the function bar.
1015
+ *
1016
+ * @param jQuery.Event e The jQuery event object.
1017
+ * @return void
1018
+ */
1019
+ evtHelpButtonClick: function( e ) {
1020
+ e.preventDefault();
1021
+ if ( Help.isShown() ) { Help.hide(); }
1022
+ else { Help.show(); }
1023
+ },
1024
+
1025
+
1026
+ /**
1027
+ * Help.evtParentMenuClick
1028
+ * Event handler for clicking on an item in the parent menu. Automatically
1029
+ * renders the submenu for the parent menu as well as the first result for
1030
+ * the actual plain text.
1031
+ *
1032
+ * @param jQuery.Event e The jQuery event object.
1033
+ * @return void
1034
+ */
1035
+ evtParentMenuClick: function( e ) {
1036
+ e.preventDefault();
1037
+ // short circuit if we've selected this already
1038
+ if ( $(this).hasClass('selected') ) { return; }
1039
+
1040
+ // populate from help data for this
1041
+ var helpIndex = $(this).attr('rel');
1042
+ var subData = Help._HELP[Help._ACTIVE_HELP_LANG][helpIndex];
1043
+
1044
+ $('#gollum-editor-help-parent li a').removeClass('selected');
1045
+ $(this).addClass('selected');
1046
+ Help.generateSubMenu( subData, helpIndex );
1047
+ $($('#gollum-editor-help-list li a').get(0)).click();
1048
+ },
1049
+
1050
+
1051
+ /**
1052
+ * Help.evtSubMenuClick
1053
+ * Event handler for clicking an item in a help submenu. Renders the
1054
+ * appropriate text for the submenu link.
1055
+ *
1056
+ * @param jQuery.Event e The jQuery event object.
1057
+ * @return void
1058
+ */
1059
+ evtSubMenuClick: function( e ) {
1060
+ e.preventDefault();
1061
+ if ( $(this).hasClass('selected') ) { return; }
1062
+
1063
+ // split index rel data
1064
+ var rawIndex = $(this).attr('rel').split(':');
1065
+ $('#gollum-editor-help-list li a').removeClass('selected');
1066
+ $(this).addClass('selected');
1067
+ Help.showHelpFor( rawIndex[0], rawIndex[1] );
1068
+ }
1069
+ };
1070
+
1071
+
1072
+ // Publicly-accessible function to Help.define
1073
+ $.GollumEditor.defineHelp = Help.define;
1074
+
1075
+ // Dialog exists as its own thing now
1076
+ $.GollumEditor.Dialog = $.GollumDialog;
1077
+ $.GollumEditor.replaceSelection = function( repText ) {
1078
+ FunctionBar.replaceFieldSelection( $('#gollum-editor-body'), repText );
1079
+ };
1080
+
1081
+ // Placeholder exists as its own thing now
1082
+ $.GollumEditor.Placeholder = $.GollumPlaceholder;
1083
+
1084
+ })(jQuery);