Commit Graph

76 Commits

Author SHA1 Message Date
Discourse Translator Bot dd6f836dc1
Update translations (#29) 2021-02-23 14:16:40 +01:00
Discourse Translator Bot ccd0f2d03b
Update translations (#27) 2021-02-09 14:48:07 +01:00
Joffrey JAFFEUX eb335efe8e
DEV: prettier 2.2.1 (#26) 2021-01-27 10:36:08 +01:00
Discourse Translator Bot a369cdbb90
Update translations (#25) 2021-01-26 14:49:06 +01:00
discoursebot 7cb4044c7f
DEV: Update CI workflows (#23)
Co-authored-by: justindirose <justindirose@users.noreply.github.com>
2021-01-04 14:17:18 -06:00
Discourse CI ad1f1f2d9e DEV: Update CI workflows 2020-11-15 16:09:48 +00:00
Discourse CI 6e95dbb62d DEV: Update CI workflows 2020-10-14 16:27:51 +00:00
jjaffeux 6367e2b5fb Revert "DEV: enforces no-var (#22)"
This reverts commit eecb13b486.
2020-10-13 15:41:08 +02:00
Joffrey JAFFEUX eecb13b486
DEV: enforces no-var (#22) 2020-10-13 11:36:21 +02:00
Discourse CI ce9b3086ad DEV: Update CI workflows 2020-10-12 08:16:48 +00:00
Discourse CI 45dd10e964 DEV: Update CI workflows 2020-10-09 19:03:17 +00:00
Discourse CI 8f4d6b223c DEV: Update CI workflows 2020-10-09 16:15:03 +00:00
Discourse CI d8df77564e DEV: Update CI workflows 2020-10-09 15:09:50 +00:00
Discourse Translator Bot e1383c8e02 Update translations 2020-10-06 15:19:43 +02:00
Discourse Translator Bot 43fcde629b Update translations 2020-09-16 10:19:08 +00:00
Joffrey JAFFEUX e3068bb476
DEV: apply coding standards (#20) 2020-09-04 13:22:43 +02:00
Discourse Translator Bot 926fbdbb3d Update translations 2020-08-11 13:04:51 +00:00
Penar Musaraj 39a4e4b71e
UX: Use CSS custom properties for colors 2020-08-06 11:01:34 -04:00
Discourse Translator Bot 8f725a7a0e Update translations 2020-08-05 13:28:58 +00:00
Discourse Translator Bot 6b02939213 DEV: Switch from Transifex to Crowdin 2020-07-16 14:01:01 +02:00
Robin Ward 08c8a94f7e Remove deprecation 2020-07-06 14:49:01 -04:00
Neil Lalonde fd55ad7233
Update translations 2020-06-24 11:41:30 -04:00
jjaffeux 3c6279b90a DEV: Move to rubocop-discourse. 2020-05-06 18:22:54 +02:00
Neil Lalonde 92cc3d6733
Update translations 2020-05-04 10:50:02 -04:00
Joe 5233654fd2
FIX: ensures wide equations are responsive on Safari
This commit ensures that wide equations can be scrolled on Safari. It previously failed because Safari doesn't not support the two value overflow shorthand.
2020-03-06 07:34:46 +08:00
Neil Lalonde cdf7a1a6f9 Update translations 2020-02-13 15:06:01 -05:00
Neil Lalonde 36ea40940e Update translations 2020-01-20 11:22:00 -05:00
Neil Lalonde 6b550336cd Update translations 2019-12-19 12:51:02 -05:00
Daniel Hollas 03ec5c0443 FEATURE: Update KaTeX renderer to v0.11.1 (#18)
Mostly bug fixes and couple new features.
This version is now live on khanacademy.org
2019-12-04 17:32:31 +11:00
Neil Lalonde 586c283506 Update translations 2019-11-06 10:46:50 -05:00
Neil Lalonde 9e00b8e47e Update translations 2019-10-10 11:26:13 -04:00
Joe 595fc8675b FIX: don't wrap inline math (#17)
* adds CSS classes for styling

* don't wrap inline-math

* adds comment about selectors
2019-09-10 14:56:59 +10:00
Joe 9615034d78 FEATURE: Responsive equations (#16)
* adds class to math containers for styling
* adds responsive styles
2019-09-09 15:08:01 +10:00
Neil Lalonde 59123ce98b Update translations 2019-07-15 14:02:00 -04:00
Penar Musaraj 23ab984862 Add id to decorateCooked API call for KaTeX as well 2019-06-20 15:47:00 -04:00
Penar Musaraj e509c6f6e4 Add id to decorateCooked API call 2019-06-20 10:14:57 -04:00
Neil Lalonde 6128f07d01 Update translations 2019-06-17 13:57:54 -04:00
Penar Musaraj 024ea27fb9 Run Prettier 2019-06-14 13:28:18 -04:00
Penar Musaraj 9810a98d21 One more eslint fix 2019-06-14 12:50:17 -04:00
Penar Musaraj 25a65eacc9 Fix eslint 2019-06-14 12:47:22 -04:00
Neil Lalonde 19b241f69a Update translations 2019-05-30 11:32:06 -04:00
Guo Xiang Tan c3eac34afc Add frozen string literal comment to files. 2019-05-13 10:48:15 +08:00
Neil Lalonde 2e62867df2 Update translations 2019-04-05 10:15:46 -04:00
Neil Lalonde e6ec5d4fd7 Update translations 2019-03-11 14:04:46 -04:00
Daniel Hollas dce1a1b0a1 FEATURE: Add KaTeX rendering support (#15)
* FEATURE: Add KaTeX in-browser rendering support.

* Remove ttf fonts from KaTeX

* Update KaTeX to v0.10.1, fix paths to fonts.

Font loading was fixed by rebuilding KaTeX
and specifiying absolute paths to fonts in CSS:
Steps to build KaTeX:

1. `git clone https://github.com/KaTeX/KaTeX.git && cd KaTeX`
    `git submodule update --init --recursive`

2. Change paths to fonts:
    `sed -ri 's/@font-folder.+$/@font-folder:
"\/plugins\/discourse-math\/katex\/fonts";/'
submodules/katex-fonts/fonts.less`

3. Disable TTF fonts:
   `export USE_TTF=false`
    Alternatively, we could modify `.browserslistrc` to match what
Discourse supports

3. Build KaTeX
   `yarn && yarn builld`

4. Copy `katex.min.js` and `katex.min.css` from `dist/` to
`discourse-math/public/katex/`

5. Update fonts, copy woff and woff2 files from
`submodules/katex-fonts/fonts`

* Minor copy edit to settings

Mark MathKJax only settings

* Add Mhchem extension for KaTeX.

It is already automatically loaded for MathJaX.
2019-03-05 07:35:00 +11:00
Neil Lalonde 41341b552c Update translations 2019-01-31 16:36:43 -05:00
Gerhard Schlager 1f738e9faf Inherit rubocop config from discourse repo 2018-12-03 00:37:09 +01:00
Neil Lalonde 50595b758b Update translations 2018-11-29 11:08:54 -05:00
Kyle Zhao d98bc41f18 FIX: configure mathjax to use CDN (#14) 2018-11-22 09:11:53 +11:00
David Taylor 199c8387a1 DEV: Apply prettier 2018-10-22 19:49:32 +01:00