File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ let s: suite = themis#suite (' help' )
2
+
3
+ function ! s: suite .after () abort
4
+ if filereadable (' doc/tags' )
5
+ call delete (' doc/tags' )
6
+ endif
7
+ endfunction
8
+
9
+ function ! s: suite .make_helptags () abort
10
+ " Detect E154
11
+ helptags doc
12
+ endfunction
13
+
14
+ function ! s: suite .__modules__ () abort
15
+ let modules = themis#suite (' helptags for module' )
16
+
17
+ function ! modules.before () abort
18
+ helptags doc
19
+ endfunction
20
+
21
+ function ! modules.__each_modules__ () abort
22
+ let V = vital#of (' vital' )
23
+ for module_name in V.search (' **' )
24
+ let module = V.import (module_name)
25
+ let suite = themis#suite (module_name)
26
+ for func_name in keys (module)
27
+ let tagname = printf (' Vital.%s.%s()' , module_name, func_name)
28
+ execute join ([
29
+ \ printf (' function! suite.%s()' , func_name),
30
+ \ printf (' help %s' , tagname),
31
+ \ ' endfunction' ,
32
+ \ ], " \n " )
33
+ endfor
34
+ endfor
35
+ endfunction
36
+ endfunction
You can’t perform that action at this time.
0 commit comments