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

Changing runtime on doc page for one example changes it all for examples #239

Open
filmaj opened this issue Jun 26, 2020 · 0 comments
Open

Comments

@filmaj
Copy link
Member

filmaj commented Jun 26, 2020

Describe the issue
Some individual code blocks on various pages in the docs have a dropdown that lets you pick a runtime to see the example code in (usually JS, Ruby, Python). If there are multiple such code blocks on a single page, if you change the example in one code block, all code blocks also switch their runtime. Additionally, when this occurs, the dropdown does not update for the other code blocks that changed their runtime.

Steps to reproduce
Steps to reproduce the behavior:

  1. Go to https://arc.codes/primitives/http .
  2. Scroll down to bottom of 'Provisioning HTTP functions' section.
  3. Click on the code example dropdown and select a runtime other than JS.
  4. Code block language changes as expected. Cool.
  5. Scroll down to 'Examples' section.
  6. Note that the code block in this section has also changed runtime, even though we didn't change the dropdown for this code block.
  7. Note additionally that the dropdown value has not changed (it is still JS), but the code block language has changed.

Expected behavior
Change runtime in one code block, the change should apply only to that code block. Alternatively, if the change should apply to all code blocks, then we should update the dropdowns for all code blocks to reflect that correct runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants