diff options
author | Karan Thakkar <karanjthakkar@gmail.com> | 2017-02-22 20:12:46 +0530 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-02-24 02:43:25 +0100 |
commit | 6ae159fa35b21c6abb478a99ea1c9e76813dba3b (patch) | |
tree | 5efb1d65c41b4cd41ca1817bcd36025ba2a46c75 /test/doctool/test-doctool-html.js | |
parent | f385f77f1d011786cb1c5e80f257fa043f4c608b (diff) | |
download | node-new-6ae159fa35b21c6abb478a99ea1c9e76813dba3b.tar.gz |
doc: change broken fg(1) links to fg(1p)
The fg(1) links in the readline docs have moved
from `http://man7.org/linux/man-pages/man1/fg.1.html`
to `http://man7.org/linux/man-pages/man1/fg.1p.html`.
It also modifies the regex for replacing man page links
in docs by allowing optional character after number.
eg: fg(1) and fg(1p) will both be now parsed and replaced.
Fixes: https://github.com/nodejs/node/issues/11492
PR-URL: https://github.com/nodejs/node/pull/11504
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'test/doctool/test-doctool-html.js')
-rw-r--r-- | test/doctool/test-doctool-html.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/doctool/test-doctool-html.js b/test/doctool/test-doctool-html.js index a990d35507..e119ee8617 100644 --- a/test/doctool/test-doctool-html.js +++ b/test/doctool/test-doctool-html.js @@ -56,13 +56,16 @@ const testData = [ '<tr><td>v4.2.0</td><td><p>The <code>error</code> parameter can now be' + 'an arrow function.</p></td></tr></table></details>' + '</div> ' + - '<p>Describe <code>Foobar II</code> in more detail here.</p>' + + '<p>Describe <code>Foobar II</code> in more detail here.' + + '<a href="http://man7.org/linux/man-pages/man1/fg.1.html">fg(1)</a></p>' + '<h2>Deprecated thingy<span><a class="mark" ' + 'href="#foo_deprecated_thingy" id="foo_deprecated_thingy">#</a>' + '</span></h2>' + '<div class="api_metadata"><span>Added in: v1.0.0</span>' + '<span>Deprecated since: v2.0.0</span></div><p>Describe ' + - '<code>Deprecated thingy</code> in more detail here.</p>' + + '<code>Deprecated thingy</code> in more detail here.' + + '<a href="http://man7.org/linux/man-pages/man1/fg.1p.html">fg(1p)</a>' + + '</p>' + '<h2>Something<span><a class="mark" href="#foo_something" ' + 'id="foo_something">#</a></span></h2> ' + '<!-- This is not a metadata comment --> ' + |