Documentation
¶
Index ¶
Constants ¶
View Source
const ContentDirName = "contents"
View Source
const ImageFolderName = "images"
View Source
const StaticFolderName = "_static"
View Source
const SummaryFileName = "SUMMARY.md"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetType ¶
type AssetType int
AssetType Where we have an asset that is not a markdown file what is its type
type OrderedTocSection ¶
type OrderedTocSection struct { Name string Order int Section *TOCSection }
OrderedTocSection Versions An ordered array of the sections of the book
type OrderedVersionTocs ¶
type OrderedVersionTocs struct { Version string Order int Sections []OrderedTocSection }
OrderedVersionTocs The table of contents for a version, ordered by "Version" and "Order"
type TOCEntry ¶
type TOCEntry struct { Name string `yaml:"name"` File string `yaml:"file"` Order int `yaml:"order"` }
TOCEntry A table of contents entry.
type TOCSection ¶
TOCSection A table of contents sections - the name of the section is held in the Toc map below.
type Toc ¶
type Toc struct {
Sections map[string]*TOCSection `yaml:"Sections"`
}
Toc A table of contents with a map of names to section within a table of contents.
type Version ¶
type Version struct { DestPath string Docs map[string]Doc Images map[string]Asset TOC *Doc Version string }
Version Docs & Assets for a version of the book
type VersionedToc ¶
VersionedToc A map of versions to a table of contents.
func (*VersionedToc) Sort ¶
func (t *VersionedToc) Sort() (ordered []OrderedVersionTocs)
Click to show internal directories.
Click to hide internal directories.