From 895b91aec3a8ed195cd04d007627e4702abb39a1 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 4 Feb 2009 13:53:52 +0000 Subject: all.html を出力するようにしてみた git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29544 d0d07461-0603-4401-acd4-de1884942a52 --- PMWriter.js | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) (limited to 'PMWriter.js') diff --git a/PMWriter.js b/PMWriter.js index df87a62..73d1d6a 100644 --- a/PMWriter.js +++ b/PMWriter.js @@ -63,6 +63,7 @@ let files = io.readDirectory(pluginDirPath); let indexHtml = <>; + let allHtml = <>; files.forEach(function (file) { if (!/\.js$/.test(file.path)) @@ -122,15 +123,7 @@ // プラグイン毎のドキュメント { - io.writeFile( - io.getFile(outputDir + htmlFilename), - - - {plugin.info.name.toString()} - - - - + let body =

{plugin.info.name.toString()}

@@ -153,9 +146,22 @@
{plugin.info.detail}
+
; + + io.writeFile( + io.getFile(outputDir + htmlFilename), + + + {plugin.info.name.toString()} + + + + + {body} .toString() ); + allHtml += body; } // index.html @@ -217,7 +223,19 @@ ; + allHtml = + + All Plugins + + + + + {allHtml} + + .toString(); + io.writeFile(io.getFile(outputDir + 'index.html'), indexHtml.toString()); + io.writeFile(io.getFile(outputDir + 'all.html'), allHtml.toString()); } commands.addUserCommand( -- cgit v1.2.3