GeezerVison is showing github.com — tools: create HTML docs with unified/remark/rehype · nodejs/node@5606f0b
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: LICENSE +51Lines changed: 51 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1197,6 +1197,57 @@ The externally maintained libraries used by Node.js are: | 1197 | 1197 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 1198 | 1198 | """ | 1199 | 1199 |
| | 1200 | +- unified, located at deps/unified, is licensed as follows: | | 1201 | + """ | | 1202 | + (The MIT License) | | 1203 | + | | 1204 | + | | 1205 | + | | 1206 | + Permission is hereby granted, free of charge, to any person obtaining a copy | | 1207 | + of this software and associated documentation files (the "Software"), to deal | | 1208 | + in the Software without restriction, including without limitation the rights | | 1209 | + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | | 1210 | + copies of the Software, and to permit persons to whom the Software is | | 1211 | + furnished to do so, subject to the following conditions: | | 1212 | + | | 1213 | + The above copyright notice and this permission notice shall be included in | | 1214 | + all copies or substantial portions of the Software. | | 1215 | + | | 1216 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | | 1217 | + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | | 1218 | + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | | 1219 | + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | | 1220 | + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | | 1221 | + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | | 1222 | + THE SOFTWARE. | | 1223 | + """ | | 1224 | + | | 1225 | +- remark-rehype, located at deps/remark-rehype, is licensed as follows: | | 1226 | + """ | | 1227 | + (The MIT License) | | 1228 | + | | 1229 | + | | 1230 | + | | 1231 | + Permission is hereby granted, free of charge, to any person obtaining | | 1232 | + a copy of this software and associated documentation files (the | | 1233 | + 'Software'), to deal in the Software without restriction, including | | 1234 | + without limitation the rights to use, copy, modify, merge, publish, | | 1235 | + distribute, sublicense, and/or sell copies of the Software, and to | | 1236 | + permit persons to whom the Software is furnished to do so, subject to | | 1237 | + the following conditions: | | 1238 | + | | 1239 | + The above copyright notice and this permission notice shall be | | 1240 | + included in all copies or substantial portions of the Software. | | 1241 | + | | 1242 | + THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | | 1243 | + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | | 1244 | + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | | 1245 | + IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | | 1246 | + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | | 1247 | + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | | 1248 | + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | | 1249 | + """ | | 1250 | + | 1200 | 1251 | - remark-cli, located at tools/remark-cli, is licensed as follows: | 1201 | 1252 | """ | 1202 | 1253 | (The MIT License) | |
Collapse file Copy file name to clipboardExpand all lines: Makefile +7-2Lines changed: 7 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -266,7 +266,6 @@ test: all ## Runs default tests, linters, and builds docs. | 266 | 266 | # can be displayed together | 267 | 267 | $(MAKE) -s build-addons | 268 | 268 | $(MAKE) -s build-addons-napi | 269 | | - $(MAKE) -s test-doc | 270 | 269 | $(MAKE) -s cctest | 271 | 270 | $(MAKE) -s jstest | 272 | 271 |
| @@ -618,7 +617,8 @@ apidocs_json = $(addprefix out/,$(apidoc_sources:.md=.json)) | 618 | 617 | apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*))) | 619 | 618 |
| 620 | 619 | .PHONY: doc-only | 621 | | -doc-only: $(apidoc_dirs) $(apiassets) ## Builds the docs with the local or the global Node.js binary. | | 620 | +doc-only: tools/doc/node_modules \ | | 621 | + $(apidoc_dirs) $(apiassets) ## Builds the docs with the local or the global Node.js binary. | 622 | 622 | # If it's a source tarball, assets are already in doc/api/assets, | 623 | 623 | # no need to install anything, we have already copied the docs over | 624 | 624 | if [ ! -d doc/api/assets ]; then \ | @@ -1089,8 +1089,13 @@ tools/remark-preset-lint-node/node_modules: \ | 1089 | 1089 |
| 1090 | 1090 | .PHONY: lint-md-build | 1091 | 1091 | lint-md-build: tools/remark-cli/node_modules \ | | 1092 | + tools/doc/node_modules \ | 1092 | 1093 | tools/remark-preset-lint-node/node_modules | 1093 | 1094 |
| | 1095 | +.PHONY: tools/doc/node_modules | | 1096 | +tools/doc/node_modules: | | 1097 | + @cd tools/doc && $(call available-node,$(run-npm-install)) | | 1098 | + | 1094 | 1099 | .PHONY: lint-md | 1095 | 1100 | ifneq ("","$(wildcard tools/remark-cli/node_modules/)") | 1096 | 1101 |
| |
Collapse file Copy file name to clipboardExpand all lines: test/doctool/test-doctool-html.js +7-7Lines changed: 7 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,8 +21,8 @@ const toHTML = require('../../tools/doc/html.js'); | 21 | 21 | const testData = [ | 22 | 22 | { | 23 | 23 | file: fixtures.path('sample_document.md'), | 24 | | - html: '<ol><li>fish</li><li><p>fish</p></li><li><p>Redfish</p></li>' + | 25 | | - '<li>Bluefish</li></ol>' | | 24 | + html: '<ol><li>fish</li><li>fish</li></ol>' + | | 25 | + '<ul><li>Redfish</li><li>Bluefish</li></ul>' | 26 | 26 | }, | 27 | 27 | { | 28 | 28 | file: fixtures.path('order_of_end_tags_5873.md'), | @@ -31,7 +31,7 @@ const testData = [ | 31 | 31 | 'id="foo_class_method_buffer_from_array">#</a> </span> </h3>' + | 32 | 32 | '<ul><li><code>array</code><a ' + | 33 | 33 | 'href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/' + | 34 | | - 'Reference/Global_Objects/Array" class="type"><Array></a></li></ul>' | | 34 | + 'Reference/Global_Objects/Array" class="type"><Array></a></li></ul>' | 35 | 35 | }, | 36 | 36 | { | 37 | 37 | file: fixtures.path('doc_with_yaml.md'), | @@ -45,11 +45,11 @@ const testData = [ | 45 | 45 | '<h2>Foobar II<span><a class="mark" href="#foo_foobar_ii" ' + | 46 | 46 | 'id="foo_foobar_ii">#</a></span></h2><div class="api_metadata">' + | 47 | 47 | '<details class="changelog"><summary>History</summary>' + | 48 | | - '<table><tr><th>Version</th><th>Changes</th></tr>' + | | 48 | + '<table><tbody><tr><th>Version</th><th>Changes</th></tr>' + | 49 | 49 | '<tr><td>v5.3.0, v4.2.0</td>' + | 50 | 50 | '<td><p><span>Added in: v5.3.0, v4.2.0</span></p></td></tr>' + | 51 | 51 | '<tr><td>v4.2.0</td><td><p>The <code>error</code> parameter can now be' + | 52 | | - 'an arrow function.</p></td></tr></table></details></div> ' + | | 52 | + 'an arrow function.</p></td></tr></tbody></table></details></div> ' + | 53 | 53 | '<p>Describe <code>Foobar II</code> in more detail here.' + | 54 | 54 | '<a href="http://man7.org/linux/man-pages/man1/fg.1.html"><code>fg(1)' + | 55 | 55 | '</code></a></p><h2>Deprecated thingy<span><a class="mark" ' + | @@ -65,8 +65,8 @@ const testData = [ | 65 | 65 | }, | 66 | 66 | { | 67 | 67 | file: fixtures.path('sample_document.md'), | 68 | | - html: '<ol><li>fish</li><li><p>fish</p></li><li><p>Redfish</p></li>' + | 69 | | - '<li>Bluefish</li></ol>', | | 68 | + html: '<ol><li>fish</li><li>fish</li></ol>' + | | 69 | + '<ul><li>Red fish</li><li>Blue fish</li></ul>', | 70 | 70 | analyticsId: 'UA-67020396-1' | 71 | 71 | }, | 72 | 72 | ]; | |
|