Documentation
¶
Index ¶
Constants ¶
View Source
const ReplacePrefix = "const DATA = "
View Source
const ToReplace = "const DATA = {}"
Variables ¶
This section is empty.
Functions ¶
func HSVToRGB ¶
HSVToRGB converts an HSV triple to an RGB triple. taken from https://github.com/Crazy3lf/colorconv/blob/master/colorconv.go
func Render ¶
func Render(parser language.NodeParser, files []string, cfg RenderConfig) error
Types ¶
type DirTree ¶
type DirTree orderedmap.OrderedMap[string, DirTreeEntry]
func NewDirTree ¶
func NewDirTree() *DirTree
func (*DirTree) ColorFor ¶
ColorFor smartly assigns a color for the specified dir based on all the dir tree that the codebase has. Files in the same folder will receive the same color, and colors for each sub folder will be assigned evenly following a radial distribution in an HSV wheel. As it goes deeper into more sub folders, colors fade, but the distribution rules are the same.
type DirTreeEntry ¶
type DirTreeEntry struct {
// contains filtered or unexported fields
}
type RenderConfig ¶
Click to show internal directories.
Click to hide internal directories.