Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractAttrs ¶ added in v0.1.1
func URLStripQueryString ¶
Types ¶
type Document ¶
type Document struct { FilePath string // Relative to the shell session SitePath string // Relative to the site root Directory string NodesOfInterest []*html.Node State DocumentState // contains filtered or unexported fields }
func (*Document) IsHashValid ¶ added in v0.1.1
type DocumentState ¶
type DocumentState struct {
FaviconPresent bool
}
Used by checks that depend on the document being parsed
type DocumentStore ¶ added in v0.1.1
type DocumentStore struct { BasePath string // Path, relative to cwd, the site is located in IgnorePatterns []interface{} // Regexes of directories to ignore Documents []*Document // All of the documents, used to iterate over DocumentPathMap map[string]*Document // Maps slash separated paths to documents DocumentExtension string // File extension to look for DirectoryIndex string // What file is the index of the directory }
func NewDocumentStore ¶ added in v0.1.1
func NewDocumentStore() DocumentStore
func (*DocumentStore) AddDocument ¶ added in v0.1.1
func (dS *DocumentStore) AddDocument(doc *Document)
func (*DocumentStore) Discover ¶ added in v0.1.1
func (dS *DocumentStore) Discover()
func (*DocumentStore) ResolvePath ¶ added in v0.1.1
func (dS *DocumentStore) ResolvePath(refPath string) (*Document, bool)
func (*DocumentStore) ResolveRef ¶ added in v0.1.1
func (dS *DocumentStore) ResolveRef(ref *Reference) (*Document, bool)
type Reference ¶
func (*Reference) IsInternalAbsolute ¶
func (*Reference) RefSitePath ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.