0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-24 03:07:54 +01:00
nodejs/doc/api_assets
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
..
hljs.css doc: add dark mode 2021-01-07 14:22:07 +01:00
js-flavor-cjs.svg tools,doc: add support for several flavors of JS code snippets 2021-03-06 16:13:57 +01:00
js-flavor-esm.svg tools,doc: add support for several flavors of JS code snippets 2021-03-06 16:13:57 +01:00
README.md
style.css tools,doc: add support for several flavors of JS code snippets 2021-03-06 16:13:57 +01:00

API Reference Document Assets

hljs.css

The syntax theme for code snippets in API reference documents.

style.css

The main stylesheet for API reference documents.