Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBookIgnores = []string{
".git", "_git",
"book", "book.ini",
"node_modules",
}
Functions ¶
This section is empty.
Types ¶
type BookInfo ¶
type BookInfo struct { Title string GitRepoIcon string GitRepoUrl string EditUrlTemplate string Custom wabook.CustomConfig Giscus wabook.GiscusConfig }
type BookRendor ¶
type BookRendor struct { Book *wabook.Book BookInfo *BookInfo PageInfos []*PageInfo SidebarItems []*SidebarItem Ignores []string }
func New ¶
func New() *BookRendor
type SidebarItem ¶
type SidebarTree ¶
type SidebarTree []*SidebarItem
func (SidebarTree) Children ¶
func (p SidebarTree) Children(idx int) []int
func (SidebarTree) Siblings ¶
func (p SidebarTree) Siblings(idx int) []int
type StaticPageInfo ¶
type StaticPageInfo struct {
Content string
}
Click to show internal directories.
Click to hide internal directories.