(tag)
| 835 | |
| 836 | |
| 837 | function renderArgWithDoxxx(tag) { |
| 838 | const optionalText = (tag.name.match(/^\[/)) ? '(optional) ' : '' |
| 839 | if (tag.name === '[data]') { |
| 840 | // console.log('tag', tag) |
| 841 | } |
| 842 | let typesDescription = tag.types.join('|') |
| 843 | if (tag.types.includes('GENERIC')) { |
| 844 | console.log('tag', tag) |
| 845 | console.log(tag.typesDescription) |
| 846 | } |
| 847 | // Remove link from description |
| 848 | // if (tag.typesDescription.match((/<a href/))) { |
| 849 | // // console.log('tag.typesDescription', tag.typesDescription) |
| 850 | // // console.log('tag.types[0]', tag.types[0]) |
| 851 | // const realLink = SRC_LINKS[tag.types[0]] |
| 852 | // // console.log('realLink', realLink) |
| 853 | // if (realLink) { |
| 854 | // typesDescription = tag.typesDescription.replace(/href="(.*?)"/, `href="${realLink}"`) |
| 855 | // } |
| 856 | // } |
| 857 | return `- **${tag.name}** ${optionalText}${typesDescription} ${tag.description}` |
| 858 | } |
| 859 | |
| 860 | function renderExample(example) { |
| 861 | return `**Example** |
nothing calls this directly
no outgoing calls
no test coverage detected