options

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 0 Imported by: 7

Documentation

Index

Constants

View Source
const (
	Markdown     DocsOutput = "markdown"
	Restructured            = "restructured"
	Hugo                    = "hugo"
)
View Source
const (
	HugoProtoDataFile = "ProtoMap.yaml"

	// The relevant extensions when determining how to link to a resource
	HugoResourceExtension    = ".sk"
	DefaultResourceExtension = ".sk.md"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DocsOptions

type DocsOptions struct {
	Output      DocsOutput
	HugoOptions *HugoOptions
}

type DocsOutput

type DocsOutput string

type HugoOptions added in v0.10.21

type HugoOptions struct {
	// Directory where solo-kit should write the cross-project data file
	// If your docs are located in <repo_root>/docs/content/ (which is the case when your Hugo .contentDir="content")
	// then this value will be "docs/data", which will map to <repo_root>/docs/data/
	DataDir string
	// Directory, relative to Hugo's .contentDir, where the generated docs for the apis are placed
	// For example, if your hugo root is <repo_root>/docs, your .contentDir="content" and you want your api docs
	// to be served from "my.website.com/api/<generated>/<api>/<path>"
	// then you should set solo-kit.json's docs_dir="/docs/content/api" and set ApiDir="api"
	ApiDir string
}

Jump to

Keyboard shortcuts

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