[tern addon] Add showDocs method