1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-20 21:59:42 +02:00
documize/core/section/register.go

42 lines
1.5 KiB
Go
Raw Normal View History

2016-07-07 18:54:16 -07:00
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
package section
import (
"fmt"
2016-07-20 15:58:37 +01:00
"github.com/documize/community/core/section/code"
"github.com/documize/community/core/section/gemini"
"github.com/documize/community/core/section/github"
"github.com/documize/community/core/section/markdown"
"github.com/documize/community/core/section/papertrail"
"github.com/documize/community/core/section/provider"
"github.com/documize/community/core/section/table"
"github.com/documize/community/core/section/trello"
"github.com/documize/community/core/section/wysiwyg"
"github.com/documize/community/core/log"
2016-07-07 18:54:16 -07:00
)
// Register sections
func Register() {
provider.Register("code", &code.Provider{})
provider.Register("gemini", &gemini.Provider{})
provider.Register("github", &github.Provider{})
provider.Register("markdown", &markdown.Provider{})
provider.Register("papertrail", &papertrail.Provider{})
provider.Register("table", &table.Provider{})
provider.Register("trello", &trello.Provider{})
provider.Register("wysiwyg", &wysiwyg.Provider{})
p := provider.List()
log.Info(fmt.Sprintf("Documize registered %d smart sections", len(p)))
}