Skip to content

Commit db48cf3

Browse files
author
Hadrien Kohl
committed
Merge remote-tracking branch 'upstream/develop' into feature/display-api-description
2 parents 71ca1f4 + 75d314a commit db48cf3

File tree

4 files changed

+77
-69
lines changed

4 files changed

+77
-69
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,43 +91,49 @@ Add the following in a similar manner as proxying or OAuth 2.0 to ignore markdow
9191

9292
In *Single View* mode you will be able to see only documentation or try-it.
9393

94-
<raml-console-loader src="path-to-raml" single-view></raml-console-loader>
94+
<raml-console-loader src="path-to-raml" options="{ singleView: true }"></raml-console-loader>
9595

9696
### Theme Switcher
9797

9898
*Theme Switcher* can be disable if needed by adding the following setting:
9999

100-
<raml-console-loader src="path-to-raml" disable-theme-switcher></raml-console-loader>
100+
<raml-console-loader src="path-to-raml" options="{ disableThemeSwitcher: true }"></raml-console-loader>
101101

102102
### Disabling Client Generator
103103

104104
*Raml client generator* can be disable if needed by adding the following setting:
105105

106-
<raml-console-loader src="path-to-raml" disable-raml-client-generator></raml-console-loader>
106+
<raml-console-loader src="path-to-raml" options="{ disableRamlClientGenerator: true }"></raml-console-loader>
107107

108108
### Resources collapsed
109109

110110
*Resources* can be collapsed if needed by adding the following setting:
111111

112-
<raml-console-loader src="path-to-raml" resources-collapsed></raml-console-loader>
112+
<raml-console-loader src="path-to-raml" options="{ resourceCollapsed: true }"></raml-console-loader>
113113

114114
### Documentation collapsed
115115

116116
*Documentation* can be collapsed if needed by adding the following setting:
117117

118-
<raml-console-loader src="path-to-raml" documentation-collapsed></raml-console-loader>
118+
<raml-console-loader src="path-to-raml" options="{ documentationCollapsed: true }"></raml-console-loader>
119119

120120
### Allowing Unsafe Markdown
121121

122122
*Unsafe Markdown* will be disable by default, if you want to allow unsafe content check the following example:
123123

124-
<raml-console-loader src="path-to-raml" allow-unsafe-markdown></raml-console-loader>
124+
<raml-console-loader src="path-to-raml" options="{ allowUnsafeMarkdown: true }"></raml-console-loader>
125125

126126
### Disabling Try-it
127127

128128
*Try-it* will be enable by default, if you want to disable Try-it you can do that by adding the following setting:
129129

130-
<raml-console-loader src="path-to-raml" disable-try-it></raml-console-loader>
130+
<raml-console-loader src="path-to-raml" options="{ disableTryIt: true }"></raml-console-loader>
131+
132+
### Multiple Options
133+
134+
Multiple of the options above can be provided. The options need to be expressed in camelcase format:
135+
136+
<raml-console-loader src="path-to-raml" options="{ disableRamlClientGenerator: true, disableTryIt: true }"></raml-console-loader>
131137

132138
## Development
133139

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "api-console",
3-
"version": "3.0.11",
3+
"version": "3.0.12",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/mulesoft/api-console.git"
@@ -22,7 +22,7 @@
2222
"jszip": "~2.0.0",
2323
"marked": "~0.3.1",
2424
"raml-client-generator": "~0.0.7",
25-
"raml-1-parser": "https://github.com/raml-org/raml-js-parser-2/releases/download/1.1.9/raml-1-parser.zip",
25+
"raml-1-parser": "https://github.com/raml-org/raml-js-parser-2/releases/download/1.1.12/raml-1-parser.zip",
2626
"resolve-url": "~0.2.1",
2727
"slug": "~0.8.0",
2828
"velocity": "~1.1.0",

dist/scripts/api-console-vendor.js

Lines changed: 61 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "api-console",
3-
"version": "3.0.11",
3+
"version": "3.0.12",
44
"description": "Api-Console for RAML based app",
55
"files": [
66
"dist",

0 commit comments

Comments
 (0)