MCPcopy Create free account
hub / github.com/2fd/graphdoc / PluginInterface

Interface PluginInterface

lib/interface.d.ts:15–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 * PluginInterface
14 */
15export 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 *

Callers

nothing calls this directly

Implementers 11

NavigationDirectivesplugins/default.ts
NavigationSchemaplugins/navigation.schema.ts
NavigationInputsplugins/navigation.input.ts
NavigationInterfacesplugins/navigation.interface.ts
NavigationDirectivesplugins/navigation.directive.ts
NavigationScalarsplugins/navigation.union.ts
NavigationScalarsplugins/navigation.scalar.ts
NavigationEnumsplugins/navigation.enum.ts
NavigationObjectsplugins/navigation.object.ts
SchemaPluginplugins/document.schema/index.ts
RequireByPluginplugins/document.require-by/index.ts

Calls

no outgoing calls

Tested by

no test coverage detected