mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			350 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			350 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package media
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/gohugoio/hugo/docshelper"
 | 
						|
)
 | 
						|
 | 
						|
// This is is just some helpers used to create some JSON used in the Hugo docs.
 | 
						|
func init() {
 | 
						|
	docsProvider := func() map[string]interface{} {
 | 
						|
		docs := make(map[string]interface{})
 | 
						|
 | 
						|
		docs["types"] = DefaultTypes
 | 
						|
		return docs
 | 
						|
	}
 | 
						|
 | 
						|
	docshelper.AddDocProvider("media", docsProvider)
 | 
						|
}
 |