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
This commit is contained in:
ylemkimon
2018-09-02 20:06:39 +09:00
committed by GitHub
parent 9a6f31abcc
commit 761c52f99b
5 changed files with 11 additions and 28 deletions

View File

@@ -2,7 +2,6 @@
"scripts": {
"start": "node lib/build.js && docusaurus-start",
"build": "node lib/build.js && docusaurus-build",
"publish-gh-pages": "node lib/build.js && docusaurus-publish",
"write-translations": "docusaurus-write-translations",
"version": "node lib/build.js && docusaurus-version",
"rename-version": "docusaurus-rename-version"

5
website/static/_headers Normal file
View File

@@ -0,0 +1,5 @@
/*
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
/img/*
Cache-Control: public, max-age=31536000

View File

@@ -0,0 +1,6 @@
https://katex.netlify.com/* https://katex.org/:splat 301!
/function-support.html /docs/supported.html 301
/docs/en/* /docs/:splat 301
/docs /docs/node.html 301

View File

@@ -1,10 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Function Support in KaTeX</title>
<meta http-equiv="refresh" content="0;URL='./docs/supported.html'" />
</head>
<body>
<p>This page has moved to the <a href="./docs/supported.html">documentation</a>.</p>
</body>
</html>