Wei Zhong created FLINK-18849:
---------------------------------
Summary: Improve the code tabs of the Flink documents
Key: FLINK-18849
URL:
https://issues.apache.org/jira/browse/FLINK-18849 Project: Flink
Issue Type: Improvement
Components: Documentation
Reporter: Wei Zhong
Currently there are some minor problems on the code tabs of the Flink documents:
# There are some tab labels like `data-lang="Java/Scala"`, which can not be changed synchronously with the label `data-lang="Java"` and `data-lang="Scala"`.
# Case sensitive. If one code tab has a label `data-lang="java"` and another has the label `data-lang="Java"` in one page. They would not change synchronously.
# Duplicated content. Many contents in the "Java" tab are the same as the "Scala" tab.
I would like to improve the situation by following way:
1. When parsing the label like `data-lang="Java/Scala"`, we can clone the tab content, let one has the label `data-lang="Java"`, another has the label `data-lang="Scala"`.
2. Then force the first character of the data-lang value to be upper case. i.e. if the label is `data-lang="java"`, it will be modified to `data-lang="Java"`.
This way we can remove the duplicated content via merge them into one element with a `data-lang="Java/Scala"` label. And all the tab can be changed synchronously when they are clicked.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)