MCPcopy
hub / github.com/rapi-doc/RapiDoc / renderLongFormatExamples

Method renderLongFormatExamples

src/components/api-request.js:305–315  ·  view source on GitHub ↗
(exampleList, paramType, paramName)

Source from the content-addressed store, hash-verified

303 }
304
305 renderLongFormatExamples(exampleList, paramType, paramName) {
306 return html` <ul style="list-style-type: disclosure-closed;">
307 ${exampleList.map((v) => html`
308 <li>
309 ${this.renderExample(v, paramType, paramName)}
310 ${v.summary?.length > 0 ? html`<span>&lpar;${v.summary}&rpar;</span>` : ''}
311 ${v.description?.length > 0 ? html`<p>${unsafeHTML(marked(v.description))}</p>` : ''}
312 </li>
313 `)}
314 </ul>`;
315 }
316
317 exampleListTemplate(paramName, paramType, exampleList = []) {
318 return html` ${

Callers 1

exampleListTemplateMethod · 0.95

Calls 4

renderExampleMethod · 0.95
htmlFunction · 0.85
markedFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected