UNPKG

amelia-sendbird-desk-agent

Version:
30 lines (25 loc) 827 B
/** * Once typedoc generates the documentation, I see a "default" for clicking * and displaying the functions inside the class... And I don't like it. * * So this NodeJS program will replace the value: * * <a href="classes/default.html" class="tsd-kind-icon">default</a> * * For: * * <a href="classes/default.html" class="tsd-kind-icon">Click here to see all the functions</a> * */ const path = __dirname + '/../docs/index.html'; const fs = require('fs') try { const data = fs.readFileSync(path, 'utf8') const output = data.replace( `<a href="classes/default.html" class="tsd-kind-icon">default</a>`, `<a href="classes/default.html" class="tsd-kind-icon">Click here to see all the functions</a>` ); fs.writeFileSync(path, output); } catch (err) { console.error(err) }