File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -378,18 +378,25 @@ def add_link(jsondata):
378
378
# --------------------------------------------------------------------------
379
379
keywords = {}
380
380
for j in jsondatas :
381
+ jkeywords = []
381
382
if ("name" in j ):
382
383
item = { "title" : get_surround (j ), "path" : "/Reference#" + get_link (j ) };
383
384
jkeywords = [ j ["name" ] ]
384
385
if get_prefixed_name (j )!= j ["name" ]: jkeywords .append (get_prefixed_name (j ))
385
386
if "class" in j : jkeywords .append (j ["class" ])
386
-
387
- for k in jkeywords :
388
- k = k .lower ()
389
- if not k in keywords :
390
- keywords [k ] = [ item ]
391
- else :
392
- keywords [k ].append (item )
387
+ elif j ["type" ]== "library" :
388
+ item = { "title" : j ["class" ]+ " Library" , "path" : "/Reference#" + j ["class" ] };
389
+ jkeywords = [ j ["class" ] ]
390
+ elif j ["type" ]== "class" :
391
+ item = { "title" : j ["class" ]+ " Class" , "path" : "/Reference#" + j ["class" ] };
392
+ jkeywords = [ j ["class" ] ]
393
+
394
+ for k in jkeywords :
395
+ k = k .lower ()
396
+ if not k in keywords :
397
+ keywords [k ] = [ item ]
398
+ else :
399
+ keywords [k ].append (item )
393
400
394
401
#print(json.dumps(keywords, sort_keys=True, indent=2))
395
402
keywordFile = open ('function_keywords.js' , 'w' )
You can’t perform that action at this time.
0 commit comments