Skip to content
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

Create a include to implement a tab for android and ios code example #5003

Closed
muuki88 opened this issue Nov 30, 2023 · 0 comments · Fixed by #5015
Closed

Create a include to implement a tab for android and ios code example #5003

muuki88 opened this issue Nov 30, 2023 · 0 comments · Fixed by #5015
Assignees

Comments

@muuki88
Copy link
Contributor

muuki88 commented Nov 30, 2023

To reduce duplication for the mobile SDK documentation, we should provide a simple tab component that lets you specify Kotlin and Swift code. The explanations are mostly the same and only the code differs.

Resources

{% capture iosCode %}
 ```swift
 This is some neat swift code
 ``
{% endcapture %}

{% capture androidCode %}
```kotlin
This is some neat swift code
``
{% endcapture %}

{% include code/mobile-code.html swift=iosCode kotlin=androidCode %}
@muuki88 muuki88 self-assigned this Nov 30, 2023
muuki88 added a commit that referenced this issue Dec 7, 2023
Add a jekyll include to provide code examples for kotlin and swift. Fixes #5003
muuki88 added a commit that referenced this issue Dec 7, 2023
… (#5015)

Add a jekyll include to provide code examples for kotlin and swift. Fixes #5003
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 a pull request may close this issue.

1 participant