Unverified Commit 3eea79c2 authored by ZackYoung's avatar ZackYoung Committed by GitHub

[Doc]fix doc pv (#3232)

parent 08122463
...@@ -28,7 +28,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); ...@@ -28,7 +28,7 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const config = { const config = {
title: 'Dinky', //网站标题 | Site title title: 'Dinky', //网站标题 | Site title
tagline: 'Dinky 为 Apache Flink 而生,让 Flink SQL 纵享丝滑', // 网站标语 | Tagline for your website 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 baseUrl: '/', // 站点的相对路径 可将其视为是主机名后的路径 | Path to your website
staticDirectories: ['static/img', 'blog/blog_img'], // 静态文件目录 | Path to static files 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 // trailingSlash: true, //此选项允许您自定义 URL/链接后是否添加结尾斜杠 | Whether to append a trailing slash to the URL when rendering URLs
...@@ -135,7 +135,7 @@ const config = { ...@@ -135,7 +135,7 @@ const config = {
({ ({
announcementBar: { announcementBar: {
id: 'announcementBar-2', // Increment on change id: 'announcementBar-2', // Increment on change
content: `⭐️ &nbsp; If you like Dinky , give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/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="https://github.com/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", backgroundColor: "#BBDFFF",
isCloseable: false, isCloseable: false,
}, },
...@@ -307,6 +307,10 @@ const config = { ...@@ -307,6 +307,10 @@ const config = {
disableInDev: false, disableInDev: false,
}, },
], ],
],
scripts: [
// 统计 pv
{src: 'https://hm.baidu.com/hm.js?7f2b5e6f354b8ae1cdec43ba108936f7', async: true}
] ]
}; };
......
...@@ -30,8 +30,6 @@ function HomepageHeader() { ...@@ -30,8 +30,6 @@ function HomepageHeader() {
const {siteConfig} = useDocusaurusContext(); const {siteConfig} = useDocusaurusContext();
return ( return (
<header className={clsx('hero hero--primary', styles.heroBanner)}> <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("container")}>
<div className={clsx("desc", styles.box_container)}> <div className={clsx("desc", styles.box_container)}>
<div className={clsx("desc_left", styles.box,styles.descLeft)}> <div className={clsx("desc_left", styles.box,styles.descLeft)}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment