code: function createTable (spec) {
    assert.equal(typeof spec.paths, 'object', 'paths should be object')
  
    const tableHead = u('tableHeader', [
      u('tableCell', [ u('text', 'Path') ]),
      u('tableCell', [ u('text', 'Method') ]),
      u('tableCell', [ u('text', 'Summary') ])
    ])
  
    // convert swagger to table rows
    const tableRows = Object.keys(spec.paths).reduce(function (arr, route) {
      Object.keys(spec.paths[route]).forEach(function (method) {
        const summary = spec.paths[route][method].summary || '[ not available ]'
        arr.push(u('tableRow', [
          u('tableCell', [ u('text', route) ]),
          u('tableCell', [ u('text', method.toUpperCase()) ]),
          u('tableCell', [ u('text', summary) ])
        ]))
      })
      return arr
    }, [])
  
    return u('table', [tableHead].concat(tableRows))
  }
docs: create a table obj -> [obj]