renderdocs

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

renderdocs

renderdocs is meant to be used in Packer plugins. It renders the docs by replacing any @include 'partial.mdx' call with its actual content, for example:

packer-sdc renderdocs -src ./docs-src -dst ./docs-rendered -partials ./docs-partials

Will first copy the contents of the ./docs-src dir into the ./docs-rendered dir (any file in ./docs-rendered that is not present it ./docs-src will be removed), then each file in ./docs-rendered will be parsed and any @include 'partial.mdx' call will be replaced by the contents of the partial.mdx file.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderDocsFolder

func RenderDocsFolder(folder, partials string) error

Types

type Command

type Command struct {
	SrcDir      string
	PartialsDir string
	DstDir      string
}

func (*Command) Flags

func (cmd *Command) Flags() *flag.FlagSet

func (*Command) Help

func (cmd *Command) Help() string

func (*Command) Run

func (cmd *Command) Run(args []string) int

func (*Command) Synopsis

func (cmd *Command) Synopsis() string

Jump to

Keyboard shortcuts

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