| 13 | * PluginInterface |
| 14 | */ |
| 15 | export interface PluginInterface { |
| 16 | |
| 17 | /** |
| 18 | * Return section elements that is going to be |
| 19 | * inserted into the side navigation bar. |
| 20 | * |
| 21 | * @example plain javascript: |
| 22 | * [ |
| 23 | * { |
| 24 | * title: 'Schema', |
| 25 | * items: [ |
| 26 | * { |
| 27 | * text: 'Query', |
| 28 | * href: './query.doc.html', |
| 29 | * isActive: false |
| 30 | * }, |
| 31 | * // ... |
| 32 | * } |
| 33 | * // ... |
| 34 | * ] |
| 35 | * |
| 36 | * @example with graphdoc utilities: |
| 37 | * import { NavigationSection, NavigationItem } from 'graphdoc/lib/utility'; |
| 38 | * |
| 39 | * [ |
| 40 | * new NavigationSection('Schema', [ |
| 41 | * new NavigationItem('Query', ./query.doc.html', false) |
| 42 | * ]), |
| 43 | * // ... |
| 44 | * ] |
| 45 | * |
| 46 | * @param {string} [buildForType] - |
| 47 | * the name of the element for which the navigation section is being generated, |
| 48 | * if it is `undefined it means that the index of documentation is being generated |
| 49 | */ |
| 50 | getNavigations?: (buildForType?: string) => NavigationSectionInterface[] | PromiseLike<NavigationSectionInterface[]>; |
| 51 | |
| 52 | /** |
| 53 | * Return section elements that is going to be |
| 54 | * inserted into the main section. |
| 55 | * |
| 56 | * @example plain javascript: |
| 57 | * [ |
| 58 | * { |
| 59 | * title: 'GraphQL Schema definition', |
| 60 | * description: 'HTML' |
| 61 | * }, |
| 62 | * // ... |
| 63 | * ] |
| 64 | * |
| 65 | * @example with graphdoc utilities: |
| 66 | * import { DocumentSection } from 'graphdoc/lib/utility'; |
| 67 | * |
| 68 | * [ |
| 69 | * new DocumentSection('GraphQL Schema definition', 'HTML'), |
| 70 | * // ... |
| 71 | * ] |
| 72 | * |
nothing calls this directly
no outgoing calls
no test coverage detected