Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
a9402a3b
Unverified
Commit
a9402a3b
authored
Oct 21, 2023
by
zhangyongtian
Committed by
GitHub
Oct 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[optimization][docs] added responsive layout (#2418)
parent
b9b13966
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
41 deletions
+60
-41
README.md
docs/README.md
+24
-26
index.js
docs/src/pages/index.js
+12
-14
index.module.css
docs/src/pages/index.module.css
+24
-1
No files found.
docs/README.md
View file @
a9402a3b
## Dinky Website
## Dinky Website
该项目保留了用于构建 Dinky 官方网站的所有资源,服务于 http://www.dlink.top/
该项目保留了用于构建 Dinky 官方网站的所有资源,服务于 http://www.dlink.top/
。
## 条件
## 条件
...
@@ -68,29 +68,27 @@ docusaurus write-translations
...
@@ -68,29 +68,27 @@ docusaurus write-translations
## 文档目录结构
## 文档目录结构
```
html
```
html
blog --博客分享
┌─blog --博客分享
docs --最新文档
├─docs --最新文档
download --下载
├─download --下载
i18n -- 国际化
├─i18n --国际化
src --源码
├─src --源码
- components --组件
│ ├─components --组件
- HomepageFeature --首页特性
│ ├─css --css 样式
- css --css 样式
│ └─pages --首页
- pages -- 首页
│─static --静态文件
static --静态文件
│ └─img --官网图片
- img --官网图片
├─versioned_docs --历史版本文档
versioned_docs --历史版本文档
│ ├─version-0.6 --版本0.6文档
- version-0.6 --版本0.6文档
│ └─version-0.7 --版本0.7文档
- version-0.7 --版本0.7文档
├─version_sidebars --历史版本文档侧边栏
version_sidebars --历史版本文档侧边栏
│ └─version-0.6-sidebars.json --历史版本文档侧边栏
- version-0.6-sidebars.json --历史版本文档侧边栏
│ └─version-0.7-sidebars.json --历史版本文档侧边栏
- version-0.7-sidebars.json --历史版本文档侧边栏
├─babel.config.js --babel 配置文件
babel.config.js --babel配置文件
├─docusaurus.config.js --docusaurus 配置文件
docusaurus.config.js --docusaurus配置文件
├─package.json --项目配置文件
package.json --项目配置文件
├─README.md --项目介绍
README.md --项目介绍
├─sidebars.js --侧边栏配置文件
sidebars.js --侧边栏配置文件
├─sidebarsDevelopment.js --侧边栏配置文件
sidebarsDevelopment.js --侧边栏配置文件
└─versions.json --版本配置文件
versions.json --版本配置文件
```
```
docs/src/pages/index.js
View file @
a9402a3b
...
@@ -30,15 +30,15 @@ function HomepageHeader() {
...
@@ -30,15 +30,15 @@ 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
)}
>
<
div
className
=
"container"
>
<
div
className
=
{
clsx
(
"container"
)}
>
<
div
className
=
"desc"
>
<
div
className
=
{
clsx
(
"desc"
,
styles
.
box_container
)}
>
<
div
className
=
"desc_left"
>
<
div
className
=
{
clsx
(
"desc_left"
,
styles
.
box
)}
>
<
h1
className
=
"hero__title"
>
{
siteConfig
.
title
}
<
/h1
>
<
h1
className
=
"hero__title"
>
{
siteConfig
.
title
}
<
/h1
>
<
p
className
=
"hero__subtitle"
>
{
siteConfig
.
tagline
}
<
/p
>
<
p
className
=
"hero__subtitle"
>
{
siteConfig
.
tagline
}
<
/p
>
<
p
className
=
"hero_desc"
>
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
<
p
className
=
"hero_desc"
>
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
一站式
FlinkSQL
&
SQL
DataOps
<
br
/>
一站式
FlinkSQL
&
SQL
DataOps
,
基于
Apache
Flink
二次开发,无侵入,开箱即用
<
br
/>&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
基于
Apache
Flink
二次开发,无侵入,开箱即用
,
实时即未来,批流为一体
<
br
/><
br
/>
实时即未来,批流为一体
。
<
br
/><
br
/>
<
/p
>
<
/p
>
<
div
className
=
{
styles
.
buttons
}
>
<
div
className
=
{
styles
.
buttons
}
>
<
Link
<
Link
...
@@ -73,7 +73,7 @@ function HomepageHeader() {
...
@@ -73,7 +73,7 @@ function HomepageHeader() {
<
/span
>
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
"desc_right"
>
<
div
className
=
{
clsx
(
"desc_right"
,
styles
.
box
)}
style
=
{{
marginTop
:
"20px"
}}
>
<
img
src
=
"home.png"
className
=
"fly_svg"
><
/img
>
<
img
src
=
"home.png"
className
=
"fly_svg"
><
/img
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
@@ -86,11 +86,11 @@ function HomepageHeader() {
...
@@ -86,11 +86,11 @@ function HomepageHeader() {
function
Structure
()
{
function
Structure
()
{
const
{
siteConfig
}
=
useDocusaurusContext
();
const
{
siteConfig
}
=
useDocusaurusContext
();
return
(
return
(
<
div
className
=
{
clsx
(
"structure"
,
styles
.
structure
)}
>
<
div
className
=
{
clsx
(
"structure"
,
styles
.
structure
,
styles
.
box_container
)}
>
<
div
className
=
"image"
><
img
<
div
className
=
{
clsx
(
"image"
,
styles
.
box
)}
><
img
src
=
"http://www.aiwenmo.com/dinky/docs/zh-CN/concept_architecture/architecture/dinky.png"
src
=
"http://www.aiwenmo.com/dinky/docs/zh-CN/concept_architecture/architecture/dinky.png"
alt
=
"structure"
/><
/div
>
alt
=
"structure"
/><
/div
>
<
div
className
=
"text"
>
<
div
className
=
{
clsx
(
"text"
,
styles
.
box
)}
>
<
div
className
=
"title"
>
<
div
className
=
"title"
>
{
siteConfig
.
customFields
.
structTitle
}
{
siteConfig
.
customFields
.
structTitle
}
<
/div
>
<
/div
>
...
@@ -98,12 +98,10 @@ function Structure() {
...
@@ -98,12 +98,10 @@ function Structure() {
{
/*<div className="sub-title">*/
}
{
/*<div className="sub-title">*/
}
{
/* {siteConfig.customFields.structSubTitle}*/
}
{
/* {siteConfig.customFields.structSubTitle}*/
}
{
/*</div><br/>*/
}
{
/*</div><br/>*/
}
<
div
className
=
"description"
>
<
div
className
=
{
clsx
(
"description"
,
styles
.
box
)}
>
{
/*{siteConfig.customFields.structDescription}*/
}
{
/*{siteConfig.customFields.structDescription}*/
}
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
Dinky
是一个开箱即用的一站式实时计算平台
<
br
/>
Dinky
是一个开箱即用的一站式实时计算平台
,
以
Apache
Flink
为基础,连接
OLAP
和数据湖等众多框架
,
致力于流批一体和湖仓一体的建设与实践。
以
Apache
Flink
为基础,连接
OLAP
和数据湖等众多框架
<
br
/>
致力于流批一体和湖仓一体的建设与实践。
<
/div
>
<
/div
>
<
br
/>
<
br
/>
<
a
href
=
{
siteConfig
.
customFields
.
learningMore
}
target
=
"_blank"
className
=
"action-button"
>
<
a
href
=
{
siteConfig
.
customFields
.
learningMore
}
target
=
"_blank"
className
=
"action-button"
>
...
...
docs/src/pages/index.module.css
View file @
a9402a3b
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
.buttons
{
.buttons
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
space-around
;
}
}
.structure
{
.structure
{
...
@@ -52,3 +52,25 @@
...
@@ -52,3 +52,25 @@
align-items
:
flex-start
;
align-items
:
flex-start
;
justify-content
:
left
justify-content
:
left
}
}
/* 响应式布局 */
.box_container
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.box
{
/* background-color: #f1f1f1; */
/* border: 1px solid #ccc; */
/* padding: 20px; */
margin-left
:
10px
;
margin-right
:
10px
;
/* text-align: center; */
flex
:
1
;
}
@media
(
max-width
:
900px
)
{
.box
{
flex-basis
:
50%
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment