Skip to content

Commit

Permalink
[feature-#1007] chunjun新官网初版
Browse files Browse the repository at this point in the history
  • Loading branch information
qscgu23 authored and FlechazoW committed Jul 2, 2022
1 parent f505e33 commit c574645
Show file tree
Hide file tree
Showing 51 changed files with 1,054 additions and 2,492 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,6 @@ nohup.out
chunjun-dist/

*/.cache
*/node_modules
*/node_modules
/website/public
/website/public/page-data/
6 changes: 3 additions & 3 deletions docs_zh/ChunJun 通用配置详解.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@

<table>
<tr>
<td colspan={2}>名称</td>
<td colspan="2">名称</td>
<td>说明</td>
<td>是否必填</td>
</tr>
<tr>
<td rowspan={2}>contend</td>
<td rowspan="2">contend</td>
<td>reader</td>
<td>reader插件详细配置</td>
<td>是</td>
Expand All @@ -41,7 +41,7 @@
<td>是</td>
</tr>
<tr>
<td rowspan={7}>setting</td>
<td rowspan="7">setting</td>
<td>speed</td>
<td>速率限制</td>
<td>否</td>
Expand Down
2 changes: 1 addition & 1 deletion docs_zh/开发者指南/如何自定义插件.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ env.java.opts.jobmanager: -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,
env.java.opts.taskmanager: -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5006
```

只需要修改标记的这两个地方,如果是 HA 集群,需要根据日志修改**怎么看日志,怎么修改,自行查资料**
只需要修改标记的这两个地方,如果是 HA 集群,需要根据日志修改**怎么看日志,怎么修改,自行查资料**

![image-20220614172338108](../../website/src/images/doc/contribute/image-20220614172338108.png)

Expand Down
36 changes: 15 additions & 21 deletions website/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,31 @@
require("./src/styles/global.css")
const React = require("react")
const { default: AppHeader } = require("./src/components/AppHeader")
const { default: AppHeaderWhite } = require("./src/components/AppHeaderWhite")

const Layout = require("./src/components/documentsMenu/menu").default
const JsonLayout = require("./src/components/jsonMenu/menu").default
const SpaceLayout = require("./src/components/space/spaceLayout").default
const { default: AppFooter } = require("./src/components/AppFooter")
// You can delete this file if you're not using it
import("./src/assets/sass/index.scss")
// import("./src/assets/sass/index.scss")
exports.wrapPageElement = ({ element, props }) => {
// props provide same data to Layout as Page element will get
// including location, data, etc - you don't need to pass it

const flag = element.key.includes("documents") || element.key.includes("examples") || element.key.includes("download")

return (
<>
<div className=" ">
{element.key.includes("documents") ? (
<>
<div style={{ minHeight: "100vh", backgroundColor: "#fff" }}>
<AppHeaderWhite></AppHeaderWhite>
<Layout {...props}>{element}</Layout>
</div>
</>
) : element.key.includes("examples") ? (
<div style={{ minHeight: "100vh", backgroundColor: "#fff" }}>
<AppHeaderWhite></AppHeaderWhite>
<JsonLayout {...props}>{element}</JsonLayout>
</div>
) : (
<div className="min-h-screen">
{flag ? (
<>
<AppHeader color={true} />
{element.key.includes("documents") && <Layout {...props}>{element}</Layout>}
{element.key.includes("examples") && <JsonLayout {...props}>{element}</JsonLayout>}
</>
) : (
<>
<SpaceLayout {...props}>{element}</SpaceLayout>
)}
</div>
</>
</>
)}
</div>
)
}
7 changes: 4 additions & 3 deletions website/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,22 @@ module.exports = {
resolve: `gatsby-source-filesystem`,
options: {
name: `docs`,
path: path.resolve(__dirname, "../docs"),
path: path.resolve(__dirname, "../docs_zh"),
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `examples`,
path: path.resolve(__dirname, "../examples"),
path: path.resolve(__dirname, "../chunjun-examples/json"),
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
// path: `${__dirname}/src/images`,
path: path.resolve(__dirname, "src/images"),
},
},

Expand Down
Binary file added website/src/assets/img/link.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions website/src/assets/svg/hero-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions website/src/assets/svg/hero-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c574645

Please sign in to comment.