mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 01:48:04 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			617 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			617 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
//- 💫 INCLUDES > FUNCTIONS
 | 
						|
 | 
						|
//- More descriptive variables for current.path and current.source
 | 
						|
 | 
						|
- CURRENT = current.source
 | 
						|
- SECTION = current.path[0]
 | 
						|
- SUBSECTION = current.path[1]
 | 
						|
 | 
						|
 | 
						|
//- Add prefixes to items of an array (for modifier CSS classes)
 | 
						|
 | 
						|
-   function prefixArgs(array, prefix) {
 | 
						|
-       return array.map(function(arg) {
 | 
						|
-           return prefix + '--' + arg;
 | 
						|
-       }).join(' ');
 | 
						|
-   }
 | 
						|
 | 
						|
 | 
						|
//- Generate GitHub links
 | 
						|
 | 
						|
-   function gh(repo, filepath, branch) {
 | 
						|
-       return 'https://github.com/' + SOCIAL.github + '/' + repo + (filepath ? '/blob/' + (branch || 'master') + '/' + filepath : '' );
 | 
						|
-   }
 |