mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
document tab basics
This commit is contained in:
parent
5c09407d2f
commit
8caa53bed7
49 changed files with 493 additions and 239 deletions
|
@ -29,6 +29,7 @@ func (*Provider) Meta() provider.TypeMeta {
|
|||
section.Title = "Airtable"
|
||||
section.Description = "Databases, tables, views"
|
||||
section.ContentType = "airtable"
|
||||
section.PageType = "tab"
|
||||
|
||||
return section
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ func (*Provider) Meta() provider.TypeMeta {
|
|||
section.Title = "Code"
|
||||
section.Description = "Formatted code snippets"
|
||||
section.ContentType = "code"
|
||||
section.PageType = "section"
|
||||
section.Order = 9997
|
||||
|
||||
return section
|
||||
|
|
|
@ -35,6 +35,7 @@ func (*Provider) Meta() provider.TypeMeta {
|
|||
section.Title = "Gemini"
|
||||
section.Description = "Work items and tickets"
|
||||
section.ContentType = "gemini"
|
||||
section.PageType = "tab"
|
||||
|
||||
return section
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ func init() {
|
|||
meta.Title = "GitHub"
|
||||
meta.Description = "Link code commits and issues"
|
||||
meta.ContentType = "github"
|
||||
meta.PageType = "tab"
|
||||
meta.Callback = Callback
|
||||
}
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ func (*Provider) Meta() provider.TypeMeta {
|
|||
section.Title = "Markdown"
|
||||
section.Description = "CommonMark based content"
|
||||
section.ContentType = "markdown"
|
||||
section.PageType = "section"
|
||||
section.Order = 9998
|
||||
|
||||
return section
|
||||
|
|
|
@ -38,6 +38,7 @@ func (*Provider) Meta() provider.TypeMeta {
|
|||
section.Title = "Papertrail"
|
||||
section.Description = "Display log entries"
|
||||
section.ContentType = "papertrail"
|
||||
section.PageType = "tab"
|
||||
|
||||
return section
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ type TypeMeta struct {
|
|||
ID string `json:"id"`
|
||||
Order int `json:"order"`
|
||||
ContentType string `json:"contentType"`
|
||||
PageType string `json:"pageType"`
|
||||
Title string `json:"title"`
|
||||
Description string `json:"description"`
|
||||
Preview bool `json:"preview"` // coming soon!
|
||||
|
|
|
@ -39,5 +39,5 @@ func Register() {
|
|||
provider.Register("wysiwyg", &wysiwyg.Provider{})
|
||||
provider.Register("airtable", &airtable.Provider{})
|
||||
p := provider.List()
|
||||
log.Info(fmt.Sprintf("Documize registered %d smart sections", len(p)))
|
||||
log.Info(fmt.Sprintf("Documize registered %d sections and tabs", len(p)))
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ func (*Provider) Meta() provider.TypeMeta {
|
|||
section.Title = "Tabular"
|
||||
section.Description = "Rows, columns for tabular data"
|
||||
section.ContentType = "table"
|
||||
section.PageType = "section"
|
||||
section.Order = 9996
|
||||
|
||||
return section
|
||||
|
|
|
@ -36,6 +36,7 @@ func init() {
|
|||
meta.Title = "Trello"
|
||||
meta.Description = "Embed cards from boards and lists"
|
||||
meta.ContentType = "trello"
|
||||
meta.PageType = "tab"
|
||||
}
|
||||
|
||||
// Provider represents Trello
|
||||
|
|
|
@ -29,6 +29,7 @@ func (*Provider) Meta() provider.TypeMeta {
|
|||
section.Title = "Rich Text"
|
||||
section.Description = "Rich text WYSIWYG"
|
||||
section.ContentType = "wysiwyg"
|
||||
section.PageType = "section"
|
||||
section.Order = 9999
|
||||
|
||||
return section
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue