Skip to content

Conversation

eljefedelrodeodeljefe
Copy link
Contributor

Picked up from @rvagg's very nice es-swicher on nodejs/nodejs.org#467

This PR adds a switchable box to the docs, with which the user can switch between ecmascript versions. Though this must be extended for an n-th iteration of ecmascript the soulution would be quite clean: The markdown just duplicates content linearly and old browser potentially just render two boxes.

cc/ @nodejs/documentation

TODOs:

synopsis_node_js_v6_0_0-pre_manual___documentation
buffer_node_js_v6_0_0-pre_manual___documentation

@chrisdickinson
Copy link
Contributor

The resolution on this from the Docs WG was that we weren't going to implement this approach due to the maintenance burden of providing two examples for every existing example in the docs, but instead look into better highlighting for ES2015 syntax.

@chrisdickinson
Copy link
Contributor

(For posterity: the resolution.)

Edit: Sorry for the confusion. I didn't think to comment on the adjoining nodejs.org issue when posting the resolution from the Docs WG meeting, so the resolution didn't get to all of the places it needed to be — mea culpa!

@eljefedelrodeodeljefe
Copy link
Contributor Author

A pity. Thanks.

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

Successfully merging this pull request may close these issues.

2 participants