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

Feature: add Stripe-style 'pick your language' examples #117

Closed
mikemaccana opened this issue Jul 16, 2019 · 3 comments
Closed

Feature: add Stripe-style 'pick your language' examples #117

mikemaccana opened this issue Jul 16, 2019 · 3 comments

Comments

@mikemaccana
Copy link
Contributor

mikemaccana commented Jul 16, 2019

Arc 6 docs currently:

image

Which means python folk have to look at JS and Ruby, etc.

Proposing something like https://stripe.com/docs/billing/quickstart:

image

  • Client side JS is just setting a translateX to show the right example (pretty low overhead). We can do this directly or have it generated by Svelte.
  • Setting it once would change all examples on the page
  • We can store preferred lang in a cookie maybe?

What do you think? I can do it if you want.

@mikemaccana mikemaccana changed the title Stripe-style 'pick your language' examples: Feature: add Stripe-style 'pick your language' examples Jul 16, 2019
@brianleroux
Copy link
Member

I think

FUCK YA

esp as we add other runtimes this will be hugely needed

@mikemaccana
Copy link
Contributor Author

We did this in the V6 docs site we could port the code to the V8 docs site....

@tbeseda
Copy link
Member

tbeseda commented Sep 2, 2021

arc.codes now has a tabbed interface for code blocks in different languages. I think one idea that hasn't been implemented yet is to change other code samples on the same view, or even storing the preference across the site
Closing this and we can continue talking further improvements in #239

@tbeseda tbeseda closed this as completed Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants