This is the repository containing all the source code of http://streampark.apache.org
.
This guide will guide you how to contribute to the Apache StreamPark™(Incubating) website.
dev is the default branch. For all modifications, please fork first, and then proceed on the main branch.
dev #default branch
This website is compiled using node, using Docusaurus(2.4.3) framework components
-
Download and install nodejs, The supported versions are as follows:
-
Download and install nodejs (version>=16.14 and version<=18)
-
Clone the code to the local
git clone git@github.com:apache/incubator-streampark-website.git
-
Run
npm install
to install the required dependent libraries. -
Run
npm run start
in the root directory, you can visit http://localhost:3000 to view the English mode preview of the site -
Run
npm run start-zh
in the root directory, you can visit http://localhost:3000 to view the Chinese mode preview of the site -
To generate static website resource files, run
npm run build
. The static resources of the build are in the build directory.
|-- community
|-- docs // The next version of the document that will be released soon
|-- download
|-- faq // Q&A
|-- i18n
| -- zh-CN //Internationalized Chinese
| |-- code.json
| |-- docusaurus-plugin-content-docs
| |-- docusaurus-plugin-content-docs-community
| |-- docusaurus-plugin-content-docs-download
| |-- docusaurus-plugin-content-docs-faq
| -- docusaurus-theme-classic
|-- resource // Original project files for architecture/timing diagram/flow chart, etc.
|-- src
| |-- components
| |-- css
| |-- js
| |-- pages
| | |-- home
| | |-- index.jsx
| | |-- team
| | |-- user
| | -- versions
| |-- styles
|-- static // Picture static resource
| |-- doc // document picture
| |-- image //document common picture
| |-- image_en //English document picture
| |-- image_zh //Chinese document picture
| |-- user // users picture
| |-- home // homepage picture
| |-- image // common picture
|-- docusaurus.config.js
Use all lowercase, separated by underscores. If there is a plural structure, use plural nomenclature, and do not use plural abbreviations
Positive example: scripts / styles / components / images / utils / layouts / demo_styles / demo-scripts / img / doc
Counter example: script / style / demoStyles / imgs / docs
All lowercase, separated by a dash
Positive example: render-dom.js / signup.css / index.html / company-logo.png
Counter example: renderDom.js / UserManagement.html
Image resources are unified under static/{module name}
css and other style files are placed in the src/css
directory
Except for the homepage, team, user, Docs>All Version module page, all other pages can be directly jumped to the corresponding github resource modification page through the'Edit this page' button at the bottom
Visit the page http://streampark.apache.org
Located in src/pages/home
├─home
│ languages.json // Home page Chinese and English configuration
│ index.less // homepage style
Visit the page http://streampark.apache.org/team
Located in src/pages/team
├─team
│ languages.json
│ index.js
│ index.less
Visit the page http://streampark.apache.org/user
Located in `src/pages/user`
└─versions
data.json
images.json
index.js
index.less
languages.json