mathjax-rails-3 3.2.2.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 (134) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.travis.yml +9 -0
  4. data/CHANGELOG.md +14 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +148 -0
  8. data/Rakefile +6 -0
  9. data/lib/mathjax/rails/controllers.rb +23 -0
  10. data/lib/mathjax/rails/helpers.rb +11 -0
  11. data/lib/mathjax/rails/mime_types.rb +3 -0
  12. data/lib/mathjax/rails/routes.rb +10 -0
  13. data/lib/mathjax/rails/version.rb +7 -0
  14. data/lib/mathjax/rails.rb +5 -0
  15. data/lib/mathjax-rails-3.rb +1 -0
  16. data/mathjax-rails-3.gemspec +23 -0
  17. data/vendor/mathjax/.github/FUNDING.yml +2 -0
  18. data/vendor/mathjax/.github/ISSUE_TEMPLATE/bug_report.md +54 -0
  19. data/vendor/mathjax/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  20. data/vendor/mathjax/.gitignore +2 -0
  21. data/vendor/mathjax/.travis.yml +17 -0
  22. data/vendor/mathjax/CONTRIBUTING.md +314 -0
  23. data/vendor/mathjax/LICENSE +202 -0
  24. data/vendor/mathjax/README.md +237 -0
  25. data/vendor/mathjax/bower.json +11 -0
  26. data/vendor/mathjax/composer.json +14 -0
  27. data/vendor/mathjax/es5/a11y/assistive-mml.js +1 -0
  28. data/vendor/mathjax/es5/a11y/complexity.js +1 -0
  29. data/vendor/mathjax/es5/a11y/explorer.js +1 -0
  30. data/vendor/mathjax/es5/a11y/semantic-enrich.js +1 -0
  31. data/vendor/mathjax/es5/a11y/sre.js +1 -0
  32. data/vendor/mathjax/es5/adaptors/liteDOM.js +1 -0
  33. data/vendor/mathjax/es5/core.js +1 -0
  34. data/vendor/mathjax/es5/input/asciimath.js +1 -0
  35. data/vendor/mathjax/es5/input/mml/entities.js +1 -0
  36. data/vendor/mathjax/es5/input/mml/extensions/mml3.js +1 -0
  37. data/vendor/mathjax/es5/input/mml/extensions/mml3.sef.json +1 -0
  38. data/vendor/mathjax/es5/input/mml.js +1 -0
  39. data/vendor/mathjax/es5/input/tex/extensions/action.js +1 -0
  40. data/vendor/mathjax/es5/input/tex/extensions/all-packages.js +34 -0
  41. data/vendor/mathjax/es5/input/tex/extensions/ams.js +1 -0
  42. data/vendor/mathjax/es5/input/tex/extensions/amscd.js +1 -0
  43. data/vendor/mathjax/es5/input/tex/extensions/autoload.js +1 -0
  44. data/vendor/mathjax/es5/input/tex/extensions/bbox.js +1 -0
  45. data/vendor/mathjax/es5/input/tex/extensions/boldsymbol.js +1 -0
  46. data/vendor/mathjax/es5/input/tex/extensions/braket.js +1 -0
  47. data/vendor/mathjax/es5/input/tex/extensions/bussproofs.js +1 -0
  48. data/vendor/mathjax/es5/input/tex/extensions/cancel.js +1 -0
  49. data/vendor/mathjax/es5/input/tex/extensions/cases.js +1 -0
  50. data/vendor/mathjax/es5/input/tex/extensions/centernot.js +1 -0
  51. data/vendor/mathjax/es5/input/tex/extensions/color.js +1 -0
  52. data/vendor/mathjax/es5/input/tex/extensions/colortbl.js +1 -0
  53. data/vendor/mathjax/es5/input/tex/extensions/colorv2.js +1 -0
  54. data/vendor/mathjax/es5/input/tex/extensions/configmacros.js +1 -0
  55. data/vendor/mathjax/es5/input/tex/extensions/empheq.js +1 -0
  56. data/vendor/mathjax/es5/input/tex/extensions/enclose.js +1 -0
  57. data/vendor/mathjax/es5/input/tex/extensions/extpfeil.js +1 -0
  58. data/vendor/mathjax/es5/input/tex/extensions/gensymb.js +1 -0
  59. data/vendor/mathjax/es5/input/tex/extensions/html.js +1 -0
  60. data/vendor/mathjax/es5/input/tex/extensions/mathtools.js +1 -0
  61. data/vendor/mathjax/es5/input/tex/extensions/mhchem.js +34 -0
  62. data/vendor/mathjax/es5/input/tex/extensions/newcommand.js +1 -0
  63. data/vendor/mathjax/es5/input/tex/extensions/noerrors.js +1 -0
  64. data/vendor/mathjax/es5/input/tex/extensions/noundefined.js +1 -0
  65. data/vendor/mathjax/es5/input/tex/extensions/physics.js +1 -0
  66. data/vendor/mathjax/es5/input/tex/extensions/require.js +1 -0
  67. data/vendor/mathjax/es5/input/tex/extensions/setoptions.js +1 -0
  68. data/vendor/mathjax/es5/input/tex/extensions/tagformat.js +1 -0
  69. data/vendor/mathjax/es5/input/tex/extensions/textcomp.js +1 -0
  70. data/vendor/mathjax/es5/input/tex/extensions/textmacros.js +1 -0
  71. data/vendor/mathjax/es5/input/tex/extensions/unicode.js +1 -0
  72. data/vendor/mathjax/es5/input/tex/extensions/upgreek.js +1 -0
  73. data/vendor/mathjax/es5/input/tex/extensions/verb.js +1 -0
  74. data/vendor/mathjax/es5/input/tex-base.js +1 -0
  75. data/vendor/mathjax/es5/input/tex-full.js +34 -0
  76. data/vendor/mathjax/es5/input/tex.js +1 -0
  77. data/vendor/mathjax/es5/latest.js +1 -0
  78. data/vendor/mathjax/es5/loader.js +1 -0
  79. data/vendor/mathjax/es5/mml-chtml.js +1 -0
  80. data/vendor/mathjax/es5/mml-svg.js +1 -0
  81. data/vendor/mathjax/es5/node-main.js +1 -0
  82. data/vendor/mathjax/es5/output/chtml/fonts/tex.js +1 -0
  83. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
  84. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
  85. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
  86. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
  87. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
  88. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
  89. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
  90. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
  91. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
  92. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
  93. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
  94. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
  95. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
  96. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
  97. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
  98. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
  99. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
  100. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
  101. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
  102. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
  103. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
  104. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
  105. data/vendor/mathjax/es5/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
  106. data/vendor/mathjax/es5/output/chtml.js +1 -0
  107. data/vendor/mathjax/es5/output/svg/fonts/tex.js +1 -0
  108. data/vendor/mathjax/es5/output/svg.js +1 -0
  109. data/vendor/mathjax/es5/sre/mathmaps/base.json +29 -0
  110. data/vendor/mathjax/es5/sre/mathmaps/ca.json +140 -0
  111. data/vendor/mathjax/es5/sre/mathmaps/da.json +140 -0
  112. data/vendor/mathjax/es5/sre/mathmaps/de.json +146 -0
  113. data/vendor/mathjax/es5/sre/mathmaps/en.json +158 -0
  114. data/vendor/mathjax/es5/sre/mathmaps/es.json +140 -0
  115. data/vendor/mathjax/es5/sre/mathmaps/fr.json +146 -0
  116. data/vendor/mathjax/es5/sre/mathmaps/hi.json +146 -0
  117. data/vendor/mathjax/es5/sre/mathmaps/it.json +146 -0
  118. data/vendor/mathjax/es5/sre/mathmaps/nb.json +146 -0
  119. data/vendor/mathjax/es5/sre/mathmaps/nemeth.json +125 -0
  120. data/vendor/mathjax/es5/sre/mathmaps/nn.json +146 -0
  121. data/vendor/mathjax/es5/sre/mathmaps/sv.json +146 -0
  122. data/vendor/mathjax/es5/startup.js +1 -0
  123. data/vendor/mathjax/es5/tex-chtml-full-speech.js +34 -0
  124. data/vendor/mathjax/es5/tex-chtml-full.js +34 -0
  125. data/vendor/mathjax/es5/tex-chtml.js +1 -0
  126. data/vendor/mathjax/es5/tex-mml-chtml.js +1 -0
  127. data/vendor/mathjax/es5/tex-mml-svg.js +1 -0
  128. data/vendor/mathjax/es5/tex-svg-full.js +34 -0
  129. data/vendor/mathjax/es5/tex-svg.js +1 -0
  130. data/vendor/mathjax/es5/ui/lazy.js +1 -0
  131. data/vendor/mathjax/es5/ui/menu.js +1 -0
  132. data/vendor/mathjax/es5/ui/safe.js +1 -0
  133. data/vendor/mathjax/package.json +59 -0
  134. metadata +193 -0
@@ -0,0 +1,314 @@
1
+ # Contributing to MathJax
2
+
3
+ You are interested in giving us a hand? That's awesome! We've put
4
+ together some brief guidelines that should help you get started
5
+ quickly and easily.
6
+
7
+ There are lots and lots of ways to get involved, this document covers:
8
+
9
+ * [reporting an issue](#reporting-an-issue)
10
+ * [bug reports](#bug-reports)
11
+ * [feature requests](#feature-requests)
12
+ * [change requests](#change-requests)
13
+ * [working on MathJax core](#working-on-mathjax-core)
14
+ * [key branches and tags](#key-branches--tags)
15
+ * [submitting pull requests](#submitting-pull-requests)
16
+ * [testing and quality assurance](#testing-and-quality-assurance)
17
+ * [writing documentation](#writing-documentation)
18
+ * [translation](#translation)
19
+ * [Conduct](#conduct)
20
+
21
+
22
+ ## Reporting An Issue
23
+
24
+ If you're about to raise an issue because you think you've found a
25
+ problem with MathJax, or you'd like to make a request for a new
26
+ feature in the codebase, or any other reason, please read this first.
27
+
28
+ The [MathJax issue
29
+ tracker](https://github.com/mathjax/MathJax/issues) is the
30
+ preferred channel for [bug reports](#bug-reports), [feature
31
+ requests](#feature-requests), [change requests](#change-requests), and
32
+ [submitting pull requests](#submitting-pull-requests), but please
33
+ respect the following restrictions:
34
+
35
+ * Please **search for existing issues**. Help us keep duplicate issues
36
+ to a minimum by checking to see if someone has already reported your
37
+ problem or requested your idea.
38
+
39
+ * Please **do not** use the issue tracker for personal support
40
+ requests (use [the MathJax User Group](https://groups.google.com/forum/#!forum/mathjax-users)).
41
+
42
+ * Please **be civil**. Keep the discussion on topic and respect the
43
+ opinions of others. See also our [Conduct Guidelines](#conduct)
44
+
45
+ ### Bug Reports
46
+
47
+ A bug is a *demonstrable problem* that is caused by the code in the
48
+ repository. Good bug reports are extremely helpful — thank you!
49
+
50
+ Guidelines for bug reports:
51
+
52
+ 1. **Use the GitHub issue search** — check if the issue has already been
53
+ reported.
54
+
55
+ 2. **Check if the issue has been fixed** — look for [closed
56
+ issues in the current
57
+ milestone](https://github.com/mathjax/MathJax/issues?q=is%3Aclosed)
58
+ or try to reproduce it using the latest `develop` branch. Please
59
+ note that you will need to
60
+ [compile MathJax and make the components](https://docs.mathjax.org/en/latest/web/hosting.html#getting-mathjax-via-git)
61
+ in order to test MathJax from the source repository.
62
+
63
+ 3. **Share a live sample of the problem** — without a live page
64
+ it is usually impossible to debug problems; see also the [Bug Report
65
+ Template](#template) below.
66
+
67
+ 4. **Isolate the problem** — a live sample is a starting point
68
+ but if you want to speed things up, create a [reduced test
69
+ case](https://css-tricks.com/reduced-test-cases/). Be specific
70
+ about your setup (browser, OS versions, etc). Use services like
71
+ [jsbin](http://jsbin.com), [CodePen](http://codepen.io), or
72
+ [jsFiddle](http://jsfiddle.com) to make collaboration on minimal
73
+ test cases easier for everyone.
74
+
75
+ 5. **Include a screenshot/cast as a last resort** — Is your
76
+ issue about a layout or design feature or bug that is hard to reproduce
77
+ or isolate? Then please provide a screenshot or screencast. Tools
78
+ like [LICEcap](http://www.cockos.com/licecap/) or
79
+ [SauceLabs](http://www.saucelabs.com) allow you to quickly and
80
+ easily record a screencasts. If you make it an animated gif, you can
81
+ embed it directly into your GitHub issue.
82
+
83
+ 6. Use the [Bug Report Template](#template) below or [click this
84
+ link](https://github.com/MathJax/MathJax/issues/new?title=Bug%3A&body=%23%23%23%20Issue%20Summary%0A%0A%23%23%23%20Steps%20to%20Reproduce%0A%0A1.%20This%20is%20the%20first%20step%0A%0AThis%20is%20a%20bug%20because...%0A%0A%23%23%23%20Technical%20details%0A%0A*%20MathJax%20Version%3A%20master%20-%20latest%20commit%3A%20%20INSERT%20COMMIT%20REF%0A*%20Client%20OS%3A%20%0A*%20Browser%3A%20%0A*%20)
85
+ to start creating a bug report with the template automatically.
86
+
87
+ A good bug report shouldn't leave others needing to request
88
+ more information from you. Be sure to include the details of your environment.
89
+
90
+ <a id="template"></a>
91
+
92
+ Template Example ([click to use](https://github.com/MathJax/MathJax/issues/new?title=Bug%3A&body=%23%23%23%20Issue%20Summary%0A%0A%23%23%23%20Steps%20to%20Reproduce%0A%0A1.%20This%20is%20the%20first%20step%0A%0AThis%20is%20a%20bug%20because...%0A%0A%23%23%23%20Technical%20details%0A%0A*%20MathJax%20Version%3A%20master%20-%20latest%20commit%3A%20%20INSERT%20COMMIT%20REF%0A*%20Client%20OS%3A%20%0A*%20Browser%3A%20%0A*%20)):
93
+
94
+ ```
95
+ Short and descriptive example bug report title
96
+
97
+ ### Issue Summary
98
+
99
+ A summary of the issue and the browser/OS environment in which it occurs. If
100
+ suitable, include the steps required to reproduce the bug.
101
+
102
+ ### Steps to Reproduce
103
+
104
+ 1. This is the first step
105
+ 2. This is the second step
106
+ 3. Further steps, etc.
107
+
108
+ Any other information you want to share that is relevant to the issue
109
+ being reported. Especially, why do you consider this to be a bug? What
110
+ do you expect to happen instead?
111
+
112
+ ### Technical details:
113
+
114
+ * MathJax Version: 2.3 (latest commit: f3aaf3a2a3e964df2770dc4aaaa9c87ce5f47e2c)
115
+ * Client OS: Mac OS X 10.8.4
116
+ * Browser: Chrome 29.0.1547.57
117
+ ```
118
+
119
+
120
+ ### Feature Requests
121
+
122
+ Feature requests are welcome. Before you submit one, be sure to have:
123
+
124
+ 1. **Used the GitHub search** to check that the feature hasn't already
125
+ been requested.
126
+ 2. Take a moment to think about whether your idea fits with the scope
127
+ and aims of the project, or if it might better fit being a [custom
128
+ extension](https://github.com/mathjax/MathJax-third-party-extensions).
129
+ 3. Remember, it's up to *you* to make a strong case to convince the
130
+ project's leaders of the merits of this feature. Please provide as
131
+ much detail and context as possible, this means explaining the use
132
+ case and why it is likely to be common.
133
+
134
+ ### Change Requests
135
+
136
+ Change requests cover both architectural and functional changes to how
137
+ MathJax works. If you have an idea for a new or different dependency,
138
+ a refactor, or an improvement to a feature, etc., please be sure to:
139
+
140
+ 1. **Use the GitHub search** to check that someone else didn't get there first.
141
+ 2. Take a moment to think about the best way to make a case for, and
142
+ explain what you're thinking. Are you sure this shouldn't really be
143
+ a [bug report](#bug-reports) or a [feature
144
+ request](#feature-requests)? Is it really one idea or is it many?
145
+ What's the context? What problem are you solving? Why is what you
146
+ are suggesting better than what's already there?
147
+
148
+ ## Working on MathJax core
149
+
150
+ You want to contribute code? We describe how below. First, note that
151
+ the MathJax source code is in the
152
+ <https://github.com/mathjax/MathJax-src> repository, not the
153
+ <https://github.com/mathjax/MathJax> repository, which contains the
154
+ packaged component files for distribution on CDNs and the [mathjax npm
155
+ package](https://www.npmjs.com/package/mathjax) (the source code is
156
+ included in the [mathjax-full npm
157
+ package](https://www.npmjs.com/package/mathjax-full)).
158
+
159
+ ### Key Branches & Tags
160
+
161
+ MathJax uses several permanent branches in the [MathJax source repository](https://github.com/mathjax/MathJax-src):
162
+
163
+ - **[develop](https://github.com/mathjax/MathJax-src/tree/develop)**
164
+ is the development branch. All work on the next release happens here
165
+ so you should generally branch off `develop` if you are going to
166
+ submit a pull request. Do **NOT** use this branch for a production
167
+ site.
168
+
169
+ - **[master](https://github.com/mathjax/MathJax-src)** contains the latest
170
+ release of MathJax. This branch may be used in production. Do
171
+ **NOT** use this branch to work on MathJax's source.
172
+
173
+ These branches reflect version 3 of MathJax, which is substantially
174
+ different from the version 2 codebase. Version 2 will continue to be
175
+ maintained while web sites transition to version 3, with work being
176
+ done using the following branches in the [MathJax distribution
177
+ repository](https://github.com/mathjax/MathJax):
178
+
179
+ - **[legacy-v2-develop](https://github.com/mathjax/MathJax/tree/legacy-v2-develop)**
180
+ is the development branch for changes to the legacy version 2 code.
181
+ Any pull requests for version 2 should be branched from here. Do
182
+ **NOT** use this branch for a production site.
183
+
184
+ - **[legacy-v2](https://github.com/mathjax/MathJax/tree/legacy-v2)**
185
+ is the branch that contains any updates to version 2 following
186
+ the release of version 3. Do **NOT** use this branch to work on
187
+ MathJax's source.
188
+
189
+ In addition to these branches, MathJax uses tags to identify the
190
+ various versions. These can be checked out to obtain the specified
191
+ release; for example, `git checkout 2.7.5` would get you the files for
192
+ version 2.7.5 of MathJax.
193
+
194
+ Note that version 3 is written in Typescript, and so must be compiled
195
+ to obtain usable javascript files, and that the components need to be
196
+ built once that is done. See the
197
+ [documentation](https://docs.mathjax.org/en/latest/web/hosting.html#getting-mathjax-via-git)
198
+ for details. For version 2, the source javascript files are not
199
+ compressed until a release is made, so you should use the copies in
200
+ the `unpacked` directory during development.
201
+
202
+
203
+ ### Submitting Pull Requests
204
+
205
+ Pull requests are welcome. If you're looking to submit a PR for
206
+ something that doesn't have an open issue, please consider [raising an
207
+ issue](#reporting-an-issue) that your PR can close, especially if
208
+ you're fixing a bug. This makes it more likely that there will be
209
+ enough information available for your PR to be properly tested and
210
+ merged.
211
+
212
+ ##### Need Help?
213
+
214
+ If you're not completely clear on how to submit/update/*do* Pull
215
+ Requests, please check out our [source control
216
+ policies](https://github.com/mathjax/MathJax/wiki/Source-control-policies). For
217
+ more insights, check the excellent in depth [Git Workflow
218
+ guide](https://github.com/TryGhost/Ghost/wiki/Git-Workflow) from
219
+ Ghost, in particular
220
+
221
+ * [Ghost Workflow guide: commit messages](https://github.com/TryGhost/Ghost/wiki/Git-workflow#commit-messages)
222
+
223
+ ### Testing and Quality Assurance
224
+
225
+ If you're
226
+ looking to get involved with the code base and don't know where to
227
+ start, checking out and testing a pull request is one of the most
228
+ useful things you could do.
229
+
230
+ These are some [excellent
231
+ instructions](https://gist.github.com/piscisaureus/3342247) on
232
+ configuring your GitHub repository to allow you to checkout pull
233
+ requests in the same way as branches.
234
+
235
+
236
+ ### Writing documentation
237
+
238
+ MathJax's main documentation can be found at [docs.mathjax.org](http://docs.mathjax.org).
239
+ The source of the docs is hosted in the
240
+ [mathjax/MathJax-docs](http://github.com/mathjax/MathJax-docs) repo here on GitHub.
241
+
242
+ The documentation is generated using
243
+ [Sphinx-doc](http://sphinx-doc.org/) and hosted on [Read the
244
+ docs](http://readthedocs.org). You can clone the repo and submit pull
245
+ requests following the [pull-request](#submitting-pull-requests)
246
+ guidelines.
247
+
248
+
249
+ ### Translation
250
+
251
+ If you wish to add or update translations of MathJax, please do it on
252
+ [TranslateWiki.net](https://translatewiki.net/w/i.php?title=Special:Translate&group=out-mathjax-0-all)
253
+ (and while you're there you can help other open source projects,
254
+ too).
255
+
256
+ For bug reports and other questions that don't fit on
257
+ TranslateWiki.net, head over to the
258
+ [mathjax/mathjax-i18n](https://github.com/mathjax/MathJax-i18n)
259
+ repository.
260
+
261
+ The translation files currently are for version 2, as localization
262
+ hasn't been added to version 3 yet.
263
+
264
+ ## Conduct
265
+
266
+ As a NumFOCUS fiscally sponsored project, MathJax is governed by the
267
+ [NumFOCUS code of conduct](https://numfocus.org/code-of-conduct),
268
+ which we summarize as follows:
269
+
270
+ We are committed to providing a friendly, safe and welcoming
271
+ environment for all, regardless of gender, sexual orientation,
272
+ disability, ethnicity, religion, or similar personal characteristic.
273
+
274
+ Please be kind and courteous. There's no need to be mean or rude.
275
+ Respect that people have differences of opinion and that every design
276
+ or implementation choice carries a trade-off and numerous costs. There
277
+ is seldom a right answer, merely an optimal answer given a set of
278
+ values and circumstances.
279
+
280
+ Please keep unstructured critique to a minimum. If you have solid
281
+ ideas you want to experiment with, make a fork and see how it works.
282
+
283
+ We will exclude you from interaction if you insult, demean or harass
284
+ anyone. That is not welcome behaviour. We interpret the term
285
+ "harassment" as including the definition in the [Unacceptable
286
+ Behavior](https://numfocus.org/code-of-conduct#unacceptable-behavior)
287
+ section of the [NumFOCUS code of
288
+ conduct](https://numfocus.org/code-of-conduct); if you have any lack
289
+ of clarity about what might be included in that concept, please read
290
+ that definition. In particular, we don't tolerate behavior that
291
+ excludes people in socially marginalized groups.
292
+
293
+ Private harassment is also unacceptable. No matter who you are, if you
294
+ feel you have been or are being harassed or made uncomfortable by a
295
+ community member, please contact one of the channel ops or any of the
296
+ [MathJax](https://github.com/MathJax/MathJax) core team
297
+ immediately. Whether you're a regular contributor or a newcomer, we
298
+ care about making this community a safe place for you and we've got
299
+ your back.
300
+
301
+ Likewise any spamming, trolling, flaming, baiting, or other
302
+ attention-stealing behaviour is not welcome.
303
+
304
+ We also recommend that you read [discourse's
305
+ rules](http://blog.discourse.org/2013/03/the-universal-rules-of-civilized-discourse/)
306
+ for further suggestions on appropriate behavior.
307
+
308
+ ## References
309
+
310
+ * We heavily borrowed from Mozilla and Ghost -- thank you!
311
+ * <https://github.com/TryGhost/Ghost/blob/master/CONTRIBUTING.md>
312
+ * <https://github.com/mozilla/rust/wiki/Note-development-policy>
313
+ * <https://github.com/jden/CONTRIBUTING.md/blob/master/CONTRIBUTING.md>
314
+ * <http://blog.discourse.org/2013/03/the-universal-rules-of-civilized-discourse/>
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.