Docs Contribute
Doris Documentation Contributions
Here we mainly introduce how to modify and contribute to Doris' documents.
How to submit your document modification, please refer to
Documents of historical versions can be submitted directly on apache/doris-website PR, if it is the latest version, it needs to be in [apache/doris-website] (https://github.com/apache/doris-website) and the apache/doris codebase at the same time commit changes.
The following introduces the directory structure of the Doris Website site to facilitate users to modify and submit documents
Doris Website Directory Structureβ
.
βββ README.md
βββ babel.config.js
βββ blog
β βββ 1.1 Release.md
β βββ Annoucing.md
β βββ jd.md
β βββ meituan.md
β βββ release-note-0.15.0.md
β βββ release-note-1.0.0.md
β βββ xiaomi.md
βββ build.sh
βββ community
β βββ design
β β βββ Flink-doris-connector-Design.md
β β βββ doris_storage_optimization.md
β β βββ grouping_sets_design.md
β β βββ metadata-design.md
β βββ
βββ docs
β βββ admin-manual
β β βββ cluster-management
β β βββ config
β β βββ data-admin
β β βββ http-actions
β β βββ maint-monitor
β β βββ multi-tenant.md
β β βββ optimization.md
β β βββ privilege-ldap
β β βββ query-profile.md
β β βββ sql-interception.md
β βββ
βββ docusaurus.config.js
βββ i18n
β βββ en-US
β βββ code.json
β βββ docusaurus-plugin-content-blog
β βββ docusaurus-plugin-content-docs
β βββ docusaurus-plugin-content-docs-community
β βββ docusaurus-theme-classic
βββ package.json
βββ sidebars.json
βββ sidebarsCommunity.json
βββ src
β βββ components
β β βββ Icons
β β βββ More
β β βββ PageBanner
β β βββ PageColumn
β βββ
βββ static
β βββ images
β β βββ Bloom_filter.svg.png
β β βββ .....
β βββ js
β βββ redirect.js
βββ tree.out
βββ tsconfig.json
βββ versioned_docs
β βββ version-0.15
β β βββ administrator-guide
β β βββ best-practices
β β βββ extending-doris
β β βββ getting-started
β β βββ installing
β β βββ internal
β β βββ sql-reference
β β βββ sql-reference-v2
β βββ version-1.0
β βββ administrator-guide
β βββ benchmark
β βββ extending-doris
β βββ faq
β βββ getting-started
β βββ installing
β βββ internal
β βββ sql-reference
β βββ sql-reference-v2
βββ versioned_sidebars
β βββ version-0.15-sidebars.json
β βββ version-1.0-sidebars.json
βββ versions.json
Directory structure description:
Blog Directory
- The English blog directory is under the blog in the root directory, and the English files of all blogs are placed in this directory
- The directory of the Chinese blog is in the
i18n/zh-CN/docusaurus-plugin-content-blog
directory, all Chinese blog files are placed under this - The file names of Chinese and English blogs should be the same
Document Content Directory
The latest version of the English document content is under docs in the root directory
The version of the English documentation is under
versioned_docs/
in the root directoryThis directory only holds documents from historical versions
.
βββ version-0.15
β βββ administrator-guide
β βββ best-practices
β βββ extending-doris
β βββ getting-started
β βββ installing
β βββ internal
β βββ sql-reference
β βββ sql-reference-v2
βββ version-1.0
βββ administrator-guide
βββ benchmark
βββ extending-doris
βββ faq
βββ getting-started
βββ installing
βββ internal
βββ sql-reference
βββ sql-reference-v2Versioning of English documents is under
versioned_sidebars
in the root directory.
βββ version-0.15-sidebars.json
βββ version-1.0-sidebars.jsonThe json file here is written according to the directory structure of the corresponding version
Chinese documentation at
i18n/zh-CN/docusaurus-plugin-content-docs
Below this corresponds to different version directories and json files corresponding to the version, as follows
current is the current latest version of the document. The example corresponds to version 1.1. When modifying, according to the document version to be modified, find the corresponding file modification in the corresponding directory and submit it.
.
βββ current
β βββ admin-manual
β βββ advanced
β βββ benchmark
β βββ data-operate
β βββ data-table
β βββ ecosystem
β βββ faq
β βββ get-starting
β βββ install
β βββ sql-manual
β βββ summary
βββ current.json
βββ version-0.15
β βββ administrator-guide
β βββ best-practices
β βββ extending-doris
β βββ getting-started
β βββ installing
β βββ internal
β βββ sql-reference
β βββ sql-reference-v2
βββ version-0.15.json
βββ version-1.0
β βββ administrator-guide
β βββ benchmark
β βββ extending-doris
β βββ faq
β βββ getting-started
β βββ installing
β βββ internal
β βββ sql-reference
β βββ sql-reference-v2
βββ version-1.0.jsonVersion Json file
Current.json corresponds to the Chinese translation of the latest version of the document, for example:
{
"version.label": {
"message": "1.1",
"description": "The label for version current"
},
"sidebar.docs.category.Getting Started": {
"message": "Quick Start",
"description": "The label for category Getting Started in sidebar docs"
}
.....
}Here
sidebar.docs.category.Getting Started
corresponds tolabel
insidebars.json
in the root directoryFor example, the
sidebar.docs.category.Getting Started
just now corresponds to thesidebar
prefix and the structure insidebars.json
The first is
sidebar + "." + docs + ".'" + [ type ] + [ label ]
.{
"docs": [
{
"type": "category",
"label": "Getting Started",
"items": [
"get-starting/get-starting"
]
},
{
"type": "category",
"label": "Doris Introduction",
"items": [
"summary/basic-summary"
]
}
.....
}Support label translation in the Chinese version json file, no need to describe the document hierarchy, which is described in the
sidebar.json
fileAll documents must be in English, and Chinese can only be displayed. If English is not written, you can create an empty file, otherwise Chinese documents will not be displayed. This applies to all blogs, documents, and community content
Community Documentation
This document does not distinguish between versions and is generic
English documentation is under the
community/
directory in the root directory.Chinese documentation is under
i18n/zh-CN/docusaurus-plugin-content-docs-community/
directory.The directory structure of community documents is controlled in the
sidebarsCommunity.json
file in the root directory,The Chinese translation corresponding to the community documentation directory structure is in the
i18n/zh-CN/docusaurus-plugin-content-docs-community/current.json
file{
"version.label": {
"message": "Next",
"description": "The label for version current"
},
"sidebar.community.category.How to Contribute": {
"message": "Contribution Guidelines",
"description": "The label for category How to Contribute in sidebar community"
},
"sidebar.community.category.Release Process & Verification": {
"message": "Version release and verification",
"description": "The label for category Release Process & Verification in sidebar community"
},
"sidebar.community.category.Design Documents": {
"message": "Design document",
"description": "The label for category Design Documents in sidebar community"
},
"sidebar.community.category.Developer Guide": {
"message": "Developer's Manual",
"description": "The label for category Developer Guide in sidebar community"
}
}
Pictures
All images are in the
static/images
directory
How to write SQL manualβ
SQL manual doc refers to the documentation under docs/sql-manual
. These documents are used in two places:
- Official website document.
- The output of the HELP command.
In order to support HELP command output, these documents need to be written in strict accordance with the following format, otherwise they will fail the admission check.
An example of the SHOW ALTER
command is as follows:
---
{
"title": "SHOW-ALTER",
"language": "en"
}
---
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
## SHOW-ALTER
### Name
SHOW ALTER
### Description
(Describe the syntax)
### Example
(Give some example)
### Keywords
SHOW, ALTER
### Best Practice
(Optional)
Note that, regardless of Chinese or English documents, the above headings are in English, and pay attention to the level of the headings.
Multiple Versionsβ
Website documentation supports version tagging via html tags. You can use the <version>
tag to mark which version a section of content in the document started from, or which version it was removed from.
Parameters introductionβ
parameter | description | value |
---|---|---|
since | supported from this version | version number |
deprecated | removed from this version | version number |
comment | Comment | |
type | There are default and inline styles | No value is passed to indicate the default style, and inline is passed to indicate the inline style |
Note: There must be blank lines before and after the <version>
tag to avoid abnormal style rendering.
Single Tagβ
<version since="1.1">
Apache Doris was first born as Palo project for Baidu's ad reporting business,
officially open-sourced in 2017, donated by Baidu to the Apache Foundation
for incubation in July 2018, and then incubated and operated by members of
the incubator project management committee under the guidance of
Apache mentors. Currently, the Apache Doris community has gathered
more than 300 contributors from nearly 100 companies in different
industries, and the number of active contributors is close to 100 per month.
Apache Doris has graduated from Apache incubator successfully and
become a Top-Level Project in June 2022.
</version>
Rendering style:
Apache Doris was first born as Palo project for Baidu's ad reporting business, officially open-sourced in 2017, donated by Baidu to the Apache Foundation for incubation in July 2018, and then incubated and operated by members of the incubator project management committee under the guidance of Apache mentors. Currently, the Apache Doris community has gathered more than 300 contributors from nearly 100 companies in different industries, and the number of active contributors is close to 100 per month. Apache Doris has graduated from Apache incubator successfully and become a Top-Level Project in June 2022.
Multi Tagβ
<version since="1.2" deprecated="1.5">
# Usage Scenarios
As shown in the figure below, after various data integration and processing, the data sources are usually stored in the real-time data warehouse Doris and the offline data lake or data warehouse (in Apache Hive, Apache Iceberg or Apache Hudi).

Apache Doris is widely used in the following scenarios:
</version>
Rendering style:
Usage Scenarios
As shown in the figure below, after various data integration and processing, the data sources are usually stored in the real-time data warehouse Doris and the offline data lake or data warehouse (in Apache Hive, Apache Iceberg or Apache Hudi).
Apache Doris is widely used in the following scenarios:
Commentsβ
<version since="1.3" comment="This is comment, Both types of processes are horizontally scalable, and a single cluster can support up to hundreds of machines and tens of petabytes of storage capacity. ">
- FrontendοΌFEοΌ: It is mainly responsible for user request access, query parsing and planning, management of metadata, and node management-related work.
- BackendοΌBEοΌ: It is mainly responsible for data storage and query plan execution.
Both types of processes are horizontally scalable, and a single cluster can support up to hundreds of machines and tens of petabytes of storage capacity. And these two types of processes guarantee high availability of services and high reliability of data through consistency protocols. This highly integrated architecture design greatly reduces the operation and maintenance cost of a distributed system.
</version>
Rendering style:
This is comment, Both types of processes are horizontally scalable, and a single cluster can support up to hundreds of machines and tens of petabytes of storage capacity.- FrontendοΌFEοΌ: It is mainly responsible for user request access, query parsing and planning, management of metadata, and node management-related work.
- BackendοΌBEοΌ: It is mainly responsible for data storage and query plan execution.
Both types of processes are horizontally scalable, and a single cluster can support up to hundreds of machines and tens of petabytes of storage capacity. And these two types of processes guarantee high availability of services and high reliability of data through consistency protocols. This highly integrated architecture design greatly reduces the operation and maintenance cost of a distributed system.
Inline Tagβ
In terms of the storage engine, Doris uses columnar storage to encode and compress and read data by column, <version since="1.0" type="inline" > enabling a very high compression ratio while reducing a large number of scans of non-relevant data,</version> thus making more efficient use of IO and CPU resources.
ζΈ²ζζ ·εΌοΌ
In terms of the storage engine, Doris uses columnar storage to encode and compress and read data by column, enabling a very high compression ratio while reducing a large number of scans of non-relevant data, thus making more efficient use of IO and CPU resources.