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

Widget for switching between C# and Rust code samples #121

Open
kazimuth opened this issue Dec 30, 2024 · 0 comments
Open

Widget for switching between C# and Rust code samples #121

kazimuth opened this issue Dec 30, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@kazimuth
Copy link
Contributor

kazimuth commented Dec 30, 2024

This would be useful in documents that are not associated with a specific SDK language such as docs/index.md.

It would also be helpful if we can migrate existing documents that are duplicated between languages to single documents with switchable languages embedded. For example, it would be amazing if our module tutorials could switch between Rust and C# inline.

Requirements:

  • Have contents for either:
    • All of our supported client languages
    • All of our supported server languages
  • Synchronize with other such widgets on the page
    • Client-language-switcher widgets should synchronize with only other client-language-switcher-widgets, similarly for servers
    • Maybe should synchronize across the entire site?
  • Support more than just a single code block inside; for example, tutorials might need to include console commands and documentation text that differ between languages.
@kazimuth kazimuth added the documentation Improvements or additions to documentation label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant