generator

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const FrontMatter = `---

layout: single
type: docs
title: "Documentation | {{ .Description }} | {{ $name }}"

---`

Variables

This section is empty.

Functions

func CollectEntries

func CollectEntries(dir string) []string

func GenerateCommandsTemplate

func GenerateCommandsTemplate() (*template.Template, error)

func GenerateEntriesTemplate

func GenerateEntriesTemplate(txt []byte) (*template.Template, error)

func GenerateFileName

func GenerateFileName(dir, s string) string

func GenerateFileNameFromGlob

func GenerateFileNameFromGlob(dir, s string) string

func GenerateTitleFromFileName

func GenerateTitleFromFileName(file string) string

func GenerateURLFromFileName

func GenerateURLFromFileName(s string) string

func RenderEntry

func RenderEntry(this_entry *Entry) error

Types

type Entry

type Entry struct {
	Title          string
	Template       *template.Template
	Specifications []*Entry
	Examples       []*Entry
	Description    string
	FileName       string
	CmdEntryPoint  string
	URL            string
	BaseURL        string
}

func GenerateEntries

func GenerateEntries(dir, render_dir, description string) ([]*Entry, error)

func GenerateEntry

func GenerateEntry(file, dir, render_dir, description string) (*Entry, error)

Jump to

Keyboard shortcuts

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