From 7510667d87b426af4d0df1063df7b3fb09cc8777 Mon Sep 17 00:00:00 2001 From: Antoine du HAMEL Date: Fri, 7 Aug 2020 10:40:45 +0200 Subject: [PATCH] doc: rename module pages Using a "Modules:" prefix groups all the related pages together when using alphabetical order. Refs: https://github.com/nodejs/modules/issues/539 Backport-PR-URL: https://github.com/nodejs/node/pull/35757 PR-URL: https://github.com/nodejs/node/pull/34663 Reviewed-By: James M Snell Reviewed-By: Guy Bedford Reviewed-By: Trivikram Kamat Reviewed-By: Geoffrey Booth Reviewed-By: Rich Trott --- doc/api/esm.md | 2 +- doc/api/index.md | 4 ++-- doc/api/modules.md | 2 +- doc/api/vm.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 4680fb6b763462..fc154e8f05b512 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -1,4 +1,4 @@ -# ECMAScript modules +# Modules: ECMAScript modules diff --git a/doc/api/index.md b/doc/api/index.md index a6d54e1601c152..eac42930c81ca0 100644 --- a/doc/api/index.md +++ b/doc/api/index.md @@ -25,7 +25,6 @@ * [Deprecated APIs](deprecations.html) * [DNS](dns.html) * [Domain](domain.html) -* [ECMAScript modules](esm.html) * [Errors](errors.html) * [Events](events.html) * [File system](fs.html) @@ -35,7 +34,8 @@ * [HTTPS](https.html) * [Inspector](inspector.html) * [Internationalization](intl.html) -* [Modules](modules.html) +* [Modules: CommonJS modules](modules.html) +* [Modules: ECMAScript modules](esm.html) * [Net](net.html) * [OS](os.html) * [Path](path.html) diff --git a/doc/api/modules.md b/doc/api/modules.md index b4f1abc5a24e10..39b294556c8074 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -1,4 +1,4 @@ -# Modules +# Modules: CommonJS modules diff --git a/doc/api/vm.md b/doc/api/vm.md index 6703921c712e6a..61aee4042b4eff 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -1177,7 +1177,7 @@ queues. [`vm.runInContext()`]: #vm_vm_runincontext_code_contextifiedobject_options [`vm.runInThisContext()`]: #vm_vm_runinthiscontext_code_options [Cyclic Module Record]: https://tc39.es/ecma262/#sec-cyclic-module-records -[ECMAScript Module Loader]: esm.html#esm_ecmascript_modules +[ECMAScript Module Loader]: esm.html#esm_modules_ecmascript_modules [Evaluate() concrete method]: https://tc39.es/ecma262/#sec-moduleevaluation [GetModuleNamespace]: https://tc39.es/ecma262/#sec-getmodulenamespace [HostResolveImportedModule]: https://tc39.es/ecma262/#sec-hostresolveimportedmodule