dc_index

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GeneratedDocPath = "docs/generated"
)
View Source
const (
	WebDocPathRoot = "docs/"
)

Variables

Functions

func DocName

func DocName(media MediaType, id DocId, lg lang.Lang, opts ...NameOpt) string

DocName Document path and name (without extension)

func GeneratedPath

func GeneratedPath(l lang.Lang, name string) string

func SupplementalDocPath

func SupplementalDocPath(l lang.Lang, name string) string

func WebDocPath

func WebDocPath(refPath bool, cat WebCategory, name string, lg lang.Lang) string

Types

type DocId

type DocId int
const (
	DocRootReadme DocId = iota
	DocRootLicense
	DocRootBuild
	DocRootContributing
	DocRootCodeOfConduct
	DocRootSecurityAndPrivacy

	DocWebHome
	DocWebLicense
	DocWebCommandTableOfContent

	// Changes from the previous release
	DocManualChanges
	// Individual manual for each commands
	DocManualCommand

	// Supplemental
	DocSupplementalPathVariables
	DocSupplementalExperimentalFeature
	DocSupplementalTroubleshooting
	DocSupplementalDropboxBusiness
)

type MediaType

type MediaType int
const (
	MediaRepository MediaType = iota
	MediaWeb
)

type NameOpt

type NameOpt func(opts NameOpts) NameOpts

func CommandName

func CommandName(name string) NameOpt

func RefPath

func RefPath(enable bool) NameOpt

type NameOpts

type NameOpts struct {
	CommandName string `json:"command_name"`
	RefPath     bool   `json:"ref_path"`
}

func (NameOpts) Apply

func (z NameOpts) Apply(opts []NameOpt) NameOpts

type WebCategory

type WebCategory int
const (
	WebCategoryHome WebCategory = iota
	WebCategoryCommand
	WebCategoryGuide
)

Jump to

Keyboard shortcuts

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