Project Docs Github
Log in
ittf site docs concepts t wizziplugins architect.html.ittf Edit
  • /ittf/site/docs/concepts/t/wizziplugins/architect.html.ittf
  • /ittf/site/docs/concepts/t/section.html.ittf
  • /ittf/site/docs/t/high-code.html.ittf
  • /ittf/site/docs/t/to-docs.html.ittf

/ittf/site/docs/concepts/t/wizziplugins/architect.html.ittf (primary)

edit
                                            
1 $group
2 $
3 var sect = {
4 title: 'Plugin management'
5 };
6 section( §)
7 p Wizzi uses a class that implements the
8 high-code( wizzi.PluginsManager )
9 span Api to resolve and load plugins.
10 p Wizzi Plugins can be nodejs packages installed locally or globally or can be
11 \b folders in packages that make a private use of them.
12 p Plugins used by the
13 to-docs( wizzi.WizziFactory )
14 span class must be requested at initialization time and cannot be changed.
15 \b To use a different plugin set a new instance of
16 \b the Wizzi factory class must be created.
17 ittf-panel
18 title ITTF pseudo-code of the wizzi.WizziFactory.initialize method
19 ittf
20 ...
21 m initialize
22 { options
23 { repo
24 ...
25 { plugins
26 [ items
27 string pluginNameOrFile
28 string pluginsBaseFolder
29 default process.cwd()
30 { test
31 ...
32 p The
33 high-code( items )
34 span property of the
35 high-code( options.plugins )
36 span object is an array of:
37 ul
38 li Package names, when plugins are contained in npm installed nodejs packages
39 li Relative paths to plugins index module, when plugins are contained
40 \b in private folders.
41 span In the case of relative paths the property
42 high-code( pluginsBaseFolder )
43 span of the
44 high-code( options.plugins )
45 span object must contains the base folder of the plugin.
46 h4 View the code
47 p Have a look at how the
48 high-code( wizzi.PluginsManager )
49 span is implemented in the ${}
50 a `wizzi` package
51 href https://github.com/wizzifactory/wizzi/tree/master/packages/wizzi/dist/lib/services/pluginsManager.js

/ittf/site/docs/concepts/t/section.html.ittf

edit
                                            
1 $group
2 $params §
3 article
4 . doc-title
5 id ${sect.id}
6 + ${sect.title}
7 . doc-summary
8 $hook

/ittf/site/docs/t/high-code.html.ittf

edit
                                            
1 $group
2 $params text, kind|@@null
3 $if kind != 'nospace'
4 span ${} ${}
5 code
6 class highlight-code
7 + ${text}
8 $if kind != 'nospace'
9 span ${} ${}

/ittf/site/docs/t/to-docs.html.ittf

edit
                                            
1 a
2 $params name
3 $if name.toLowerCase() === 'mtree' || name.toLowerCase() === 'mtrees'
4 a ${name}
5 href ${wzCtx.Params.baseUrl}/docs/mtrees.html
6 $elif name.toLowerCase() === 'ITTF Document' || name.toLowerCase() === 'ITTF Documents'
7 a ${name}
8 href ${wzCtx.Params.baseUrl}/docs/ittfdocuments.html
9 $elif name === 'Template engine'
10 a ${name}
11 href ${wzCtx.Params.baseUrl}/docs/templateengine.html
12 $elif name.toLowerCase() === 'jswizzi'
13 a ${name}
14 href ${wzCtx.Params.baseUrl}/docs/jswizzi.html
15 $elif name.toLowerCase() === 'wizzi model' || name.toLowerCase() === 'wizzi models'
16 a ${name}
17 href ${wzCtx.Params.baseUrl}/docs/wizzimodels.html
18 $elif name.toLowerCase() === 'wizzi schema' || name.toLowerCase() === 'wizzi schemas'
19 a ${name}
20 href ${wzCtx.Params.baseUrl}/docs/wizzischemas.html
21 $elif name.toLowerCase() === 'wizzi model dom' || name.toLowerCase() === 'wizzi model doms'
22 a ${name}
23 href ${wzCtx.Params.baseUrl}/docs/wizzimodeldoms.html
24 $elif name.toLowerCase() === 'model transformers'
25 a ${name}
26 href ${wzCtx.Params.baseUrl}/docs/modeltransformers.html
27 $elif name.toLowerCase() === 'artifact generations'
28 a ${name}
29 href ${wzCtx.Params.baseUrl}/docs/artifacts.html
30 $elif name.toLowerCase() === 'wizzi api' || name.toLowerCase() === 'wizzi.wizzifactory'
31 a ${name}
32 href ${wzCtx.Params.baseUrl}/docs/wizziapi.html
33 $else
34 h1 ERROR to-docs unknown ${name}
Save
Save & Refresh
Cancel