0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 14:33:11 +01:00
Commit Graph

2 Commits

Author SHA1 Message Date
mscdex
bde184e8ab
doc: replace text with paths in toggle SVGs
Fixes: https://github.com/nodejs/node/issues/41878

PR-URL: https://github.com/nodejs/node/pull/41885
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2022-02-10 20:00:24 +00:00
Antoine du Hamel
2e1e74e9f8 tools,doc: add support for several flavors of JS code snippets
Enable code example using both modern ESM syntax and legacy CJS syntax.
It adds a toggle on the web interface to let users switch from one
JavaScript flavor to the other.

PR-URL: https://github.com/nodejs/node/pull/37162
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
2021-03-06 16:13:57 +01:00