mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
dc0dc30a06
## Description [Jira ticket](https://hasurahq.atlassian.net/jira/software/projects/DOCS/boards/19?selectedIssue=DOCS-102). This PR capitalizes Hasura features based on our [feature capitalization guide on the docs wiki](https://hasura.io/docs/wiki/style/hasura-features/). It also introduces some linting by prettier. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7260 Co-authored-by: Samir Talwar <47582+SamirTalwar@users.noreply.github.com> Co-authored-by: Luca Restagno <59067245+lucarestagno@users.noreply.github.com> Co-authored-by: hasura-bot <30118761+hasura-bot@users.noreply.github.com> Co-authored-by: Gil Mizrahi <8547573+soupi@users.noreply.github.com> Co-authored-by: Stefano Magni <173663+NoriSte@users.noreply.github.com> Co-authored-by: Daniel Harvey <4729125+danieljharvey@users.noreply.github.com> Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com> Co-authored-by: Daniele Cammareri <5709409+dancamma@users.noreply.github.com> Co-authored-by: Brandon Martin <40686+codedmart@users.noreply.github.com> GitOrigin-RevId: 5946f313cb44c639fac61e6c7fb44f704ee2a709
56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
---
|
|
sidebar_position: 7
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Tabs
|
|
|
|
Should be a straightforward syntax replacement:
|
|
|
|
```jsx
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
<Tabs className="api-tabs">
|
|
<TabItem value="console" label="Console">
|
|
Click the `Reload` button in the `Remote Schema` section on the Hasura Console.
|
|
</TabItem>
|
|
<TabItem value="api" label="API">
|
|
Make a request to the [reload_remote_schema](#) API.
|
|
</TabItem>
|
|
</Tabs>;
|
|
```
|
|
|
|
Which should render like below:
|
|
|
|
<Tabs className="api-tabs">
|
|
<TabItem value="console" label="Console">
|
|
|
|
Click the `Reload` button in the `Remote Schema` section on the Hasura Console.
|
|
|
|
</TabItem>
|
|
<TabItem value="api" label="API">
|
|
|
|
Make a request to the [reload_remote_schema](#) API.
|
|
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
:::caution Adding Markdown as React Component Children
|
|
|
|
For Docusaurus to parse markdown correctly when added as children of react components (provided by docusaurus).
|
|
There should be an empty line before and after the content itself. AT instances parser still fails due to indentation.
|
|
|
|
So, always start the markdown content at beginning of line and always leave an empty line before and after.
|
|
Do not worry about the indentation for Components - the extra lines would make it good enough for readability.
|
|
|
|
:::
|
|
|
|
:::info
|
|
|
|
Please read more about Tabs usage and syntax in docusaurus [Tabs docs](https://docusaurus.io/docs/markdown-features/tabs).
|
|
|
|
:::
|