docs

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessCategory

func ProcessCategory(ctx context.Context, c *readme.Client, metadata CatMetadata) error

TODO: improve tracking of final category slug - may need to pass it back

func ProcessDoc

func ProcessDoc(ctx context.Context, c *readme.Client, metadata DocMetadata) error

Types

type CatMetadata

type CatMetadata struct {
	Title string
	Slug  string
}

type Catalog

type Catalog struct {
	Categories map[string]struct{}
	Docs       map[string]DocMetadata
}

func WalkCatalog

func WalkCatalog(ctx context.Context, docsPath string) (Catalog, error)

type DocMetadata

type DocMetadata struct {
	Category string
	Parent   string
	Slug     string
	Filepath string
}

Jump to

Keyboard shortcuts

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