Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderIndexMDX ¶
func RenderIndexMDX(ctx context.Context, pd PackageData) (string, error)
RenderIndexMDX renders a single package page.
Types ¶
type Options ¶
type Options struct {
// IgnoreFile is an optional path to an extra ignore file, relative to srcDir
// unless absolute. It is applied after .gitignore/.mdxignore.
// Missing files are ignored silently.
IgnoreFile string
}
Options controls generation behavior.
type PackageData ¶
type PackageData struct {
Path string
Name string
ModulePath string
Version string
Synopsis string
Description string
Readme string
DocSource []byte
}
PackageData contains the minimum data needed to render a package page.
Click to show internal directories.
Click to hide internal directories.