summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2019-07-05 16:35:19 -0700
committerMichaƫl Zasso <targos@protonmail.com>2019-07-20 11:05:24 +0200
commit9be1111179e7460552b4b362811c2ab95fa7f48d (patch)
tree4ce0d08654209016da547d0e496a1140631e1728 /doc
parenta8b094cf3b9bfe1e2dbc56744a71145d37f59007 (diff)
downloadandroid-node-v8-9be1111179e7460552b4b362811c2ab95fa7f48d.tar.gz
android-node-v8-9be1111179e7460552b4b362811c2ab95fa7f48d.tar.bz2
android-node-v8-9be1111179e7460552b4b362811c2ab95fa7f48d.zip
doc: move Usage and Example to same header level
Having Example under Usage in synopsis.md is misleading. That suggests that the examples will be examples of the CLI usage, but the example section is mostly about writing a simple web server. Ideally, the Usage section should be moved to cli.md and the Example section should constitute a Getting Started or Quick Start page. But for now, make them equals under a combined header so that the Table of Contents and the header/layout of the page is not confusing or misleading. PR-URL: https://github.com/nodejs/node/pull/28570 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/synopsis.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/synopsis.md b/doc/api/synopsis.md
index 5c4cb820e4..c296ffb0fa 100644
--- a/doc/api/synopsis.md
+++ b/doc/api/synopsis.md
@@ -1,4 +1,6 @@
-# Usage
+# Usage & Example
+
+## Usage
<!--introduced_in=v0.10.0-->
<!--type=misc-->