elastic / elastic/docs

[Discuss] Simplify code example usage, remove "View in Console"

Open
#1,238 9 comments 0 reactions 0 assignees View on GitHub
question team-discuss
Dominant language
Ruby
Stars
265
Forks
347
Avg merge
3d 15h
Merged PRs (30d)
2

Description

The impetus behind this proposal is multi-faceted:

* I can't seem to get "View in Console" to work for me (https://github.com/elastic/kibana/issues/9396 describes my experience)
* As a workaround to this feature, I can copy the example, navigate to Console and paste it in
* If this feature is this difficult to use and the workaround is so simple, then is the feature worth it?

I suggest that we can simplify the user experience and deliver the same value by removing this feature, adding "cURL" as one of the language options, and presenting a single "Copy" button that will copy the content of the example in whichever language it's presented in. Users can paste it wherever they want to use it

### Current
![image](https://user-images.githubusercontent.com/1238659/66000524-70101a00-e454-11e9-9ad9-af5fa7d20054.png)

### Proposed
![image](https://user-images.githubusercontent.com/1238659/66000616-a9e12080-e454-11e9-9c91-6ed0ec64dee1.png)

CC @nik9000 @debadair @111andre111

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.