Commit Graph

1062 Commits

Author SHA1 Message Date
ylemkimon
7f7d063e73 chore(package): update file-loader to version 2.0.0 (#1697) 2018-09-04 21:55:46 -04:00
greenkeeper[bot]
a88310e51d chore(package): update style-loader to version 0.23.0 (#1668)
* chore(package): update style-loader to version 0.23.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-09-04 09:06:52 +09:00
ylemkimon
49017ad36b Improve & fix CircleCI scripts (#1658)
* Improve CircleCI scripts

* Upgrade to [CircleCI 2.1 
configuration](https://github.com/CircleCI-Public/config-preview-sdk)
  * Use reusable commands and jobs with parameters, instead of aliases
* Upgrade Yarn before installing dependencies, if needed: fixes issue 
#1648, which is caused by yarnpkg/yarn#5723
* Skip Flow, Jest, and coverage report upload if only website and 
documentation are changed: fixes #1655
* Add Codecov flags: https://docs.codecov.io/docs/flags
* Set CIRCLE_PREVIOUS_BUILD_NUM empty before running 
greenkeeper-lockfile: it detects the correct build by checking it's the 
first job of the first workflow. As we run jobs parallel, the correct 
build may not be the first job.
* Remove CircleCI build artifacts for now: it's highly unlikely we'll 
use them
* Add comments for #1590 workaround

* Update name

* Fix command operator precedence

* Remove workflow version
2018-09-03 19:54:10 -04:00
ylemkimon
c8f8ebd880 Use local built KaTeX on the main page for local and Netlify deploy preview (#1631)
* Use local built KaTeX on the main page for local and netlify builds

* Use KaTeX from CDN on Netlify production deploy
2018-09-04 07:25:29 +09:00
Kevin Barabash
48e5a26ee9 extract makeVerb and some spacing functions from buildCommon (#1640)
* extract makeVerb and some spacing functions from buildCommon

* fix case sensitivity issue

* move function definitions before their use
2018-09-03 18:10:46 -04:00
ylemkimon
ddc287e551 Enable Algolia Docsearch (#1688) 2018-09-04 06:58:28 +09:00
ylemkimon
4178639ea5 Upgrade to Babel 7 (#1595)
* Upgrade to Babel 7

* Update dependencies

* Remove `modules` and `useEsModules` as module support is automatically detected

Target browsers supporting ESM in the ESM build.

* Disable corejs aliasing (polyfill)

* Fix package.json and update lockfile

* Bump CircleCI cache version

* Remove `Object.values()` use for Node 6 compatability

* Remove redundant arguments to @babel/register

* Update rollup and rollup-plugin-babel

* Add ignore option to no-transform-runtime-aliasing

Ignore JSON.stringify, parseInt, and ParseFloat

* Upgrade babel-loader to 8.0.1

* Use api.env() in Babel configuration

* Upgrade babel-loader to 8.0.2
2018-09-03 17:19:12 -04:00
Brian Leung
010dc88029 Add Flow types to CssStyle. (#1684) 2018-09-02 23:53:22 -04:00
ylemkimon
06cdea9410 Update bower.json (#1694) 2018-09-02 23:33:15 +09:00
ylemkimon
761c52f99b Move to Netlify (#1683)
* Remove GitHub Pages publish script

* Redirect katex.netlify.com to katex.org

* Redirect function-support using _redirects

* Redirect docs to the first documentation and docs/en/ to docs/

* Include HSTS includeSubDomains and preload directive

* Cache static image assets
2018-09-02 20:06:39 +09:00
Sumit Gupta
9a6f31abcc Added correct hash for katex.min.css (#1692)
* Added correct hash

* Correct hash for versioned doc
2018-09-02 13:34:15 +09:00
ylemkimon
6f0a76c3a5 Enable Greenkeeper on website/package.json (#1687) 2018-09-01 14:05:32 -04:00
Ron Kok
9b7e10e4f7 Allow 6-digit color spec w/o # (#1690)
* Allow 6-digit color spec w/o #

* Improve RegEx pattern

* Pick up comment

* fix lint
2018-09-01 13:27:17 -04:00
ccorn
d3ec100d02 dist script packs release tarball/zip with "katex" directory prefix again. (#1665)
It does so by mercilessly removing the katex/ folder, if it exists
(presumably left by previous failed dist:zip attempts), copying dist/
to katex/, and archiving the latter. On success, katex/ gets removed.

Settled on this version after a more sophisticated script was considered
to use too much POSIX features (like set and trap) in #1665.

Deliberately not adding katex/ to .gitignore because if katex/ shows up,
it indicates that the latest dist attempt has not completed successfully.
2018-09-01 13:54:31 +09:00
greenkeeper[bot]
5585187abb Update flow-bin to the latest version 🚀 (#1689)
* chore(package): update flow-bin to version 0.80.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-09-01 11:10:02 +09:00
ylemkimon
89daa02fd8 Move to katex.org (#1680)
* Change links to katex.org

* Change http to https

* Remove baseUrl hacks

* Fix OpenGraph image link

* Fix KaTeX path update script
2018-08-31 04:08:02 -04:00
ylemkimon
cd8e6e0de6 Add browserslist (#1662) 2018-08-29 00:52:52 +09:00
ylemkimon
5b30208185 Improve & fix release script (#1660)
* Fix package.json version number when updating SRI

* Replace master branch check with release branch check

* Allow specifying other origin name

* Remove redundant quotes and braces, replace -z with !

* Add fallback to npm publish, if yarn cannot authenticate, e.g., 2FA

* If gh-pages branch is protected, push to another branch

* Do not run npm commands in dry-run
2018-08-28 13:05:56 +09:00
greenkeeper[bot]
16f79435b3 Update rollup to the latest version 🚀 (#1663)
* chore(package): update rollup to version 0.65.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-25 23:13:21 +09:00
Kevin Barabash
539172098a simplify combining chars (#1633)
* simplify comibining chars

* try combining chars in text operators instead of all ordgroups

* ensure that adjacent chars have the same classes

* fix phantom tests

* extract canCombe from tryCombineChars, check for skew and maxFontSize

* check prev.italic !== next.italic

* use the last character's italic correction.
2018-08-23 17:38:36 -04:00
ylemkimon
7ca6f51b9a Release v0.10.0-rc.1 (#1654)
Bump master to v0.10.0-pre
2018-08-23 02:42:24 +09:00
ylemkimon
7bc15d4d76 Revert pkg.main to CommonJS (ES5) module and remove pkg.module field (#1653) 2018-08-23 01:30:01 +09:00
ylemkimon
cb89a9e5d0 Fix screenshotter race conditions (#1643)
* Fix screenshotter race conditions

* Update screenshotter.js

* Update screenshotter.js
2018-08-21 13:04:05 +09:00
ylemkimon
41a43974ce Collect code coverage in screenshotter tests (#1644)
* Collect code coverage in screenshotter tests

* Using instanbul, no additional dependencies required as they are part 
of jest
* Collect in CircleCI builds and upload to Codecov

* Remove clover report
2018-08-21 12:09:29 +09:00
ylemkimon
96310815c5 Remove indexOf & textContent polyfill for IE 8 (#1645)
* Remove indexOf polyfill for IE 8

* Remove textContent polyfill for IE 8
2018-08-20 19:53:45 -04:00
ylemkimon
f70222769b Fix favicon.ico 404 (#1642) 2018-08-20 10:56:20 -04:00
ylemkimon
81356110da Update CONTRIBUTING.md (#1571) 2018-08-20 02:06:20 +09:00
ylemkimon
e790a416d5 Update SRI hashes for v0.10.0-rc (#1638) 2018-08-19 11:50:31 -04:00
ylemkimon
293af2936d Release v0.10.0-rc (#1634)
* Release v0.10.0-rc

Bump master to v0.10.0-pre

* Update CHANGELOG.md

* Update SRI hashes

* Update SRI hashes
2018-08-20 00:25:11 +09:00
Kevin Barabash
b2432e8ad2 make all classes in domTree.js PascalCase and make them named exports (#1636)
* make all classes in domTree.js PascalCase and make them named exports

* add eslint rule to enforce capitalization, fix failures

* address feedback
2018-08-19 23:49:21 +09:00
Kevin Barabash
ead04e5a29 make SourceLocation fields readonly (#1637) 2018-08-19 23:44:11 +09:00
Erik Demaine
aee4a86a67 Add intmath (Interactive Mathematics) to users list (#1635)
As discussed in https://github.com/Khan/KaTeX/pull/1569#issuecomment-413801933
2018-08-19 00:37:49 +09:00
ylemkimon
93b1b7947c Fix scrollspy.js & use query-string@5 to support IE (#1621)
* Fix scrollspy.js syntax error on IE

* Use query-string@5 to support IE
2018-08-18 21:25:37 +09:00
ylemkimon
52f3c05ccc Fix copying options in auto render (#1623) 2018-08-18 07:55:15 -04:00
ylemkimon
0a35a3d184 Update Khan Academy logo (#1613)
* Update Khan Academy logo

* Remove original logo

* Remove unused SVG attributes

* Replace the main page logo with monochromatic (white) version

* Remove effects from the logo in the footer
2018-08-18 13:25:27 +09:00
ylemkimon
3f31a504e8 Add documentation regarding nomodule (#1622)
* Add documentation regarding `nomodule`

* Update browser.md

* Update browser.md
2018-08-18 11:33:41 +09:00
ylemkimon
1eecf2d5a5 Fix line break and variable expansion in CHANGED variable (#1629)
* Fix line break in CHANGED variable

* Fix CHANGED expansion
2018-08-17 19:58:57 -04:00
ylemkimon
0687dd431a Improve demo (REPL, sandbox) on the main page (#1615)
* Improve demo (REPL, sandbox) on the main page

* Update button label

* Update textarea styles

* Change input event listeners to change

* Stack editor/render views vertically

* Add animation to options panel

* Open options panel and maximize view when hash is `demo`

* Fix clipboard text building

* Add -ms prefix to flex-direction

* Set width for [type="color"]

* Add macro example to the demo
2018-08-17 22:59:16 +09:00
ylemkimon
062cfb17a5 Update release script to use pull request (#1603)
* Update release script to use pull request

* Add checking and updating SRI hashes to release script

* Simplify update-sri return

* Move uncommitted changes check to the top level
2018-08-17 22:48:29 +09:00
greenkeeper[bot]
46e7939fa9 chore(package): update flow-bin to version 0.79.0 (#1628)
* chore(package): update flow-bin to version 0.79.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-17 20:00:14 +09:00
Erik Demaine
ce64e56f63 Partial list of KaTeX users (#1569)
* Partial list of KaTeX users

Fix #305 (though work should be ongoing) by incorporating users
from that issue.  Also render project names.

* Ordering and link fixes

* Add more projects, allow non-square images

* Bug fix

* Implement comments

* Remove Bokeh

* Switch Gradescope logo, fix layout for small screens

* Implement @ylemkimon's comments

* Add expii logo

* Avoid master link
2018-08-17 16:37:55 +09:00
ylemkimon
f829ebc692 Improve prestart and tests (#1610)
* screenshotter: replace promisify(fs) and mkdirp with fs-extra

* screenshotter: replace selenium.promise with builtin Promise

* Lint all JavaScript files in the root

* unicodeMake: replace console.log with writeFile(string)

* unicodeMake: check timestamp, do not build if up-to-date

* Replace check-dependencies with yarn check

* Exclude src/unicodeMake.js from coverage

* Add (missing) dependencies

* Skip CircleCI if only unrelated has been changed

* Fix commit range

* Use fs-extra in update-sri
2018-08-17 16:29:27 +09:00
ylemkimon
e8f2ecdd39 Add credits to the KaTeX team and contributors (#1601)
* Add credits to the KaTeX team and contributors

* Remove Team

* Update link to contributors in main page, add license information

* Add license information to footer
2018-08-15 15:38:54 +09:00
Ron Kok
536eb9f3dc Add min-height CSS to print (#1594)
* Add min-height CSS to print

* Fix lint errors

* Add comment
2018-08-14 17:45:34 +02:00
ylemkimon
b542c79fc3 Add jsDelivr badge (#1614) 2018-08-14 10:20:09 +02:00
Ashish Myles
e7a45221c4 Rename .body/.value to .name/.body in "op" ParseNode. (#1612)
* Rename .body to .name in "op" ParseNode.

* Rename .value to .body in "op" ParseNode.
2018-08-14 13:02:24 +09:00
Ashish Myles
fcc5c4420a Rename .value to .body in "ordgroup". (#1609) 2018-08-13 23:17:23 +09:00
Ashish Myles
8492a7532b Rename .value to .text or .color where applicable. (#1606)
* Update comment for defineFunction handler.

* Rename .value to .text in all token-style ParseNodes.

* Rename symbolNode's .value to .text.

* Rename color-token's .value to .color.
2018-08-13 20:58:46 +09:00
greenkeeper[bot]
4e53f9d059 Update eslint-plugin-transform-runtime-aliasing to the latest version 🚀 (#1608)
* chore(package): update eslint-plugin-transform-runtime-aliasing to version 1.0.0

* chore(package): update lockfile

https://npm.im/greenkeeper-lockfile
2018-08-13 18:30:46 +09:00
ylemkimon
101501189c Enable environment variable USE_TTF to disable bundling TTF fonts (#1600)
* Use environment variable USE_TTF to disable bundling TTF fonts

* Do not bundle TTF fonts on CircleCI build
2018-08-13 13:12:33 +09:00