super-pro-rb 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. checksums.yaml +7 -0
  2. data/gollum-6.1.0/CONTRIBUTING.md +221 -0
  3. data/gollum-6.1.0/Dockerfile +57 -0
  4. data/gollum-6.1.0/Gemfile +30 -0
  5. data/gollum-6.1.0/HISTORY.md +229 -0
  6. data/gollum-6.1.0/LATEST_CHANGES.md +6 -0
  7. data/gollum-6.1.0/LICENSE +21 -0
  8. data/gollum-6.1.0/README.md +177 -0
  9. data/gollum-6.1.0/Rakefile +297 -0
  10. data/gollum-6.1.0/bin/gollum +301 -0
  11. data/gollum-6.1.0/bin/gollum-migrate-tags +283 -0
  12. data/gollum-6.1.0/config.rb +12 -0
  13. data/gollum-6.1.0/config.ru +12 -0
  14. data/gollum-6.1.0/contrib/automation/gollum-post +66 -0
  15. data/gollum-6.1.0/contrib/openrc/conf.d/gollum +3 -0
  16. data/gollum-6.1.0/contrib/openrc/init.d/gollum +36 -0
  17. data/gollum-6.1.0/contrib/systemd/gollum@.service +12 -0
  18. data/gollum-6.1.0/contrib/sysv-debian/init.d/gollum +79 -0
  19. data/gollum-6.1.0/docker-run.sh +24 -0
  20. data/gollum-6.1.0/gollum.gemspec +305 -0
  21. data/gollum-6.1.0/lib/gollum/app.rb +747 -0
  22. data/gollum-6.1.0/lib/gollum/assets.rb +33 -0
  23. data/gollum-6.1.0/lib/gollum/helpers.rb +74 -0
  24. data/gollum-6.1.0/lib/gollum/locales/cn.yml +103 -0
  25. data/gollum-6.1.0/lib/gollum/locales/en.yml +103 -0
  26. data/gollum-6.1.0/lib/gollum/public/assets/app-05adca32f8f4f3effe10f8f4cf26dfd6a419ba986bce60d3f51a97e4055d4113.js +30 -0
  27. data/gollum-6.1.0/lib/gollum/public/assets/app-05adca32f8f4f3effe10f8f4cf26dfd6a419ba986bce60d3f51a97e4055d4113.js.gz +0 -0
  28. data/gollum-6.1.0/lib/gollum/public/assets/app-e224b375d824f0171fc926d624dc0887bf453db83f485b1992bc0859c4110e3e.css +11 -0
  29. data/gollum-6.1.0/lib/gollum/public/assets/app-e224b375d824f0171fc926d624dc0887bf453db83f485b1992bc0859c4110e3e.css.gz +0 -0
  30. data/gollum-6.1.0/lib/gollum/public/assets/criticmarkup-7b66f7a53b854bc9e4168be5b4725ca38e2bc6e9c41d5c050a9f60d9a94cb405.css +1 -0
  31. data/gollum-6.1.0/lib/gollum/public/assets/criticmarkup-7b66f7a53b854bc9e4168be5b4725ca38e2bc6e9c41d5c050a9f60d9a94cb405.css.gz +0 -0
  32. data/gollum-6.1.0/lib/gollum/public/assets/editor-9bef5462bb5dae2db84d6d8d534b55c5bb5a430e11344b3c23f9ea4410312f52.js +165 -0
  33. data/gollum-6.1.0/lib/gollum/public/assets/editor-9bef5462bb5dae2db84d6d8d534b55c5bb5a430e11344b3c23f9ea4410312f52.js.gz +0 -0
  34. data/gollum-6.1.0/lib/gollum/public/assets/gollum.katex-e70c1d51a08ebfe759eecbb33fbed54f300ccd7fb8d0e86e251caaf4e50f6b68.js +9 -0
  35. data/gollum-6.1.0/lib/gollum/public/assets/gollum.katex-e70c1d51a08ebfe759eecbb33fbed54f300ccd7fb8d0e86e251caaf4e50f6b68.js.gz +0 -0
  36. data/gollum-6.1.0/lib/gollum/public/assets/gollum.mermaid-06fd2f5494199db250618043312c27770720504b50c3f6ca99d2d2df529c7da3.js +118 -0
  37. data/gollum-6.1.0/lib/gollum/public/assets/gollum.mermaid-06fd2f5494199db250618043312c27770720504b50c3f6ca99d2d2df529c7da3.js.gz +0 -0
  38. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  39. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  40. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  41. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  42. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  43. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  44. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  45. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  46. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  47. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  48. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  49. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  50. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  51. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  52. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  53. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  54. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  55. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  56. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  57. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  58. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/katex-709d4191c4f005516a709377f79e468d343f4e6c91a29a6ff188d13d124ba55f.css +1 -0
  59. data/gollum-6.1.0/lib/gollum/public/assets/katex/dist/katex-709d4191c4f005516a709377f79e468d343f4e6c91a29a6ff188d13d124ba55f.css.gz +0 -0
  60. data/gollum-6.1.0/lib/gollum/public/assets/print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css +1 -0
  61. data/gollum-6.1.0/lib/gollum/public/assets/print-512498c368be0d3fb1ba105dfa84289ae48380ec9fcbef948bd4e23b0b095bfb.css.gz +0 -0
  62. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/HOWTO_UPDATE_MATHJAX.md +21 -0
  63. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/a11y/assistive-mml.js +1 -0
  64. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/a11y/complexity.js +1 -0
  65. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/a11y/explorer.js +1 -0
  66. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/a11y/semantic-enrich.js +1 -0
  67. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/a11y/sre.js +1 -0
  68. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/adaptors/liteDOM.js +1 -0
  69. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/core.js +1 -0
  70. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/asciimath.js +1 -0
  71. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/mml/entities.js +1 -0
  72. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/mml/extensions/mml3.js +1 -0
  73. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/mml/extensions/mml3.sef.json +1 -0
  74. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/mml.js +1 -0
  75. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/action.js +1 -0
  76. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/all-packages.js +34 -0
  77. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/ams.js +1 -0
  78. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/amscd.js +1 -0
  79. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/autoload.js +1 -0
  80. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/bbox.js +1 -0
  81. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/boldsymbol.js +1 -0
  82. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/braket.js +1 -0
  83. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/bussproofs.js +1 -0
  84. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/cancel.js +1 -0
  85. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/cases.js +1 -0
  86. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/centernot.js +1 -0
  87. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/color.js +1 -0
  88. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/colortbl.js +1 -0
  89. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/colorv2.js +1 -0
  90. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/configmacros.js +1 -0
  91. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/empheq.js +1 -0
  92. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/enclose.js +1 -0
  93. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/extpfeil.js +1 -0
  94. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/gensymb.js +1 -0
  95. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/html.js +1 -0
  96. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/mathtools.js +1 -0
  97. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/mhchem.js +34 -0
  98. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/newcommand.js +1 -0
  99. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/noerrors.js +1 -0
  100. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/noundefined.js +1 -0
  101. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/physics.js +1 -0
  102. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/require.js +1 -0
  103. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/setoptions.js +1 -0
  104. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/tagformat.js +1 -0
  105. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/textcomp.js +1 -0
  106. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/textmacros.js +1 -0
  107. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/unicode.js +1 -0
  108. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/upgreek.js +1 -0
  109. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex/extensions/verb.js +1 -0
  110. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex-base.js +1 -0
  111. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex-full.js +34 -0
  112. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/input/tex.js +1 -0
  113. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/latest.js +1 -0
  114. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/loader.js +1 -0
  115. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/node-main.js +1 -0
  116. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/tex.js +1 -0
  117. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
  118. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
  119. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
  120. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
  121. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
  122. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
  123. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
  124. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
  125. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
  126. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
  127. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
  128. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
  129. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
  130. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
  131. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
  132. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
  133. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
  134. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
  135. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
  136. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
  137. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
  138. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
  139. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
  140. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/chtml.js +1 -0
  141. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/svg/fonts/tex.js +1 -0
  142. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/output/svg.js +1 -0
  143. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/base.json +29 -0
  144. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/ca.json +140 -0
  145. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/da.json +140 -0
  146. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/de.json +146 -0
  147. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/en.json +158 -0
  148. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/es.json +140 -0
  149. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/fr.json +146 -0
  150. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/hi.json +146 -0
  151. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/it.json +146 -0
  152. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/nb.json +146 -0
  153. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/nemeth.json +125 -0
  154. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/nn.json +146 -0
  155. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/sre/mathmaps/sv.json +146 -0
  156. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/startup.js +1 -0
  157. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/tex-chtml-full-speech.js +34 -0
  158. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/tex-mml-chtml.js +1 -0
  159. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/ui/lazy.js +1 -0
  160. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/ui/menu.js +1 -0
  161. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/MathJax/ui/safe.js +1 -0
  162. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/app.js +15 -0
  163. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/clipboard.min.js +7 -0
  164. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/date.min.js +123 -0
  165. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/gollum.editor.js +1277 -0
  166. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/asciidoc.js +117 -0
  167. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/bib.js +8 -0
  168. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/creole.js +70 -0
  169. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/default.js +201 -0
  170. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/markdown.js +119 -0
  171. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/mediawiki.js +122 -0
  172. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/org.js +128 -0
  173. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/plaintext.js +8 -0
  174. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/pod.js +93 -0
  175. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/rdoc.js +23 -0
  176. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/rest.js +187 -0
  177. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/langs/textile.js +133 -0
  178. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/modes.js.erb +252 -0
  179. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor/sections.js +87 -0
  180. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/editor.js +30 -0
  181. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/gollum.behaviors.js +40 -0
  182. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/gollum.dialog.js +263 -0
  183. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/gollum.js.erb +814 -0
  184. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/gollum.katex.js +3 -0
  185. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/gollum.mermaid.js +2 -0
  186. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/gollum.placeholder.js +54 -0
  187. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/identicon.js +205 -0
  188. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/jquery-1.9.1.min.js +5 -0
  189. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/jquery.resize.js +164 -0
  190. data/gollum-6.1.0/lib/gollum/public/gollum/javascript/polyfills.js +6 -0
  191. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/_base.scss +13 -0
  192. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/_breakpoint.scss +22 -0
  193. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/_features.scss +84 -0
  194. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/_spinners.scss +245 -0
  195. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/app.scss +16 -0
  196. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/criticmarkup.scss +42 -0
  197. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/dialog.scss +140 -0
  198. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/editor.scss +217 -0
  199. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/emoji.scss +5 -0
  200. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/highlights.scss +196 -0
  201. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/print.scss +16 -0
  202. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/spinner.scss +9 -0
  203. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/tables.scss +47 -0
  204. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/template.scss.erb +204 -0
  205. data/gollum-6.1.0/lib/gollum/public/gollum/stylesheets/wiki_content.scss +144 -0
  206. data/gollum-6.1.0/lib/gollum/templates/commit.mustache +29 -0
  207. data/gollum-6.1.0/lib/gollum/templates/compare.mustache +84 -0
  208. data/gollum-6.1.0/lib/gollum/templates/create.mustache +26 -0
  209. data/gollum-6.1.0/lib/gollum/templates/edit.mustache +24 -0
  210. data/gollum-6.1.0/lib/gollum/templates/editor.mustache +215 -0
  211. data/gollum-6.1.0/lib/gollum/templates/error.mustache +8 -0
  212. data/gollum-6.1.0/lib/gollum/templates/history.mustache +51 -0
  213. data/gollum-6.1.0/lib/gollum/templates/history_authors/gravatar.mustache +2 -0
  214. data/gollum-6.1.0/lib/gollum/templates/history_authors/identicon.mustache +2 -0
  215. data/gollum-6.1.0/lib/gollum/templates/history_authors/none.mustache +2 -0
  216. data/gollum-6.1.0/lib/gollum/templates/latest_changes.mustache +36 -0
  217. data/gollum-6.1.0/lib/gollum/templates/layout.mustache +140 -0
  218. data/gollum-6.1.0/lib/gollum/templates/mobilenav.mustache +72 -0
  219. data/gollum-6.1.0/lib/gollum/templates/navbar.mustache +110 -0
  220. data/gollum-6.1.0/lib/gollum/templates/overview.mustache +55 -0
  221. data/gollum-6.1.0/lib/gollum/templates/page.mustache +13 -0
  222. data/gollum-6.1.0/lib/gollum/templates/pagination.mustache +23 -0
  223. data/gollum-6.1.0/lib/gollum/templates/search.mustache +51 -0
  224. data/gollum-6.1.0/lib/gollum/templates/searchbar.mustache +3 -0
  225. data/gollum-6.1.0/lib/gollum/templates/wiki_content.mustache +64 -0
  226. data/gollum-6.1.0/lib/gollum/uri_encode_component.rb +212 -0
  227. data/gollum-6.1.0/lib/gollum/views/commit.rb +49 -0
  228. data/gollum-6.1.0/lib/gollum/views/compare.rb +109 -0
  229. data/gollum-6.1.0/lib/gollum/views/create.rb +53 -0
  230. data/gollum-6.1.0/lib/gollum/views/edit.rb +78 -0
  231. data/gollum-6.1.0/lib/gollum/views/editable.rb +31 -0
  232. data/gollum-6.1.0/lib/gollum/views/error.rb +7 -0
  233. data/gollum-6.1.0/lib/gollum/views/has_math.rb +15 -0
  234. data/gollum-6.1.0/lib/gollum/views/has_page.rb +19 -0
  235. data/gollum-6.1.0/lib/gollum/views/has_user_icons.rb +15 -0
  236. data/gollum-6.1.0/lib/gollum/views/helpers/locale_helpers.rb +89 -0
  237. data/gollum-6.1.0/lib/gollum/views/helpers.rb +132 -0
  238. data/gollum-6.1.0/lib/gollum/views/history.rb +56 -0
  239. data/gollum-6.1.0/lib/gollum/views/latest_changes.rb +44 -0
  240. data/gollum-6.1.0/lib/gollum/views/layout.rb +103 -0
  241. data/gollum-6.1.0/lib/gollum/views/overview.rb +81 -0
  242. data/gollum-6.1.0/lib/gollum/views/page.rb +277 -0
  243. data/gollum-6.1.0/lib/gollum/views/pagination.rb +13 -0
  244. data/gollum-6.1.0/lib/gollum/views/rss.rb +84 -0
  245. data/gollum-6.1.0/lib/gollum/views/search.rb +47 -0
  246. data/gollum-6.1.0/lib/gollum/views/template_cascade.rb +29 -0
  247. data/gollum-6.1.0/lib/gollum.rb +42 -0
  248. data/gollum-6.1.0/licenses/licenses.txt +31 -0
  249. data/gollum-6.1.0/package.json +12 -0
  250. data/gollum-6.1.0/yarn.lock +1025 -0
  251. data/super-pro-rb.gemspec +11 -0
  252. metadata +290 -0
@@ -0,0 +1,117 @@
1
+ /**
2
+ * AsciiDoc Language Definition
3
+ * See default.js for documentation
4
+ *
5
+ */
6
+
7
+ (function($) {
8
+
9
+ // No need to set all the replacements, only those different from the default language (Markdown).
10
+ var AsciiDoc = {
11
+
12
+ 'function-bold': {
13
+ 'replace': "*$1*$2"
14
+ },
15
+
16
+ 'function-hr': undefined,
17
+
18
+ 'function-blockquote': {
19
+ 'replace': "----\n$1$2\n----"
20
+ },
21
+
22
+ 'function-h1': {
23
+ 'replace': "= $1$2"
24
+ },
25
+
26
+ 'function-h2': {
27
+ 'replace': "== $1$2"
28
+ },
29
+
30
+ 'function-h3': {
31
+ 'replace': "=== $1$2"
32
+ },
33
+
34
+ 'function-link': {
35
+ 'replace': function ( res ) {
36
+ var rep = '';
37
+ if ( res['text'] && res['href'] ) {
38
+ rep = res['href'] + '[' + res['text'] + ']';
39
+ }
40
+ return rep;
41
+ }
42
+ },
43
+
44
+ 'function-image': {
45
+ 'replace': function ( res ) {
46
+ var rep = '';
47
+ if ( res['url'] && res['alt'] ) {
48
+ rep = 'image::' + res['url'] + '[' + res['alt'] + ']';
49
+ }
50
+ return rep;
51
+ }
52
+ }
53
+ };
54
+
55
+ $.GollumEditor.defineLanguage('asciidoc', $.constructLanguageDefinition(AsciiDoc));
56
+
57
+ var AsciiDocHelp = [
58
+ {
59
+ menuName: 'Text Formatting',
60
+ content: [
61
+ {
62
+ menuName: 'Headers',
63
+ data: '<p>AsciiDoc headers can be written in two ways: with differing underlines or with different indentation using <code>=</code> (equals sign). AsciiDoc supports headings 1-4. The editor will automatically use the <code>=</code> notation. To create a level one header, prefix your line with one <code>=</code>. Level two headers are created with <code>==</code> and so on.</p>'
64
+ },
65
+ {
66
+ menuName: 'Bold / Italic',
67
+ data: '<p>To display text as <strong>bold</strong>, wrap the text in <code>*</code> (asterisks). To display text as <em>italic</em>, wrap the text in <code>_</code> (underscores). To create <code>monospace</code> text, wrap the text in <code>`</code> (backtick).'
68
+ },
69
+ {
70
+ menuName: 'Scripts',
71
+ data: '<p>Superscript and subscript is created the same way as other inline formats. To create superscript text, wrap your text in <code>^</code> (carats). To create subscript text, wrap your text in <code>~</code> (tildes).</p>'
72
+ },
73
+ {
74
+ menuName: 'Special Characters',
75
+ data: '<p>AsciiDoc will automatically convert textual representations of commonly-used special characters. For example, <code>(R)</code> becomes &reg;, <code>(C)</code> becomes &copy; and <code>(TM)</code> becomes &trade;.</p>'
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ menuName: 'Blocks',
81
+ content: [
82
+ {
83
+ menuName: 'Paragraphs',
84
+ data: '<p>AsciiDoc allows paragraphs to have optional titles or icons to denote special sections. To make a normal paragraph, simply add a line between blocks and a new paragraph will start. If you want to title your paragraphs, adda line prefixed by <code>.</code> (full stop). An example paragraph with optional title is displayed below:<br><br><code>.Optional Title<br><br>This is my paragraph. It is two sentences long.</code></p>'
85
+ },
86
+ {
87
+ menuName: 'Source Blocks',
88
+ data: '<p>To create source blocks (long blocks of code), follow the same syntax as above but with an extra line denoting the inline source and lines of four dashes (<code>----</code>) delimiting the source block.. An example of Python source is below:<br><br><code>.python.py<br>[source,python]<br>----<br># i just wrote a comment in python<br># and maybe one more<br>----</code></p>'
89
+ },
90
+ {
91
+ menuName: 'Comment Blocks',
92
+ data: '<p>Comment blocks are useful if you want to keep notes for yourself inline but do not want them displayed to the public. To create a comment block, simply wrap the paragraph in dividers with four slashes (<code>////</code>). An example comment block is below:<br><br><code>////<br>My comment block is here now<br><br>It can be multiple paragraphs. Really.<br>////</p>'
93
+ },
94
+ {
95
+ menuName: 'Quote Blocks',
96
+ data: '<p>Quote blocks work much like comment blocks &mdash; simply create dividers using four underscores (<code>____</code>) around your quote. An example quote block is displayed below:<br><code>____<br>This is my quote block. Quote something nice here, otherwise there is no point in quoting.<br>____</code></p>'
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ menuName: 'Macros',
102
+ content: [
103
+ {
104
+ menuName: 'Links',
105
+ data: '<p>To create links to external pages, you can simply write the URI if you want the URI to link to itself. (i.e., <code>http://github.com/</code> will automatically be parsed to <a href="javascript:void(0);">http://github.com/</a>. If you want different text to be displayed, simply append it to the end of the URI in between <code>[</code> (brackets.) For example, <code>http://github.com/[GitHub]</code> will be parsed as <a href="javascript:void(0);">GitHub</a>, with the URI pointing to <code>http://github.com</code>.</p>'
106
+ },
107
+ {
108
+ menuName: 'Images',
109
+ data: '<p>Images in AsciiDoc work much like hyperlinks, but image URLs are prefixed with <code>image:</code>. For example, to link to an image at <code>images/icons/home.png</code>, write <code>image:images/icons/home.png</code>. Alt text can be added by appending the text to the URI in <code>[</code> (brackets).</p>'
110
+ }
111
+ ]
112
+ }
113
+ ];
114
+
115
+ $.GollumEditor.defineHelp('asciidoc', AsciiDocHelp);
116
+
117
+ })(jQuery);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * BibTeX Language Definition
3
+ *
4
+ */
5
+
6
+ (function($) {
7
+ $.GollumEditor.defineLanguage('bib', {});
8
+ })(jQuery);
@@ -0,0 +1,70 @@
1
+ /**
2
+ * Creole Language Definition
3
+ * See default.js for documentation
4
+ *
5
+ */
6
+ (function($) {
7
+
8
+ // No need to set all the replacements, only those different from the default language (Markdown).
9
+ var Creole = {
10
+
11
+ 'function-italic': {
12
+ 'replace': "//$1//$2"
13
+ },
14
+
15
+ 'function-code': {
16
+ 'replace': "{{{$1}}}$2"
17
+ },
18
+
19
+ 'function-hr': {
20
+ 'append': "\n\n----\n\n"
21
+ },
22
+
23
+ 'function-blockquote': undefined,
24
+
25
+ 'function-ol': {
26
+ 'line': function ( index, line) {
27
+ return '# ' + line + "\n";
28
+ }
29
+ },
30
+
31
+ 'function-h1': {
32
+ 'replace': "== $1$2"
33
+ },
34
+
35
+ 'function-h2': {
36
+ 'replace': "=== $1$2"
37
+ },
38
+
39
+ 'function-h3': {
40
+ 'replace': "==== $1$2"
41
+ },
42
+
43
+ 'function-link': {
44
+ 'replace': function ( res ) {
45
+ var rep = '';
46
+ if ( res['text'] && res['href'] ) {
47
+ rep = '[[' + res['href'] + '|' + res['text'] + ']]';
48
+ }
49
+ return rep;
50
+ }
51
+ },
52
+
53
+ 'function-image': {
54
+ 'replace': function ( res ) {
55
+ var rep = '';
56
+ if ( res['url'] && res['alt'] ) {
57
+ rep = '{{' + res['url'];
58
+ if ( res['alt'] != '' ) {
59
+ rep += '|' + res['alt'];
60
+ }
61
+ rep = rep + '}}';
62
+ }
63
+ return rep;
64
+ }
65
+ }
66
+ };
67
+
68
+ $.GollumEditor.defineLanguage('creole', $.constructLanguageDefinition(Creole));
69
+
70
+ })(jQuery);
@@ -0,0 +1,201 @@
1
+ /**
2
+ * Default Language Definition
3
+ *
4
+ * Standard language definition for string manipulation operations which can be used
5
+ * to generate others language definition. The default rules below describe
6
+ * the Markdown markup language. (The Markdown definition is therefore just a
7
+ * deep clone of $.DefaultLanguage.)
8
+ *
9
+ * Language definitions use regexes for various functions by default.
10
+ * If regexes won't do and you need to do some serious manipulation,
11
+ * you can declare a function in the object instead.
12
+ *
13
+ * If the 'append' property is set for a function, its value will be appended at the cursor position.
14
+ *
15
+ * Some functions have the 'break_line' and 'whole_line' boolean properties set.
16
+ * You can use these to indicate whether a function inserts a newline (break_line),
17
+ * and whether just the selection or the whole line should be replaced (whole_line).
18
+ * These also influence cursor placement after text in the editor has been replaced.
19
+ *
20
+ **/
21
+
22
+ (function($) {
23
+
24
+ $.constructLanguageDefinition = function (newLang) {
25
+ var result = $.extend(true, {}, $.DefaultLang, newLang);
26
+ Object.keys(newLang).forEach(function (key) {
27
+ if(typeof newLang[key] === 'undefined'){
28
+ delete result[key];
29
+ }
30
+ });
31
+ return result;
32
+ };
33
+
34
+ var initDialog = function( title, fields, onResult) {
35
+ $.GollumEditor.Dialog.init({
36
+ title: title,
37
+ fields: fields,
38
+ OK: function( res ) {
39
+ $.GollumEditor.replaceSelection( onResult(res) );
40
+ }
41
+ });
42
+ };
43
+
44
+ $.DefaultLang = {
45
+
46
+ 'function-bold' : {
47
+ search: /([^\n]+)([\n\s]*)/g,
48
+ replace: "**$1**$2"
49
+ },
50
+
51
+ 'function-italic' : {
52
+ search: /([^\n]+)([\n\s]*)/g,
53
+ replace: "_$1_$2"
54
+ },
55
+
56
+ 'function-code' : {
57
+ search: /([^\n]+)([\n\s]*)/g,
58
+ replace: "`$1`$2"
59
+ },
60
+
61
+ 'function-hr' : {
62
+ append: "\n***\n"
63
+ },
64
+
65
+ 'function-ul' : {
66
+ exec: function( txt, selText, $field ) {
67
+ var repText = '';
68
+ var lines = selText.split("\n");
69
+ for ( var i = 0; i < lines.length; i++ ) {
70
+ repText += '* ' + lines[i] + "\n";
71
+ }
72
+ repText = repText.substring(0, repText.length-1)
73
+ $.GollumEditor.replaceSelection( repText, true, true );
74
+ },
75
+ },
76
+ /* based on rdoc.js */
77
+ 'function-ol' : {
78
+ line: function ( index, line) {
79
+ // This function generates the markup for a line of the ol, based on the line number (index) and the content of the line (line).
80
+ // Override this function for alternative markups when needed.
81
+ return index.toString() + '. ' + line + "\n"; // result e.g. "1. Previously existing text\n"
82
+ },
83
+ exec: function( txt, selText, $field ) {
84
+ var repText = '';
85
+ var lines = selText.split("\n");
86
+ for ( var i = 0; i < lines.length; i++ ) {
87
+ repText += this.line(i+1, lines[i]);
88
+ }
89
+ repText = repText.substring(0, repText.length-1)
90
+ $.GollumEditor.replaceSelection( repText, true, true );
91
+ },
92
+ },
93
+
94
+ 'function-blockquote' : {
95
+ search: /(.+)([\n]?)/g,
96
+ replace: "> $1$2",
97
+ break_line: true,
98
+ },
99
+
100
+ 'function-h1' : {
101
+ search: /(.+)([\n]?)/g,
102
+ replace: "# $1$2",
103
+ break_line: true,
104
+ whole_line: true
105
+ },
106
+
107
+ 'function-h2' : {
108
+ search: /(.+)([\n]?)/g,
109
+ replace: "## $1$2",
110
+ break_line: true,
111
+ whole_line: true
112
+ },
113
+
114
+ 'function-h3' : {
115
+ search: /(.+)([\n]?)/g,
116
+ replace: "### $1$2",
117
+ break_line: true,
118
+ whole_line: true
119
+ },
120
+
121
+ 'function-link' : {
122
+ replace: function ( res ) {
123
+ // The replace function generates the markup to be inserted from the result of the Dialog (res).
124
+ // Set a different replace function if your markup requires it.
125
+ var rep = '';
126
+ if ( res['text'] && res['href'] ) {
127
+ rep = '[' + res['text'] + '](' + res['href'] + ')';
128
+ }
129
+ return rep;
130
+ },
131
+ exec: function (txt, selText, $field) {
132
+ initDialog('Insert Link', [
133
+ {
134
+ id: 'text',
135
+ name: 'Link Text',
136
+ type: 'text',
137
+ defaultValue: selText
138
+ },
139
+ {
140
+ id: 'href',
141
+ name: 'URL',
142
+ type: 'text'
143
+ }
144
+ ], this.replace)
145
+ }
146
+ },
147
+ 'function-image' : {
148
+ replace: function( res ) {
149
+ // The replace function generates the markup to be inserted from the result of the Dialog (res).
150
+ // Set a different replace function if your markup requires it.
151
+ var rep = '';
152
+ if ( res['url'] && res['alt'] ) {
153
+ rep = '![' + res['alt'] + ']' + '(' + res['url'] + ')';
154
+ }
155
+ return rep;
156
+ },
157
+ exec: function (txt, selText, $field) {
158
+ initDialog('Insert Image', [
159
+ {
160
+ id: 'url',
161
+ name: 'Image Url',
162
+ type: 'text',
163
+ defaultValue: selText
164
+ },
165
+ {
166
+ id: 'alt',
167
+ name: 'Alt Text',
168
+ type: 'text'
169
+ }
170
+ ], this.replace)
171
+ }
172
+ },
173
+ 'function-critic-accept' : {
174
+ exec: function( txt, selText, $field) {
175
+ var toReplace = selText.
176
+ replace(/\{\+\+(.*?)\+\+[ \t]*(\[(.*?)\])?[ \t]*\}/gm, "$1").
177
+ replace(/\{--(.*?)--[ \t]*(\[(.*?)\])?[ \t]*\}/gm, "").
178
+ replace(/\{~~(.*?)~>(.*?)~~\}/gm, "$2").
179
+ replace(/\{\=\=(.*?)[ \t]*(\[(.*?)\])?[ \t]*\=\=\}{>>(.*?)<<\}/gm, "$1").
180
+ replace(/\{>>(.*?)<<\}/gm, "")
181
+ $.GollumEditor.replaceSelection( toReplace );
182
+ }
183
+
184
+ },
185
+
186
+ 'function-critic-reject' : {
187
+ exec: function( txt, selText, $field) {
188
+ var toReplace = selText.
189
+ replace(/\{\+\+(.*?)\+\+[ \t]*(\[(.*?)\])?[ \t]*\}/gm, "").
190
+ replace(/\{--(.*?)--[ \t]*(\[(.*?)\])?[ \t]*\}/gm, "$1").
191
+ replace(/\{~~(.*?)~>(.*?)~~\}/gm, "$1").
192
+ replace(/\{\=\=(.*?)[ \t]*(\[(.*?)\])?[ \t]*\=\=\}{>>(.*?)<<\}/gm, "$1").
193
+ replace(/\{>>(.*?)<<\}/gm, "")
194
+ $.GollumEditor.replaceSelection( toReplace );
195
+ }
196
+
197
+ }
198
+
199
+ };
200
+
201
+ })(jQuery);
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Markdown Language Definition
3
+ * See default.js for documentation
4
+ *
5
+ **/
6
+
7
+ (function($) {
8
+
9
+ // The default language definition (in default.js) is markdown, so we only need to set the special helper functions.
10
+ var MarkDown = {
11
+
12
+ 'gollum-helpers': {
13
+
14
+ 'find-header-line': function (line, token) {
15
+ // For use in sections.js
16
+ // Checks if token matches alternative-syntax markdown headers. These are of the form '===' or '---'.
17
+ // If so, returns an array containing the text of the header and the previous line number.
18
+ // If not, returns null.
19
+ if ( token.match(/(^[=]+$)/) || token.match(/(^[-]+$)/) ){
20
+ var foundLine = line-1
21
+ var text = window.ace_editor.getSession().getLine(foundLine);
22
+ if (foundLine >= 0 && !/^\s+$/.test(text)) { // Sanity check
23
+ return [text, foundLine];
24
+ }
25
+ else {
26
+ return null;
27
+ }
28
+ } else {
29
+ return null;
30
+ }
31
+ }
32
+
33
+ }
34
+
35
+ };
36
+
37
+ $.GollumEditor.defineLanguage('markdown', $.constructLanguageDefinition(MarkDown));
38
+
39
+ var MarkDownHelp = [
40
+
41
+ {
42
+ menuName: 'Block Elements',
43
+ content: [
44
+ {
45
+ menuName: 'Paragraphs &amp; Breaks',
46
+ data: '<p>To create a paragraph, simply create a block of text that is not separated by one or more blank lines. Blocks of text separated by one or more blank lines will be parsed as paragraphs.</p><p>If you want to create a line break, end a line with two or more spaces, then hit Return/Enter.</p>'
47
+ },
48
+ {
49
+ menuName: 'Headers',
50
+ data: '<p>Markdown supports two header formats. The wiki editor uses the &ldquo;atx&rsquo;-style headers. Simply prefix your header text with the number of <code>#</code> characters to specify heading depth. For example: <code># Header 1</code>, <code>## Header 2</code> and <code>### Header 3</code> will be progressively smaller headers. You may end your headers with any number of hashes.</p>'
51
+ },
52
+ {
53
+ menuName: 'Blockquotes',
54
+ data: '<p>Markdown creates blockquotes email-style by prefixing each line with the <code>&gt;</code>. This looks best if you decide to hard-wrap text and prefix each line with a <code>&gt;</code> character, but Markdown supports just putting <code>&gt;</code> before your paragraph.</p>'
55
+ },
56
+ {
57
+ menuName: 'Lists',
58
+ data: '<p>Markdown supports both ordered and unordered lists. To create an ordered list, simply prefix each line with a number (any number will do &mdash; this is why the editor only uses one number.) To create an unordered list, you can prefix each line with <code>*</code>, <code>+</code> or <code>-</code>.</p> List items can contain multiple paragraphs, however each paragraph must be indented by at least 4 spaces or a tab.'
59
+ },
60
+ {
61
+ menuName: 'Code Blocks',
62
+ data: '<p>Markdown wraps code blocks in pre-formatted tags to preserve indentation in your code blocks. To create a code block, indent the entire block by at least 4 spaces or one tab. Markdown will strip the extra indentation you&rsquo;ve added to the code block.</p>'
63
+ },
64
+ {
65
+ menuName: 'Horizontal Rules',
66
+ data: 'Horizontal rules are created by placing three or more hyphens, asterisks or underscores on a line by themselves. Spaces are allowed between the hyphens, asterisks or underscores.'
67
+ }
68
+ ]
69
+ },
70
+
71
+ {
72
+ menuName: 'Span Elements',
73
+ content: [
74
+ {
75
+ menuName: 'Links',
76
+ data: '<p>Markdown has two types of links: <strong>inline</strong> and <strong>reference</strong>. For both types of links, the text you want to display to the user is placed in square brackets. For example, if you want your link to display the text &ldquo;GitHub&rdquo;, you write <code>[GitHub]</code>.</p><p>To create an inline link, create a set of parentheses immediately after the brackets and write your URL within the parentheses. (e.g., <code>[GitHub](http://github.com/)</code>). Relative paths are allowed in inline links.</p><p>To create a reference link, use two sets of square brackets. <code>[my internal link][internal-ref]</code> will link to the internal reference <code>internal-ref</code>.</p>'
77
+ },
78
+
79
+ {
80
+ menuName: 'Emphasis',
81
+ data: '<p>Asterisks (<code>*</code>) and underscores (<code>_</code>) are treated as emphasis and are wrapped with an <code>&lt;em&gt;</code> tag, which usually displays as italics in most browsers. Double asterisks (<code>**</code>) or double underscores (<code>__</code>) are treated as bold using the <code>&lt;strong&gt;</code> tag. To create italic or bold text, simply wrap your words in single/double asterisks/underscores. For example, <code>**My double emphasis text**</code> becomes <strong>My double emphasis text</strong>, and <code>*My single emphasis text*</code> becomes <em>My single emphasis text</em>.</p>'
82
+ },
83
+
84
+ {
85
+ menuName: 'Code',
86
+ data: '<p>To create inline spans of code, simply wrap the code in backticks (<code>`</code>). Markdown will turn <code>`myFunction`</code> into <code>myFunction</code>.</p>'
87
+ },
88
+
89
+ {
90
+ menuName: 'Images',
91
+ data: '<p>Markdown image syntax looks a lot like the syntax for links; it is essentially the same syntax preceded by an exclamation point (<code>!</code>). For example, if you want to link to an image at <code>http://github.com/unicorn.png</code> with the alternate text <code>My Unicorn</code>, you would write <code>![My Unicorn](http://github.com/unicorn.png)</code>.</p>'
92
+ }
93
+ ]
94
+ },
95
+
96
+ {
97
+ menuName: 'Miscellaneous',
98
+ content: [
99
+ {
100
+ menuName: 'Automatic Links',
101
+ data: '<p>If you want to create a link that displays the actual URL, markdown allows you to quickly wrap the URL in <code>&lt;</code> and <code>&gt;</code> to do so. For example, the link <a href="javascript:void(0);">http://github.com/</a> is easily produced by writing <code>&lt;http://github.com/&gt;</code>.</p>'
102
+ },
103
+
104
+ {
105
+ menuName: 'Escaping',
106
+ data: '<p>If you want to use a special Markdown character in your document (such as displaying literal asterisks), you can escape the character with the backslash (<code>\\</code>). Markdown will ignore the character directly after a backslash.'
107
+ },
108
+
109
+ {
110
+ menuName: 'Emoji',
111
+ data: '<p>Gollum uses <a href="https://joypixels.com/emoji/v4" target="_blank">JoyPixels 4</a> for its emoji. To include one, wrap the emoji name in colons and use underscores instead of spaces (e.g. :heart: or :point_up:).</p>'
112
+ }
113
+ ]
114
+ }
115
+ ];
116
+
117
+ $.GollumEditor.defineHelp('markdown', MarkDownHelp);
118
+
119
+ })(jQuery);
@@ -0,0 +1,122 @@
1
+ /**
2
+ * MediaWiki Language Definition
3
+ * See default.js for documentation
4
+ *
5
+ */
6
+
7
+ (function($) {
8
+
9
+ // No need to set all the replacements, only those different from the default language (Markdown).
10
+ var MediaWiki = {
11
+
12
+ 'function-bold' : {
13
+ replace: "'''$1'''$2"
14
+ },
15
+
16
+ 'function-italic' : {
17
+ replace: "''$1''$2"
18
+ },
19
+ 'function-hr' : {
20
+ append: "\n---\n"
21
+ },
22
+
23
+ 'function-code' : {
24
+ replace: "<code>$1</code>$2"
25
+ },
26
+ 'function-ol' : {
27
+ link: function ( index, line) {
28
+ return '# ' + line + "\n";
29
+ }
30
+ },
31
+ 'function-blockquote' : {
32
+ replace: "<blockquote>\n$1$2\n</blockquote>",
33
+ },
34
+
35
+ 'function-h1' : {
36
+ replace: "= $1$2 =",
37
+ },
38
+
39
+ 'function-h2' : {
40
+ replace: "== $1$2 ==",
41
+ },
42
+
43
+ 'function-h3' : {
44
+ replace: "=== $1$2 ===",
45
+ },
46
+
47
+ 'function-link' : {
48
+ replace: function( res ) {
49
+ var rep = '';
50
+ if ( res['text'] && res['href'] ) {
51
+ rep = '[' + res['href'] + ' | ' + res['text'] + ']';
52
+ }
53
+ return rep;
54
+ }
55
+ }
56
+ };
57
+
58
+ $.GollumEditor.defineLanguage('mediawiki', $.constructLanguageDefinition(MediaWiki));
59
+
60
+
61
+ var MediaWikiHelp = [
62
+ {
63
+ menuName: 'Text Formatting',
64
+ content: [
65
+ {
66
+ menuName: 'Headers',
67
+ data: '<p>MediaWiki headers are written with different indentation using <code>= Title =</code> (equals sign). MediaWiki supports headings 1-6.</p>'
68
+ },
69
+ {
70
+ menuName: 'Bold / Italic',
71
+ data: "<p>To display text as <strong>bold</strong>, wrap the text in <code>'''</code>. To display text as <em>italic</em>, wrap the text in <code>''</code>. To create <code>monospace</code> text, wrap the text in <code>&lt;code&gt;&lt;/code&gt;</code>."
72
+ },
73
+ {
74
+ menuName: 'Special Characters',
75
+ data: '<p>Use HTML special characters, e.g. <code>&copy;</code> or <code>&euro;</code></p>'
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ menuName: 'Blocks',
81
+ content: [
82
+ {
83
+ menuName: 'Paragraphs',
84
+ data: '<p>MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <code><br /></code>.</p>'
85
+ },
86
+ {
87
+ menuName: 'Tables',
88
+ data: '<p>Tables may be authored in wiki pages using either XHTML table elements directly, or using wikicode formatting to define the table. Wikitable syntax overview: ' +
89
+ '<table cellpadding="5" cellspacing="0" border="1">' +
90
+ '<tr><td><pre> <code>{|</code></pre>' +
91
+ '</td><td><b>table start</b></td></tr>' +
92
+ '<tr><td><pre> <code>|+</code></pre></td>' +
93
+ '<td>table <b>caption,</b> <i>optional;</i> only between <b>table start</b> and first <b>table row</b></td></tr>' +
94
+ '<tr><td><pre> <code>|-</code></pre></td>' +
95
+ '<td><b>table row,</b> <i>optional on first row</i> -- wiki engine assumes the first row</td></tr>' +
96
+ '<tr><td><pre> <code>!</code></pre></td>' +
97
+ '<td><b>table header</b> cell, <i>optional.</i> Consecutive <b>table header</b> cells may be added on same line separated by double marks (<code>!!</code>) or start on new lines, each with its own single mark (<code>!</code>).</td></tr>' +
98
+ '<tr><td><pre> <code>|</code></pre></td>' +
99
+ '<td><b>table data</b> cell, <i>required!</i> Consecutive <b>table data</b> cells may be added on same line separated by double marks (<code>||</code>) or start on new lines, each with its own single mark (<code>|</code>).</td></tr>' +
100
+ '<tr><td><pre> <code>|}</code></pre></td>' +
101
+ '<td><b>table end</b></td></tr></table></p>'
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ menuName: 'Macros',
107
+ content: [
108
+ {
109
+ menuName: 'Links',
110
+ data: '<p>To create links to external pages, use single brackets, e.g. <code>[https://mediawiki.org MediaWiki]</code>. Internal links use double brackets: <code>[[Main Page]]</code>. To define the link text, use <code>[[Main Page | this is displayed]]</code> (note: the order of the URL/Page Name and the link text is reversed compared to Gollum pages in other markups).</p>'
111
+ },
112
+ {
113
+ menuName: 'Images',
114
+ data: '<p>Use Gollum internal links, e.g. <code>[[sauron.jpg]]<code>, to insert images.'
115
+ }
116
+ ]
117
+ }
118
+ ];
119
+
120
+ $.GollumEditor.defineHelp('mediawiki', MediaWikiHelp);
121
+
122
+ })(jQuery);