Damien Elmes
6a5c397866
add script to rewrite py files
2020-11-17 17:39:48 +10:00
Damien Elmes
8e92b77d08
output strings into ftl files
2020-11-17 15:12:05 +10:00
Damien Elmes
44489a480f
map gettext strings to keys/modules for ftl conversion
2020-11-17 14:11:09 +10:00
Damien Elmes
49f363e6ab
update translations
2020-11-17 09:56:25 +10:00
Damien Elmes
f65f101a16
Merge pull request #825 from hgiesel/mathjax3plus2
...
Switch from jQuery pre 3.0.0 pseudo promises to ES6 promises for ts hooks
2020-11-16 11:44:21 +10:00
Damien Elmes
ed3583b6fe
Merge pull request #826 from abdnh/write-dupes-fix
...
Make dupe search operate on non-stripped text
2020-11-16 11:43:33 +10:00
abdo
358d0f957e
Make dupe search operate on non-stripped text
...
See https://github.com/ankitects/anki/pull/822/
2020-11-16 04:01:04 +03:00
Henrik Giesel
07c183d2c2
Switch from jQuery pre 3.0.0 pseudo promises to ES6 promises
2020-11-16 01:09:59 +01:00
Damien Elmes
54eb554393
Merge pull request #824 from hgiesel/mathjax3plus
...
Improvements to MathJax and ts hooks
2020-11-16 09:19:23 +10:00
Henrik Giesel
435ecc3ae8
Satisfy formatter
2020-11-15 21:40:59 +01:00
Henrik Giesel
a7b5a7efe1
Improve ts hooks to allow for asynchronous actions
...
* reviewer ts hooks may now return a promise, which are then waited upon with Promise.all
* this does not break old ts hooks, as Promise.all allows for non-Promises in its array
2020-11-15 21:16:06 +01:00
Henrik Giesel
4229f21084
Include default MathJax packages
...
* by default load all the default tex-chtml packages, which additionally include:
* require: using \require{package-name} to load a package
* autoload: using a command from a different package automatically loads it
* configmacros: allows for definition of predefined macros
2020-11-15 20:56:50 +01:00
Henrik Giesel
80232f4d33
Load require package in Mathjax
2020-11-15 13:58:51 +01:00
Damien Elmes
9f97baa3e2
Merge branch 'mathjax3'
2020-11-15 20:24:50 +10:00
Damien Elmes
8a80ffe53a
add rule to copy mathjax from node_modules
2020-11-15 20:22:28 +10:00
Damien Elmes
9feccc785f
ignore incorrect clock in dev mode
2020-11-15 18:29:16 +10:00
Damien Elmes
e9fdb5600c
use ring on Linux; native-tls on other platforms
...
Python wheels on Linux require statically linked SSL libraries.
We were previously relying on the native-tls-vendored feature in
reqwest, but that does not work with Bazel, as openssl-src makes
assumptions that break when sandboxed. The static libs distributed
by distros like Ubuntu fail to link, and while we could potentially
build OpenSSL ourselves, we'd then need to keep it up to
date.
On Windows and Mac however, native-tls is preferable to ring, as it
allows us to get free updates from the OS, and results in
a smaller library.
Rust currently only supports platform-specific features in nightly,
and cargo-raze does not have support for them, so we currently need
to override the generated build file with a hand-crafted one that
specifies the relative features/deps for each platform.
update.py has been updated to automatically keep the version numbers
in this file up to date, so it should hopefully not prove too hard to
maintain going forward.
2020-11-15 15:25:28 +10:00
Damien Elmes
4bf93a9af0
add native-tls in preparation for Linux-only ring
2020-11-15 14:02:53 +10:00
Damien Elmes
a0c658621b
update Rust deps
2020-11-15 13:31:24 +10:00
Henrik Giesel
afc7bdf642
Add Mathjax filegroup
2020-11-14 14:14:25 +01:00
Henrik Giesel
6104ea26fb
Remove @types/mathjax as it is for MathJax 2
2020-11-14 14:14:25 +01:00
Henrik Giesel
aa44d64513
Add moving MathJax3 into mathjax directory to build process
2020-11-14 14:14:25 +01:00
Henrik Giesel
6d4ff1212d
Rip out MathJax 2 and setup MathJax 3 environment
2020-11-14 14:14:25 +01:00
Henrik Giesel
c5cfbfa1ab
Update MathJax2 config to MathJax3 config
...
Used: https://mathjax.github.io/MathJax-demos-web/convert-configuration/convert-configuration.html
2020-11-14 14:14:25 +01:00
Damien Elmes
f8a9df2c8d
update rules_rust
2020-11-14 22:15:43 +10:00
Damien Elmes
8e93b0ee38
use full path in backend_pb2 import
2020-11-13 14:21:21 +10:00
Damien Elmes
52ca4ab854
audio doc updates
...
[skip ci]
2020-11-13 09:14:12 +10:00
Damien Elmes
410987f0a6
relative js package paths
2020-11-12 21:07:59 +10:00
Damien Elmes
b71f55dcc5
make 'bazel run ts:format' work
...
We're cheating a bit by having it fix files in qt's data folder
as well, but this makes it easier to share the config file.
2020-11-12 20:49:00 +10:00
Damien Elmes
5bb3d7c114
format_fix -> format; rename svelte-check for consistency
2020-11-12 20:19:32 +10:00
Damien Elmes
bd6fb9b234
cleaning note is not specific to Windows
2020-11-12 20:06:35 +10:00
Damien Elmes
0489c92908
drop El Capitan support
2020-11-12 20:03:41 +10:00
Damien Elmes
eed9ca9885
export runtime js licenses
2020-11-12 20:03:41 +10:00
Damien Elmes
2b9d3a808d
update ts deps
2020-11-12 20:03:41 +10:00
Damien Elmes
7efcc2d5d6
dump pypi licenses of runtime deps
2020-11-12 20:03:41 +10:00
Damien Elmes
2897707263
update Python deps
2020-11-12 20:03:41 +10:00
Damien Elmes
b0aedd6c76
orjson was missing from dep list; drop 32 bit compat
2020-11-12 20:03:41 +10:00
Damien Elmes
835c29f8ca
dump crate licenses as part of update run
2020-11-12 20:03:41 +10:00
Damien Elmes
1b3922d6a5
rs dep updates
2020-11-12 20:03:41 +10:00
Damien Elmes
113e862084
Merge pull request #820 from abdnh/patch-1
...
Update Windows docs
2020-11-12 13:57:03 +10:00
abdo
1d5b2df196
Update Windows docs
...
See https://github.com/ankitects/anki/pull/819/
2020-11-12 04:01:08 +03:00
Damien Elmes
e0550b6084
update translations
2020-11-12 08:55:56 +10:00
Damien Elmes
81b9a3194e
fix some unwanted leading space in i18n keys
2020-11-12 08:55:26 +10:00
Damien Elmes
0b06d25375
fix typo
...
[skip ci]
2020-11-11 22:17:37 +10:00
Damien Elmes
8ca023048a
add coding specifier to anki/__init__.py
...
older gettext versions will complain otherwise (was breaking Windows CI)
2020-11-11 21:51:11 +10:00
Damien Elmes
5536ffb343
update qt/ to 3.8 as well
2020-11-11 21:37:36 +10:00
Damien Elmes
0fcccae6e8
Merge pull request #817 from cecini/formatcheck
...
Update mypy and black format check to python version 3.8
2020-11-11 21:36:32 +10:00
Damien Elmes
adbef730a6
ensure repos.bzl is up to date at end of run
2020-11-11 21:26:47 +10:00
Damien Elmes
cb69ee9d09
update translations
2020-11-11 21:23:38 +10:00
Damien Elmes
64fffd1bfc
add option to skip pot update; update sha1 after commit
2020-11-11 21:23:27 +10:00