This is an automated email from the ASF dual-hosted git repository.
luzhijing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 247180c088d add zh-docs activity (#877)
247180c088d is described below
commit 247180c088d61833381cad2c542def35e0b8539d
Author: 0xFlackoLFG <[email protected]>
AuthorDate: Fri Jul 19 07:45:27 2024 +0800
add zh-docs activity (#877)
Co-authored-by: 张骏驰 <[email protected]>
---
scripts/merge_by_toc.py | 2 ++
src/theme/TOC/index.tsx | 14 +++++++++-----
src/theme/TOC/styles.module.css | 4 ++++
3 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/scripts/merge_by_toc.py b/scripts/merge_by_toc.py
index 6f0e6a38bdf..79f90716cd9 100755
--- a/scripts/merge_by_toc.py
+++ b/scripts/merge_by_toc.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python3
# coding: utf8
+
+
from __future__ import print_function, unicode_literals
import re
diff --git a/src/theme/TOC/index.tsx b/src/theme/TOC/index.tsx
index 472aef7faf9..cc9b7f52224 100644
--- a/src/theme/TOC/index.tsx
+++ b/src/theme/TOC/index.tsx
@@ -6,6 +6,7 @@ import type { Props } from '@theme/TOC';
import styles from './styles.module.css';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Link from '@docusaurus/Link';
+import { ExternalLinkArrowIcon } from
'../../components/Icons/external-link-arrow-icon';
// Using a custom className
// This prevents TOCInline/TOCCollapsible getting highlighted by mistake
@@ -19,12 +20,15 @@ export default function TOC({ className, ...props }:
Props): JSX.Element {
<div className={clsx(styles.tableOfContents, 'thin-scrollbar',
className)}>
{isCN ? (
<Link
- className="ml-4 mb-8 flex items-center hover:no-underline"
- href="https://ask.selectdb.com"
+ className={clsx(styles.bgCustomGradient, "ml-4 mb-8
text-sm flex items-center hover:no-underline border border-[#aac8d6]
rounded-md")}
+ href="https://www.huodongxing.com/event/3763009788811"
target="_blank"
>
- <span className="pr-2">问答论坛</span>
- <svg
+ <div className="px-2 grid gap-1">
+ <span className="block">7 月 26 日 Apache Doris x
天翼云城市行@上海站免费参与🔥</span>
+ <span>立即报名<span
className="ml-1"><ExternalLinkArrowIcon/></span></span>
+ </div>
+ {/* <svg
viewBox="0 0 1024 1024"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
@@ -38,7 +42,7 @@ export default function TOC({ className, ...props }: Props):
JSX.Element {
p-id="8501"
fill="currentColor"
></path>
- </svg>
+ </svg> */}
</Link>
) : (
<Link
diff --git a/src/theme/TOC/styles.module.css b/src/theme/TOC/styles.module.css
index 4b5d9f462e0..ae73879ea1a 100644
--- a/src/theme/TOC/styles.module.css
+++ b/src/theme/TOC/styles.module.css
@@ -14,3 +14,7 @@
padding: 0 0.3rem;
}
}
+
+.bgCustomGradient {
+ /* background: radial-gradient(181.14% 96.64% at 101.72% 103.13%, rgba(211,
97, 230, 0.5) 0%, rgba(16, 190, 235, 0.17) 39.41%, rgba(255, 255, 255, 0) 100%)
*/
+}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]