Documentation ¶
Index ¶
- Constants
- Variables
- func ArchivePath() string
- func Build(route, dir string, dao storage.Dao) error
- func BuildPath() string
- func ConfPath() string
- func DefaultTemplateFiles() []string
- func DeployPath() string
- func ExtractRoute(r io.Reader) string
- func GetRemotePage(url string) ([]byte, error)
- func IsQuipBlob(filename string) bool
- func IsQuipThread(filename string) bool
- func IsSummaryFile(filename string) bool
- func LoadQuipDocuments(summary Summary, dao storage.Dao) error
- func ParseSummaryHeader(scanner *bufio.Scanner) string
- func RootPath() string
- func SearchPath() string
- func UpdateSearchIndex(summary Summary, dao storage.Dao) error
- func Validate(dir string) error
- func WatchFiles(dir string, watch chan struct{}, kill chan error)
- type Page
- type QuipClient
- type Sidebar
- type Summary
- type Template
- type Thread
Constants ¶
View Source
const ( README_MD = "README.md" SUMMARY_MD = "SUMMARY.md" SIDEBAR_JSON = "sidebar.json" INDEX_HTML = "index.html" )
Variables ¶
View Source
var DefaultQuipClient = NewQuipClient(os.Getenv("UDOCS_QUIP_ACCESS_TOKEN"))
Functions ¶
func ArchivePath ¶
func ArchivePath() string
func DefaultTemplateFiles ¶
func DefaultTemplateFiles() []string
func DeployPath ¶
func DeployPath() string
func ExtractRoute ¶
func GetRemotePage ¶
func IsQuipBlob ¶
func IsQuipThread ¶
func IsSummaryFile ¶
func ParseSummaryHeader ¶
func SearchPath ¶
func SearchPath() string
func Validate ¶
Validate validates the the given docs directory meets the format required by UDocs. Specifically, the directory must exist, be named "docs" , and include both a README.md and SUMMARY.md file at the root of the directory.
func WatchFiles ¶
Types ¶
type QuipClient ¶
type QuipClient struct {
// contains filtered or unexported fields
}
func NewQuipClient ¶
func NewQuipClient(accessToken string) *QuipClient
type Summary ¶
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func MustParseTemplate ¶
func (*Template) WithParameter ¶
type Thread ¶
type Thread struct { ExpandedUserIds []string `json:"expanded_user_ids"` UserIds []string `json:"user_ids"` HTML string `json:"html"` ThreadMetadata struct { CreatedUsec int64 `json:"created_usec"` UpdatedUsec int64 `json:"updated_usec"` ID string `json:"id"` Title string `json:"title"` Link string `json:"link"` } `json:"thread"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.