generator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigInit

func DefaultConfigInit() error

func Run

func Run(config Config) error

Types

type Config

type Config struct {
	Notion   `yaml:"notion"`
	Markdown `yaml:"markdown"`
}

type Markdown

type Markdown struct {
	ShortcodeSyntax string `yaml:"shortcodeSyntax"` // hugo,hexo,vuepress
	PostSavePath    string `yaml:"postSavePath"`
	ImageSavePath   string `yaml:"imageSavePath"`
	ImagePublicLink string `yaml:"imagePublicLink"`

	// Optional:
	GroupByMonth bool   `yaml:"groupByMonth,omitempty"`
	Template     string `yaml:"template,omitempty"`
}

type Notion

type Notion struct {
	DatabaseID     string   `yaml:"databaseId"`
	FilterProp     string   `yaml:"filterProp"`
	FilterValue    []string `yaml:"filterValue"`
	PublishedValue string   `yaml:"publishedValue"`
}

Jump to

Keyboard shortcuts

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