Skip to content

Commit

Permalink
[Doc]fix doc pv (DataLinkDC#3232)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackyoungh authored Mar 4, 2024
1 parent 0812246 commit 3eea79c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const config = {
title: 'Dinky', //网站标题 | Site title
tagline: 'Dinky 为 Apache Flink 而生,让 Flink SQL 纵享丝滑', // 网站标语 | Tagline for your website
url: 'http://www.dinky.org.cn/', // 网站网址 | Your website's URL
url: 'https://www.dinky.org.cn/', // 网站网址 | Your website's URL
baseUrl: '/', // 站点的相对路径 可将其视为是主机名后的路径 | Path to your website
staticDirectories: ['static/img', 'blog/blog_img'], // 静态文件目录 | Path to static files
// trailingSlash: true, //此选项允许您自定义 URL/链接后是否添加结尾斜杠 | Whether to append a trailing slash to the URL when rendering URLs
Expand Down Expand Up @@ -135,7 +135,7 @@ const config = {
({
announcementBar: {
id: 'announcementBar-2', // Increment on change
content: `⭐️ &nbsp; If you like Dinky , give it a star on <a target="_blank" rel="noopener noreferrer" href="/DataLinkDC/dinky">GitHub</a> . Domain name will be migrated soon , The new domain name is <a target="_blank" rel="noopener noreferrer" href="http://www.dinky.org.cn">www.dinky.org.cn</a>`,
content: `⭐️ &nbsp; If you like Dinky , give it a star on <a target="_blank" rel="noopener noreferrer" href="/DataLinkDC/dinky">GitHub</a> . Domain name will be migrated soon , The new domain name is <a target="_blank" rel="noopener noreferrer" href="https://www.dinky.org.cn">www.dinky.org.cn</a>`,
backgroundColor: "#BBDFFF",
isCloseable: false,
},
Expand Down Expand Up @@ -307,6 +307,10 @@ const config = {
disableInDev: false,
},
],
],
scripts: [
// 统计 pv
{src: 'https://hm.baidu.com/hm.js?7f2b5e6f354b8ae1cdec43ba108936f7', async: true}
]
};

Expand Down
2 changes: 0 additions & 2 deletions docs/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
{/*统计 pv*/}
<script src= "https://hm.baidu.com/hm.js?7f2b5e6f354b8ae1cdec43ba108936f7" async />
<div className={clsx("container")}>
<div className={clsx("desc", styles.box_container)}>
<div className={clsx("desc_left", styles.box,styles.descLeft)}>
Expand Down

0 comments on commit 3eea79c

Please sign in to comment.