Skip to content

Commit a46ea4f

Browse files
author
Hadrien Kohl
committed
Display the root description of the API
1 parent 857ff26 commit a46ea4f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/app/directives/raml-console.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
$scope.disableThemeSwitcher = $attrs.hasOwnProperty('disableThemeSwitcher');
2626
$scope.disableTitle = $attrs.hasOwnProperty('disableTitle');
2727
$scope.disableTryIt = $attrs.hasOwnProperty('disableTryIt');
28+
$scope.disableDescription = $attrs.hasOwnProperty('disableDescription');
2829
$scope.documentationCollapsed = $attrs.hasOwnProperty('documentationCollapsed');
2930
$scope.proxy = $window.RAML.Settings.proxy;
3031
$scope.readResourceTraits = readResourceTraits;

src/app/directives/raml-console.tpl.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
<h1 ng-if="!disableTitle" class="raml-console-title">{{raml.title}}</h1>
88

9+
<div ng-if="!disableDescription" markdown="raml.description"></div>
10+
911
<root-documentation></root-documentation>
1012

1113
<root-types types="types" ng-if="types"></root-types>

0 commit comments

Comments
 (0)