docgen

package
v0.0.0-...-b4c4296 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2025 License: GPL-2.0, GPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package docgen contains all the executing code of the docgen CLI but in API form

Index

Constants

This section is empty.

Variables

View Source
var (
	// Verbose enables verbose logging ([LOG] and [WARNING] messages)
	Verbose bool

	// Warning enables [WARNING] messages
	Warning bool

	// ExitStatus is what the recommended exit status should be
	ExitStatus int
)
View Source
var (
	// ReadOnly defined whether docgen should write rendered documents to disk.
	// This option is useful for testing config
	ReadOnly bool

	// Panic defined whether errors should raise a panic. This is useful for
	// debugging because a stack trace gets raised.
	Panic bool
)
View Source
var Config = new(config)

Config is the global configuration for docgen

View Source
var Documents documents

Documents is all of the collated documents pre-rendering

Functions

func ReadConfig

func ReadConfig(path string) (err error)

ReadConfig loads a config file from disk

func Render

func Render() (err error)

Render runs docgen

func SetLogger

func SetLogger(w io.Writer)

SetLogger allows output messages to be redirected

Types

type AssociationValues

type AssociationValues struct {
	Extensions []string `yaml:"Extensions"`
	Mimes      []string `yaml:"Mimes"`
}

AssociationValues are associations registered by murex data-types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL