mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
committed by
Bjørn Erik Pedersen
parent
a352e69b02
commit
f0c1852978
@@ -4,6 +4,7 @@ import (
|
||||
"sort"
|
||||
|
||||
"github.com/alecthomas/chroma/v2/lexers"
|
||||
"github.com/alecthomas/chroma/v2/styles"
|
||||
"github.com/gohugoio/hugo/docshelper"
|
||||
)
|
||||
|
||||
@@ -30,7 +31,10 @@ func init() {
|
||||
|
||||
}
|
||||
|
||||
return docshelper.DocProvider{"chroma": map[string]any{"lexers": chromaLexers}}
|
||||
return docshelper.DocProvider{"chroma": map[string]any{
|
||||
"lexers": chromaLexers,
|
||||
"styles": styles.Names(),
|
||||
}}
|
||||
}
|
||||
|
||||
docshelper.AddDocProviderFunc(docsProvider)
|
||||
|
Reference in New Issue
Block a user