Fix documentation CORS error (#1759)

* Fix CORS error

* Fix CORS error

* Add CORS attribute
This commit is contained in:
ylemkimon
2018-10-29 13:42:45 +09:00
committed by GitHub
parent a3215b284e
commit 354b4badda
3 changed files with 3 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ if [[ ! $PUBLISH ]]; then
# Edit docs to use CSS from CDN
grep -l '/static/' docs/*.md | xargs sed -i.bak \
's|/static/\([^"]\+\)|https://cdn.jsdelivr.net/npm/katex@./dist/\1" integrity="sha384-\1|'
's|/static/\([^"]\+\)|https://cdn.jsdelivr.net/npm/katex@./dist/\1" integrity="sha384-\1" crossorigin="anonymous|'
# Update the version number in CDN URLs included in the README and the documentation,
# and regenerate the Subresource Integrity hash for these files.

View File

@@ -7,7 +7,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.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous"/>
<style>
table tr,
table td {

View File

@@ -7,7 +7,7 @@ This is a list of TeX functions supported by KaTeX. It is sorted into logical gr
There is a similar [Support Table](./support_table.md), sorted alphabetically, that lists both supported and un-supported functions.
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous"/>
<style>
p {overflow-wrap: break-word;}
table tr,