Skip to content

EDU-4357: Prototypes language tabs (DO NOT MERGE) #3569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fairlydurable
Copy link
Contributor

@fairlydurable fairlydurable commented May 2, 2025

  • Adds streamlined React component tooling to simplify language-specific content
  • Uses opt-in content. Adds placeholders for languages whose content hasn't yet been created
  • Uses global shared group so tab selection is preserved throughout page and site
  • Can add that content in any order, although canonical order is preferred
  • Sample deployed to: /cloud/deploy-workers-to-aws-eks

For example:

import { LANGUAGE_TAB_GROUP, getLanguageLabel } from '@site/src/constants/languageTabs';
import SdkTabs from '@site/src/components';

<SdkTabs>
<SdkTabs.Python>
```python
TEMPORAL_ADDRESS = os.environ.get("TEMPORAL_ADDRESS", "localhost:7233")
TEMPORAL_NAMESPACE = os.environ.get("TEMPORAL_NAMESPACE", "default")
TEMPORAL_TASK_QUEUE = os.environ.get("TEMPORAL_TASK_QUEUE", "test-task-queue")
TEMPORAL_API_KEY = os.environ.get("TEMPORAL_API_KEY", "")
```
</SdkTabs.Python>
</SdkTabs>

@fairlydurable fairlydurable requested a review from a team as a code owner May 2, 2025 18:26
@fairlydurable fairlydurable changed the title EDU-4357: Prototypes language tabs EDU-4357: Prototypes language tabs (DO NOT MERGE) May 2, 2025
@fairlydurable fairlydurable force-pushed the EDU-4357 branch 2 times, most recently from 69ccebf to 4531d03 Compare May 2, 2025 18:33
@fairlydurable
Copy link
Contributor Author

@axfelix Looks like dprint wants to flatten all my code-fenced items inside my tab groups. :(

- Adds streamlined React component tooling to simplify language-specific
  content
- Uses opt-in content. Adds placeholders for languages whose content
  hasn't yet been created
- Uses global shared group so tab selection is preserved throughout page
  and site
- Can add that content in any order, although canonical order is preferred

For example:

    import { LANGUAGE_TAB_GROUP, getLanguageLabel } from '@site/src/constants/languageTabs';
    import SdkTabs from '@site/src/components';

    <SdkTabs>
    <SdkTabs.Python>
    ```python
    TEMPORAL_ADDRESS = os.environ.get("TEMPORAL_ADDRESS", "localhost:7233")
    TEMPORAL_NAMESPACE = os.environ.get("TEMPORAL_NAMESPACE", "default")
    TEMPORAL_TASK_QUEUE = os.environ.get("TEMPORAL_TASK_QUEUE", "test-task-queue")
    TEMPORAL_API_KEY = os.environ.get("TEMPORAL_API_KEY", "")
    ```
    </SdkTabs.Python>
    </SdkTabs>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant