datastrato / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://datastrato.ai/docs/
Apache License 2.0
609 stars 193 forks source link

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

Closed ch3yne closed 12 hours ago

ch3yne commented 1 month 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 1 month 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 weeks ago

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