mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 14:08:42 +00:00
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
This commit is contained in:
@@ -135,8 +135,8 @@ if [[ ! $PUBLISH ]]; then
|
||||
fi
|
||||
|
||||
# Edit docs to use CSS from CDN
|
||||
grep -l '{@stylesheet: katex.min.css}' docs/*.md | xargs sed -i.bak \
|
||||
's|{@stylesheet: katex.min.css}|<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@./dist/katex.min.css" integrity="sha384-katex.min.css" crossorigin="anonymous"/>|'
|
||||
grep -l '/static/' docs/*.md | xargs sed -i.bak \
|
||||
's|/static/\([^"]\+\)|https://cdn.jsdelivr.net/npm/katex@./dist/\1" integrity="sha384-\1|'
|
||||
|
||||
# Update the version number in CDN URLs included in the README and the documentation,
|
||||
# and regenerate the Subresource Integrity hash for these files.
|
||||
|
Reference in New Issue
Block a user