hugo: github.com/gohugoio/hugo/docshelper Index | Files

package docshelper

import "github.com/gohugoio/hugo/docshelper"

Package docshelper provides some helpers for the Hugo documentation, and is of limited interest for the general Hugo user.

Index

Package Files

docs.go

Variables

var DocProviders = make(map[string]DocProvider)

DocProviders contains all DocProviders added to the system.

func AddDocProvider Uses

func AddDocProvider(name string, provider DocProvider)

AddDocProvider adds or updates the DocProvider for a given name.

type DocProvider Uses

type DocProvider func() map[string]interface{}

DocProvider is used to save arbitrary JSON data used for the generation of the documentation.

func (DocProvider) MarshalJSON Uses

func (d DocProvider) MarshalJSON() ([]byte, error)

MarshalJSON returns a JSON representation of the DocProvider.

Package docshelper imports 1 packages (graph) and is imported by 25 packages. Updated 2017-08-04. Refresh now. Tools for package owners.