mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Deploying to gh-pages from  @ ae29754de5 🚀
				
					
				
			This commit is contained in:
		
							parent
							
								
									31225906f7
								
							
						
					
					
						commit
						54e5c4e3ec
					
				
					 122 changed files with 1642 additions and 877 deletions
				
			
		
							
								
								
									
										65
									
								
								js/doc.js
									
										
									
									
									
								
							
							
						
						
									
										65
									
								
								js/doc.js
									
										
									
									
									
								
							|  | @ -45,25 +45,36 @@ CrystalDocs.runQuery = function(query) { | |||
|       }); | ||||
|     } | ||||
| 
 | ||||
|     type.instance_methods.forEach(function(method) { | ||||
|       searchMethod(method, type, "instance_method", query, results); | ||||
|     }) | ||||
|     type.class_methods.forEach(function(method) { | ||||
|       searchMethod(method, type, "class_method", query, results); | ||||
|     }) | ||||
|     type.constructors.forEach(function(constructor) { | ||||
|       searchMethod(constructor, type, "constructor", query, results); | ||||
|     }) | ||||
|     type.macros.forEach(function(macro) { | ||||
|       searchMethod(macro, type, "macro", query, results); | ||||
|     }) | ||||
|     type.constants.forEach(function(constant){ | ||||
|       searchConstant(constant, type, query, results); | ||||
|     }); | ||||
| 
 | ||||
|     type.types.forEach(function(subtype){ | ||||
|       searchType(subtype, query, results); | ||||
|     }); | ||||
|     if (type.instance_methods) { | ||||
|       type.instance_methods.forEach(function(method) { | ||||
|         searchMethod(method, type, "instance_method", query, results); | ||||
|       }) | ||||
|     } | ||||
|     if (type.class_methods) { | ||||
|       type.class_methods.forEach(function(method) { | ||||
|         searchMethod(method, type, "class_method", query, results); | ||||
|       }) | ||||
|     } | ||||
|     if (type.constructors) { | ||||
|       type.constructors.forEach(function(constructor) { | ||||
|         searchMethod(constructor, type, "constructor", query, results); | ||||
|       }) | ||||
|     } | ||||
|     if (type.macros) { | ||||
|       type.macros.forEach(function(macro) { | ||||
|         searchMethod(macro, type, "macro", query, results); | ||||
|       }) | ||||
|     } | ||||
|     if (type.constants) { | ||||
|       type.constants.forEach(function(constant){ | ||||
|         searchConstant(constant, type, query, results); | ||||
|       }); | ||||
|     } | ||||
|     if (type.types) { | ||||
|       type.types.forEach(function(subtype){ | ||||
|         searchType(subtype, query, results); | ||||
|       }); | ||||
|     } | ||||
|   }; | ||||
| 
 | ||||
|   function searchMethod(method, type, kind, query, results) { | ||||
|  | @ -75,13 +86,15 @@ CrystalDocs.runQuery = function(query) { | |||
|       matchedFields.push("name"); | ||||
|     } | ||||
| 
 | ||||
|     method.args.forEach(function(arg){ | ||||
|       var argMatches = query.matches(arg.external_name); | ||||
|       if (argMatches) { | ||||
|         matches = matches.concat(argMatches); | ||||
|         matchedFields.push("args"); | ||||
|       } | ||||
|     }); | ||||
|     if (method.args) { | ||||
|       method.args.forEach(function(arg){ | ||||
|         var argMatches = query.matches(arg.external_name); | ||||
|         if (argMatches) { | ||||
|           matches = matches.concat(argMatches); | ||||
|           matchedFields.push("args"); | ||||
|         } | ||||
|       }); | ||||
|     } | ||||
| 
 | ||||
|     var docMatches = query.matches(type.doc); | ||||
|     if(docMatches){ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue