diff --git a/release.sh b/release.sh index a20a0e6d..29e20165 100755 --- a/release.sh +++ b/release.sh @@ -209,23 +209,6 @@ else # Fallback to npm publish, if yarn cannot authenticate, e.g., 2FA yarn publish --new-version "$VERSION" || npm publish - # Publish the website - # If gh-pages branch is protected, push to another branch - pushd website - PUBLISH_GH_PAGES=$(USE_SSH=true yarn publish-gh-pages 2>&1 | tee /dev/tty || true) - if echo "$PUBLISH_GH_PAGES" | grep -qEi 'GH006|protected branch'; then - pushd build/KaTeX-gh-pages - git checkout -B "v$VERSION-gh-pages" - git push -u origin "v$VERSION-gh-pages" - popd - - echo "" - echo "GitHub pages branch is protected." - echo "Create a pull request against gh-pages from 'v$VERSION-gh-pages'" - echo "Visit https://github.com/Khan/KaTeX/pulls to open a pull request." - fi - popd - echo "" echo "The automatic parts are done!" echo "Now all that's left is to create the release on GitHub." diff --git a/website/package.json b/website/package.json index 23adbfeb..5675c5fc 100644 --- a/website/package.json +++ b/website/package.json @@ -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" diff --git a/website/static/_headers b/website/static/_headers new file mode 100644 index 00000000..697277d0 --- /dev/null +++ b/website/static/_headers @@ -0,0 +1,5 @@ +/* + Strict-Transport-Security: max-age=31536000; includeSubDomains; preload + +/img/* + Cache-Control: public, max-age=31536000 diff --git a/website/static/_redirects b/website/static/_redirects new file mode 100644 index 00000000..6c6243fa --- /dev/null +++ b/website/static/_redirects @@ -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 diff --git a/website/static/function-support.html b/website/static/function-support.html deleted file mode 100644 index ec566fe2..00000000 --- a/website/static/function-support.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - Function Support in KaTeX - - - -

This page has moved to the documentation.

- -