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.
* 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
* 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.
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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.
* Added project: Vade Mecum Shelf
Vade Mecum Shelf is a collection of utilities wrapped into one single app, built with Electron.
Two utilities are making use of KaTeX:
- LaTeX Math Renderer
- Trigonometric Formulas
* fix lint
* Remove Object.assign() in auto-render which requires expensive polyfill
* Remove underscore.js from LICENSE
* Rename to LICENSE and update year
* Lint `contrib` codes
* Wrap `katex.render` examples with try...catch
* Add starter template with defer in README.md
* Update documentation to use `defer` and `onload`
* Add documentation on async and pre loading KaTeX
* Use sha384 for SRI
* Revise wording according to comments
* Minor changes
* Fix article
* Change `npm run` to `yarn`
* Export `commander` program if required as module
* Move `prestart` (cli.md generation) to build.js
* Normalize script names
* Change `yarn prestart` to `node lib/build.js`
* Use local built CSS and fonts
* Move stylesheet after the first paragraph
* Remove prestart script