document

package
v0.56.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor interface {
	ProcessNode(node *manifest.Node) bool
}

Processor represents document processor

func New

func New(workerCount int, failFast bool, wg *sync.WaitGroup, structure []*manifest.Node, validator linkvalidator.Interface, rhs registry.Interface, hugo hugo.Hugo, writer writers.Writer, skipLinkValidation bool) (Processor, taskqueue.QueueController, error)

New creates a new Worker

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker represents document worker

func NewDocumentWorker

func NewDocumentWorker(validator linkvalidator.Interface, linkResolver linkresolver.Interface, rh registry.Interface, hugo hugo.Hugo, writer writers.Writer, skipLinkValidation bool) *Worker

NewDocumentWorker creates Worker objects

func (*Worker) ProcessNode

func (d *Worker) ProcessNode(ctx context.Context, node *manifest.Node) error

ProcessNode processes a node and writes its content

Directories

Path Synopsis
frontmatterfakes
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors
SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Gardener contributors

Jump to

Keyboard shortcuts

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