浏览代码

add plugin authoring tab in style guide

Andrei Stefan 8 年之前
父节点
当前提交
f43c749422
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 5 0
      public/app/features/styleguide/styleguide.html
  2. 1 1
      public/app/features/styleguide/styleguide.ts

+ 5 - 0
public/app/features/styleguide/styleguide.html

@@ -49,6 +49,11 @@
 		</div>
 	</div>
 
+	<div class="tab-pane style-guide-plugin-authoring" ng-if="ctrl.page.plugins">
+		<p>From grafana 3.0 it's very easy to develop your own plugins and share them with other grafana users.</p>
+		<p>More information about plugin development can be found at <a href="http://docs.grafana.org/plugins/developing/development/" target="_blank">docs.grafana.org</a></p>
+	</div>
+
 	<div class="tab-pane" ng-if="ctrl.page.forms">
 		forms
 	</div>

+ 1 - 1
public/app/features/styleguide/styleguide.ts

@@ -11,7 +11,7 @@ class StyleGuideCtrl {
   buttonVariants = ['-', '-outline-'];
   icons: any = [];
   page: any;
-  pages = ['colors', 'buttons', 'icons'];
+  pages = ['colors', 'buttons', 'icons', 'plugins'];
 
   /** @ngInject **/
   constructor(private $http, private $routeParams, private $location) {