MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / docsAppium

Function docsAppium

Bunoshfile.js:398–417  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

396 * Generate docs for Appium by merging in public WebDriver methods.
397 */
398export async function docsAppium() {
399 const documentation = await import('documentation')
400 const onlyWeb = [/Title/, /Popup/, /Cookie/, /Url/, /^press/, /^refreshPage/, /^resizeWindow/, /Script$/, /cursor/, /Css/, /Tab$/, /^wait/]
401 const webdriverDoc = await documentation.build(['docs/build/WebDriver.js'], {
402 shallow: true,
403 order: 'asc',
404 })
405 const doc = await documentation.build(['docs/build/Appium.js'], {
406 shallow: true,
407 order: 'asc',
408 })
409
410 for (const method of webdriverDoc[0].members.instance) {
411 if (onlyWeb.filter(f => method.name.match(f)).length) continue
412 if (doc[0].members.instance.filter(m => m.name === method.name).length) continue
413 doc[0].members.instance.push(method)
414 }
415 const output = await documentation.formats.md(doc)
416 fs.writeFileSync('docs/helpers/Appium.md', output)
417}
418
419/**
420 * Update the codecept.io website: regenerate changelog, sync wiki, push docs and publish.

Callers 1

docsHelpersFunction · 0.70

Calls 2

filterMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected