renderdocs

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MPL-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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