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

Improve Code Snippet Language Selection in Documentation #1328

Closed
mmabrouk opened this issue Nov 29, 2024 · 5 comments
Closed

Improve Code Snippet Language Selection in Documentation #1328

mmabrouk opened this issue Nov 29, 2024 · 5 comments

Comments

@mmabrouk
Copy link

In the current documentation, each code snippet features tabs for selecting different programming languages. However, currently, users must manually select their language for each individual snippet.

Proposed Enhancement:
It would enhance user experience significantly if the tabs were interconnected. For instance, when a user selects Python in one snippet, all code snippets should automatically switch to Python.

CleanShot 2024-11-29 at 12 21 56@2x

@Anush008
Copy link
Member

Anush008 commented Dec 3, 2024

Hey @mmabrouk. This was also raised in #899 and #132
We decided not to go ahead with this due to #900 (comment).

@mmabrouk
Copy link
Author

mmabrouk commented Dec 3, 2024

Thanks for the answer @Anush008
Looking forward to the new theme!

@Anush008
Copy link
Member

Anush008 commented Dec 3, 2024

@Anush008 Anush008 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2024
@mmabrouk
Copy link
Author

mmabrouk commented Dec 3, 2024

hmmm.. I am a bit confused.

In #900 you say that you will implement this in the new theme. And it seems that you have already migrated to the new theme, yet closed all the issues about this.

Maybe I am missing something.

@Anush008
Copy link
Member

Anush008 commented Dec 3, 2024

This feature will not be implemented. Due to

Now if language changes on a snippet in the middle or the end of the page it makes the whole page jump.

as mentioned in #900 (comment)

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

No branches or pull requests

2 participants