From 89daa02fd899d01b2a92f69ecd8be34bbece9d72 Mon Sep 17 00:00:00 2001 From: ylemkimon Date: Fri, 31 Aug 2018 17:08:02 +0900 Subject: [PATCH] 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 --- CONTRIBUTING.md | 6 ++--- README.md | 16 ++++++------ bower.json | 2 +- contrib/auto-render/README.md | 2 +- docs/font.md | 2 +- docs/support_table.md | 6 ++--- docs/supported.md | 6 ++--- release.sh | 4 +-- website/core/Footer.js | 2 +- website/package.json | 3 +-- website/pages/index.html | 4 +-- website/siteConfig.js | 25 +++++-------------- .../version-0.10.0-rc.1/font.md | 2 +- .../version-0.10.0-rc.1/support_table.md | 4 +-- .../version-0.10.0-rc.1/supported.md | 4 +-- 15 files changed, 37 insertions(+), 51 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cc9b36ca..b8778591 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,10 +8,10 @@ help solving a problem, feel free to stop by our [gitter channel](https://gitter If you'd like to contribute, try contributing new symbols or functions that KaTeX doesn't currently support. The documentation has pages listing -[supported functions](https://khan.github.io/KaTeX/docs/supported.html) and -[functions that KaTeX supports and some that it doesn't support](https://khan.github.io/KaTeX/docs/support_table.html). +[supported functions](https://katex.org/docs/supported.html) and +[functions that KaTeX supports and some that it doesn't support](https://katex.org/docs/support_table.html). You can check them to see if we don't support a function you like, or try your -function in the interactive demo at [http://khan.github.io/KaTeX/](http://khan.github.io/KaTeX/). +function in the interactive demo at [http://katex.org/](http://katex.org/). The wiki has a page that describes how to [examine TeX commands and where to find rules](https://github.com/Khan/KaTeX/wiki/Examining-TeX) which can be quite useful when adding new commands. diff --git a/README.md b/README.md index 00287de5..e6d9fefe 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [KaTeX](https://khan.github.io/KaTeX/) +# [KaTeX](https://katex.org/) [![npm](https://img.shields.io/npm/v/katex.svg)](https://www.npmjs.com/package/katex) [![CircleCI](https://circleci.com/gh/Khan/KaTeX.svg?style=shield)](https://circleci.com/gh/Khan/KaTeX) [![codecov](https://codecov.io/gh/Khan/KaTeX/branch/master/graph/badge.svg)](https://codecov.io/gh/Khan/KaTeX) @@ -15,9 +15,9 @@ KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the we KaTeX is compatible with all major browsers, including Chrome, Safari, Firefox, Opera, Edge, and IE 9–11. -KaTeX supports much (but not all) of LaTeX and many LaTeX packages. See the [list of supported functions](https://khan.github.io/KaTeX/docs/supported.html). +KaTeX supports much (but not all) of LaTeX and many LaTeX packages. See the [list of supported functions](https://katex.org/docs/supported.html). -Try out KaTeX [on the demo page](https://khan.github.io/KaTeX/#demo)! +Try out KaTeX [on the demo page](https://katex.org/#demo)! ## Getting started @@ -43,7 +43,7 @@ Try out KaTeX [on the demo page](https://khan.github.io/KaTeX/#demo)! You can also [download KaTeX](https://github.com/khan/katex/releases) and host it yourself. -For details on how to configure auto-render extension, refer to [the documentation](https://khan.github.io/KaTeX/docs/autorender.html). +For details on how to configure auto-render extension, refer to [the documentation](https://katex.org/docs/autorender.html). ### API @@ -73,13 +73,13 @@ JavaScript on the client. The examples above use the `throwOnError: false` option, which renders invalid inputs as the TeX source code in red (by default), with the error message as hover text. For other available options, see the -[API documentation](https://khan.github.io/KaTeX/docs/api.html), -[options documentation](https://khan.github.io/KaTeX/docs/options.html), and -[handling errors documentation](https://khan.github.io/KaTeX/docs/error.html). +[API documentation](https://katex.org/docs/api.html), +[options documentation](https://katex.org/docs/options.html), and +[handling errors documentation](https://katex.org/docs/error.html). ## Demo and Documentation -Learn more about using KaTeX [on the website](https://khan.github.io/KaTeX)! +Learn more about using KaTeX [on the website](https://katex.org)! ## Contributing diff --git a/bower.json b/bower.json index db6061ec..05967c0e 100644 --- a/bower.json +++ b/bower.json @@ -4,7 +4,7 @@ "dist/katex.js", "dist/katex.css" ], - "homepage": "http://khan.github.io/KaTeX/", + "homepage": "https://katex.org/", "description": "Fast math typesetting for the web.", "moduleType": [ "amd", diff --git a/contrib/auto-render/README.md b/contrib/auto-render/README.md index f90b4d3a..ea793f1c 100644 --- a/contrib/auto-render/README.md +++ b/contrib/auto-render/README.md @@ -4,5 +4,5 @@ This is an extension to automatically render all of the math inside of text. It searches all of the text nodes in a given element for the given delimiters, and renders the math in place. -See [Auto-render extension documentation](https://khan.github.io/KaTeX/docs/autorender.html) +See [Auto-render extension documentation](https://katex.org/docs/autorender.html) for more information. diff --git a/docs/font.md b/docs/font.md index 520227ef..31088a01 100644 --- a/docs/font.md +++ b/docs/font.md @@ -27,7 +27,7 @@ will appear larger than 1cm in browser units. The default build of KaTeX includes each of the needed fonts in three different formats: `ttf`, `woff`, and `woff2`. -- `ttf`s are included to support old versions of Chrome, Safari, Firefox, etc. (Here "old" means Firefox 3.5, Chrome < 5, and Safari <= 5.1, all of which are no longer supported: see [woff](http://caniuse.com/#search=woff) vs. [ttf](http://caniuse.com/#search=ttf)). +- `ttf`s are included to support old versions of Chrome, Safari, Firefox, etc. (Here "old" means Firefox 3.5, Chrome < 5, and Safari <= 5.1, all of which are no longer supported: see [woff](https://caniuse.com/#search=woff) vs. [ttf](https://caniuse.com/#search=ttf)). - `woff` is the format that is most widely supported (all modern browsers support it), so it probably provides the most benefit to being included. - `woff2`s are included for very new versions of Chrome, because they are much smaller and faster to load. diff --git a/docs/support_table.md b/docs/support_table.md index be9b21fc..340eabe2 100644 --- a/docs/support_table.md +++ b/docs/support_table.md @@ -6,7 +6,7 @@ This is a list of TeX functions, sorted alphabetically. This list includes funct If you know the shape of a character, but not its name, [Detexify](http://detexify.kirelabs.org/classify.html) can help. -{@stylesheet: katex.min.css} +