Commit Graph

30 Commits

Author SHA1 Message Date
ylemkimon
f007358c0f chore: rename branch master to main (#3376)
* chore: rename branch master to main

* ci: update semantic-release config

* ci: run semantic release only on main
2021-10-31 01:32:44 +09:00
ylemkimon
3568cb9c99 build: use semantic-release to automate release (#2830)
* Link to previous deploys of releases instead of versioned docs

* Use semantic-release to automate release

* Use an environment for release job

* Run release only on push event
2021-03-22 15:30:57 +09:00
Antonio J. Molina Lovett
ebd86b90c4 fix: typo in example on homepage (#2577)
introduced in #2085: https://github.com/KaTeX/KaTeX/pull/2085/files#diff-d351bc0c29817ef51ebb3022b15c0704L67

Co-authored-by: ylemkimon <y@ylem.kim>
2020-11-14 15:34:50 +09:00
ylemkimon
dc5f97aaa2 feat(macro): improve argument parsing (#2085)
* Improve macro argument parsing

* Make \above a primitive command

* Fix screenshotter data

* Normalize argument where necessary

* Improve argument location info

* Update comments

* Minor refactor

* Modularize group parsers

* Allow braced and blank size argument

for non-strict mode and \genfrac, respectively.

* Minor refactor & update comments

* Remove raw option in parseStringGroup

* Update tests

* Fix { delimited parameter

* Update tests

* Update tests

* Normalize argument in \genfrac

* Update tests

* Consume space before scanning an optional argument

* Fix \\, \newline, and \cr behavior

* Fix flow error

* Update comments

* Remove unnecessary mode switching

Parser mode affects neither fetch nor consume.

* Allow single (active) character macro

* Add function property `primitive`

* Set \mathchoice and \*style primitive

* Separate size-related improvements out to #2139

* Fix flow error

* Update screenshots

* Update demo example

* Add a migration guide

* Fix capitalization

* Make a primitive function unexpandable

* Update screenshots

* Update screenshots

* Revert "Document \def doesn't support delimiters (#2288) (#2289)"

This reverts commit f96fba6f7f.

* Update comments, errors, and tests

* Update screenshots
2020-09-06 12:56:13 +09:00
Ron Kok
e3c01376c8 Enable a MathML option in the KaTeX demo. (#2371)
* Enable a MathML option in the KaTeX demo.

* Add `output` to `katexOptions`
2020-08-03 02:57:19 +09:00
Erik Demaine
5a9d146add Link to Netlify on front page (#2294) 2020-07-11 13:03:05 -04:00
Sophie Alpert
f09955c547 Fix grammar error in tagline (#2231) 2020-04-05 12:32:09 -04:00
ylemkimon
634b4e2ae4 Add 'trust' setting to demo (#2107)
Ask if enabling 'trust' from the permalink
2019-10-02 21:06:53 -04:00
Erik Demaine
d82d09bebd Suggest <!DOCTYPE html> in documentation (#2052)
* Suggest <!DOCTYPE html> in documentation

Inspired by #2047

* Add starter template

* Mention <iframe>s

* Set default docs page to Browser
2019-07-24 23:17:41 +09:00
Thomas Mathew
fb103bb147 Include extensions mhchem & copy-tex in home-page (#1932)
* Include extensions mhchem & copy-tex in website home-page

* Use relative link to mhchem and copy-tex

- Included relative links extensions mhchem & copy-tex in website/pages/index.html
- Included copy commands in website/lib/build.js. Will be used in 'yarn build'
- Included 2 more files in .gitignore

* Correct CDN path of extensions

* tweak grammar and alignment of a comment
2019-04-28 20:29:49 -04:00
ylemkimon
664dc6ab74 Add more documentation on font loading & prefetch fonts on the website (#1895)
* Add more documentation on font loading

* Prefetch fonts on the website
2019-04-28 18:44:34 -04:00
ylemkimon
6323702874 Add Browserstack logo (#1879)
To apply for their open-source program.
2019-04-17 10:35:54 -04:00
Erik Demaine
7f778d1543 leqno and fleqn support (#1814)
* leqno support

* Add fleqn support

* Add tests

* Lint fix

* Add leqno and fleqn to website demo
2019-01-29 18:40:17 +09:00
ylemkimon
112582daa5 Replace Khan/KaTeX with KaTeX/KaTeX (#1781)
* Replace Khan/KaTeX with KaTeX/KaTeX

* Remove RawGit links

* Remove old files
2018-11-19 21:24:33 -05: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
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
7ca6f51b9a Release v0.10.0-rc.1 (#1654)
Bump master to v0.10.0-pre
2018-08-23 02:42:24 +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
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
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
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
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
d2f56cebd7 Sync support pages (#1556)
* Sync support pages

* Use KaTeX logo for \href example

* mobile support

* Unit block sizes

* Add texvc to supported.md

* Fix CSS lint errors

* Added suggested braces to demo page

* Pick up review comments

* Move \allowbreak
2018-08-10 16:37:08 -04:00
ylemkimon
307b7ab9c3 Improve main page (index.html) speed (#1577)
* Inline Font Awesome icons using SVG

* Add license information header

* Preload KaTeX fonts

* Defer loading javascripts

* Cleanup stylesheet links

* Invoke startup script immediately

* Fix typo

* Add leading zeros
2018-08-10 02:52:49 +09:00
ylemkimon
5ce03c45cf Add link to the demo in navigation bar and README (#1564)
* Add link to the demo in navigation bar

* Add link to the demo in README
2018-08-08 09:32:57 -04:00
ylemkimon
48e6d9d431 index.html: replace font, make responsive (#1547)
* Replace Proxima Nova with Lato

* Make main page responsive (mobile-friendly)

* Make comparison image responsive
2018-08-07 23:26:33 -04:00
ylemkimon
69a7634a56 Improve release script & enable versioning documentation (#1521)
* Add version selection page

* Update the CDN urls in the documentation

* Generate new version and publish documentation in release script

* Update CDN urls when NEXT_VERSION is not provided

* Remove bower-related from release script

* Improve instructions running on the release branch 

and without next version

* Add a suffix to the branch name

* Update CSS stylesheet replacement

* Update release.sh

* Change npm to Yarn

* Fix calling `version` script

* Run `prestart` in `version`

* Wrap `Latest Version` descriptions with p tag

* Explicitly specify files to commit in the website
2018-08-08 08:52:28 +09:00
ylemkimon
db2aecce24 Lint website (#1519)
* Lint website

* Add comment to empty_thead.js
2018-07-28 10:49:36 -04:00
ylemkimon
8a38035855 KaTeX website & documentation (#1484)
* website/docs: initial commit

* Change secondaryColor

* Fix index.css not being copied and included on global stylesheet

* Fix stylesheet link

[skip ci]

* Change documentation link to API(Usage)

[skip ci]

* Add `Libraries` in usage

[skip ci]

* Remove documentation from `README.md` and add link to the site

[skip ci]

* Use KaTeX in the parent directory to build Markdown

[skip ci]

* Revise function support page. Avoid error msgs.

* General edit to function support page
2018-07-26 20:19:40 -07:00