(man)
| 104 | |
| 105 | // Returns the path to the html version of the man page |
| 106 | htmlMan (man) { |
| 107 | const sect = manSectionNames[man.match(manNumberRegex)[1]] |
| 108 | const f = path.basename(man).replace(manNumberRegex, '') |
| 109 | return 'file:///' + path.resolve(this.npm.npmRoot, `docs/output/${sect}/${f}.html`) |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | module.exports = Help |