docs icon indicating copy to clipboard operation
docs copied to clipboard

🚀 Improvement: Change all examples on page when selecting a particular language

Open ItzNotABug opened this issue 1 year ago • 3 comments

🔖 Feature description

Currently, we have to manually change the language to the one required on 'each' code snippet on some documentation pages. It'd be time saver if any language change is reflected to all the code snippets on the current page.

Pages that I've seen have issues:

  • https://appwrite.io/docs/command-line
  • https://appwrite.io/docs/realtime
  • https://appwrite.io/docs/databases
  • https://appwrite.io/docs/storage
  • https://appwrite.io/docs/authentication

Discord message for the same: https://discord.com/channels/564160730845151244/870534256324124692/1088733426678517790

🎤 Pitch

Selecting say Apple for one section should change all example with swift snippets on the whole page. The Reference docs handle this by allowing to choose the required option from the dropdown at the top of the documentation (X integration with [dropdown here], where X is either a Client or Server.)

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

ItzNotABug avatar Apr 12 '23 17:04 ItzNotABug

Tagging @gewenyu99 here for feedback on this

joeyouss avatar Apr 20 '23 18:04 joeyouss

We've been planning to do this for a while. We have it in our backlog and waiting for a chance to get to it.

Thanks for bringing it up, I'll self assign :)

gewenyu99 avatar Apr 20 '23 18:04 gewenyu99

if the issue is still open, kindly assign it to me!

meenaljain0303 avatar Jun 20 '23 10:06 meenaljain0303