Skip to content

Commit

Permalink
chore: replace staticfile cdn domain (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored May 14, 2024
1 parent eb69c9d commit 9dbf00c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demo/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
<title>Twikoo Demo</title>
<link rel="stylesheet" type="text/css" href="https://cdn.staticfile.org/bulma/0.8.2/css/bulma.min.css">
<link rel="stylesheet" type="text/css" href="https://cdn.staticfile.net/bulma/0.8.2/css/bulma.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="demo.css">
</head>
Expand Down
4 changes: 2 additions & 2 deletions docs/frontend.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ twikoo:

``` html
<div id="tcomment"></div>
<script src="https://cdn.staticfile.org/twikoo/1.6.32/twikoo.all.min.js"></script>
<script src="https://cdn.staticfile.net/twikoo/1.6.32/twikoo.all.min.js"></script>
<script>
twikoo.init({
envId: '您的环境id', // 腾讯云环境填 envId;Vercel 环境填地址(https://xxx.vercel.app)
Expand All @@ -107,7 +107,7 @@ twikoo.init({

如果遇到默认 CDN 加载速度缓慢,可更换其他 CDN 镜像。以下为可供选择的公共 CDN,其中一些 CDN 可能需要数天时间同步最新版本:

* `https://cdn.staticfile.org/twikoo/1.6.32/twikoo.all.min.js`
* `https://cdn.staticfile.net/twikoo/1.6.32/twikoo.all.min.js`
* `https://lib.baomitu.com/twikoo/1.6.32/twikoo.all.min.js`
* `https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.32/twikoo.all.min.js`
* `https://cdn.jsdelivr.net/npm/[email protected]/dist/twikoo.all.min.js`
Expand Down
2 changes: 1 addition & 1 deletion src/client/utils/highlight.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { app } from '../view'

const PRISM_CDN = 'https://cdn.staticfile.org/prism/1.28.0'
const PRISM_CDN = 'https://cdn.staticfile.net/prism/1.28.0'
let Prism
let cssEl

Expand Down

0 comments on commit 9dbf00c

Please sign in to comment.