apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
946 stars 300 forks source link

[Improvement] Add support for docs link redirects with tabs interconnected #3409

Closed ch3yne closed 3 months ago

ch3yne commented 4 months ago

What would you like to be improved?

In the constructed document, there are tab options in different languages. In similar situations, need to switch between these tabs synchronously to viewing in a single language.

How should we improve?

<Tabs groupId='language' queryString>
  <TabItem value='shell' label='Shell'>Shell</TabItem>
  <TabItem value='java' label='Java'>Java</TabItem>
  <TabItem value='python' label='Python'>Python</TabItem>
</Tabs>

<Tabs groupId='language'>
  <TabItem value='shell' label='Shell'>Shell</TabItem>
  <TabItem value='java' label='Java'>Java</TabItem>
  <TabItem value='python' label='Python'>Python</TabItem>
</Tabs>

Example: Link to view the tab for java

[link](./link?language=java)
c00kie123 commented 4 months ago

Hey, what do you think of this change?

<Tabs groupId='language' queryString>
  <TabItem value='shell' label='Shell'>Shell</TabItem>
  <TabItem value='java' label='Java'>Java</TabItem>
  <TabItem value='python' label='Python'>Python</TabItem>
</Tabs>

<Tabs groupId='language' queryString>
  <TabItem value='shell' label='Shell'>Shell</TabItem>
  <TabItem value='java' label='Java'>Java</TabItem>
  <TabItem value='python' label='Python'>Python</TabItem>
</Tabs>
ch3yne commented 4 months ago

queryString is fine to define it once or multiple times when use the same groupId.