feat(plugins): worked on markdown support for plugin page, #4275

This commit is contained in:
Torkel Ödegaard
2016-03-07 18:03:45 +01:00
parent a6c6b00d7e
commit 4cd4ce504d
11 changed files with 46 additions and 1466 deletions
+8
View File
@@ -33,6 +33,14 @@ func (pb *PluginBase) registerPlugin(pluginDir string) error {
log.Info("Plugins: Registering plugin %v", pb.Name)
}
if len(pb.Dependencies.Plugins) == 0 {
pb.Dependencies.Plugins = []PluginDependencyItem{}
}
if pb.Dependencies.GrafanaVersion == "" {
pb.Dependencies.GrafanaVersion = "*"
}
pb.PluginDir = pluginDir
Plugins[pb.Id] = pb
return nil