mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-09-27 11:45:23 +00:00
发布新文档;修改发布脚本
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import BrowserOnly from '@docusaurus/BrowserOnly';
|
||||
import Link from '@docusaurus/Link';
|
||||
import useBaseUrl from '@docusaurus/useBaseUrl';
|
||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||
@@ -28,17 +29,19 @@ function HomepageHeader() {
|
||||
>
|
||||
开始使用
|
||||
</Link>
|
||||
<Link
|
||||
className="button button--outline button--primary button--lg"
|
||||
href={
|
||||
window.innerWidth > 768
|
||||
? 'https://smallmain.github.io/cocos-enhance-kit/demo/v1.0.0/web-desktop/index.html'
|
||||
: 'https://smallmain.github.io/cocos-enhance-kit/demo/v1.0.0/web-mobile/index.html'
|
||||
}
|
||||
style={{ marginRight: 20 }}
|
||||
>
|
||||
查看演示
|
||||
</Link>
|
||||
<BrowserOnly>
|
||||
{() => <Link
|
||||
className="button button--outline button--primary button--lg"
|
||||
href={
|
||||
window.innerWidth > 768
|
||||
? 'https://smallmain.github.io/cocos-enhance-kit/demo/v1.0.0/web-desktop/index.html'
|
||||
: 'https://smallmain.github.io/cocos-enhance-kit/demo/v1.0.0/web-mobile/index.html'
|
||||
}
|
||||
style={{ marginRight: 20 }}
|
||||
>
|
||||
查看演示
|
||||
</Link>}
|
||||
</BrowserOnly>
|
||||
<Link
|
||||
className="button button--secondary button--lg"
|
||||
href='https://github.com/smallmain/cocos-enhance-kit'>
|
||||
|
Reference in New Issue
Block a user