From 75eda5d9c915a6b001912fef5de36ebac26513e1 Mon Sep 17 00:00:00 2001 From: Lance Ball Date: Tue, 24 May 2016 10:55:10 -0400 Subject: [PATCH 1/2] doc: Fix formatting for child_process docs. Ref: https://github.com/nodejs/node/issues/6911 Remove unnecessary backslash in `exec()` option `maxBuffer`. Adjust CSS so that links formatted as `code` display a grey background. --- doc/api/child_process.md | 2 +- doc/api_assets/style.css | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index dab853c0bfff8c..ef9b0a42c93184 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -125,7 +125,7 @@ exec('my.bat', (err, stdout, stderr) => { command line parsing should be compatible with `cmd.exe`.) * `timeout` {Number} (Default: `0`) * [`maxBuffer`][] {Number} largest amount of data (in bytes) allowed on - stdout or stderr - if exceeded child process is killed (Default: `200\*1024`) + stdout or stderr - if exceeded child process is killed (Default: `200*1024`) * `killSignal` {String} (Default: `'SIGTERM'`) * `uid` {Number} Sets the user identity of the process. (See setuid(2).) * `gid` {Number} Sets the group identity of the process. (See setgid(2).) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index a9dec759fa85df..fe8b7e1899836e 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -348,8 +348,12 @@ p tt, p code, li code { a code { color: inherit; - background: inherit; - padding: 0; + background:#f2f2f2; + padding: .1em .3em; +} + +a:hover code { + background: #43853d; } .type { From 08a5861f8795d83304c8792619f62026ec009544 Mon Sep 17 00:00:00 2001 From: Lance Ball Date: Tue, 24 May 2016 11:05:29 -0400 Subject: [PATCH 2/2] doc: Remove errant backslash in child_process.doc A lingering backslash removed. --- doc/api/child_process.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/child_process.md b/doc/api/child_process.md index ef9b0a42c93184..1d79d16c1b2c15 100644 --- a/doc/api/child_process.md +++ b/doc/api/child_process.md @@ -195,7 +195,7 @@ replace the existing process and uses a shell to execute the command.* * `encoding` {String} (Default: `'utf8'`) * `timeout` {Number} (Default: `0`) * [`maxBuffer`][] {Number} largest amount of data (in bytes) allowed on - stdout or stderr - if exceeded child process is killed (Default: `200\*1024`) + stdout or stderr - if exceeded child process is killed (Default: `200*1024`) * `killSignal` {String} (Default: `'SIGTERM'`) * `uid` {Number} Sets the user identity of the process. (See setuid(2).) * `gid` {Number} Sets the group identity of the process. (See setgid(2).)