Skip to content

Commit 96dbaa9

Browse files
Fix indentation issues in the code examples in the reference website (#372)
1 parent 470a6b4 commit 96dbaa9

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

__DOCS__/JSDocTemplate/src/tmpl/tag/_example.hbs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
<div class="example-caption">{{{caption}}}</div>
66
{{/if}}
77
<div class="example-code">
8-
<pre class="prettyprint source language-{{lang}}"><code class="language-{{lang}}">{{code}}</code></pre>
8+
<pre class="prettyprint source language-{{lang}}"><code class="language-{{lang}}">
9+
{{code}}</code></pre> <!-- Indentation for the code examples! -->
910
</div>
1011
{{#if run}}
1112
<p class="example-run">
@@ -15,4 +16,4 @@
1516
{{/if}}
1617
{{/each}}
1718
{{/callout}}
18-
{{/if}}
19+
{{/if}}

__DOCS__/JSDocTemplate/template/tmpl.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,13 +756,13 @@ Handlebars.registerPartial("tag/example", this["tmpl"]["tag/example"] = Handleba
756756
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
757757

758758
return ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.caption : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
759-
+ " <div class=\"example-code\">\r\n <pre class=\"prettyprint source language-"
759+
+ " <div class=\"example-code\">\r\n<pre class=\"prettyprint source language-"
760760
+ alias4(((helper = (helper = helpers.lang || (depth0 != null ? depth0.lang : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"lang","hash":{},"data":data}) : helper)))
761761
+ "\"><code class=\"language-"
762762
+ alias4(((helper = (helper = helpers.lang || (depth0 != null ? depth0.lang : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"lang","hash":{},"data":data}) : helper)))
763-
+ "\">"
763+
+ "\">\r\n"
764764
+ alias4(((helper = (helper = helpers.code || (depth0 != null ? depth0.code : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"code","hash":{},"data":data}) : helper)))
765-
+ "</code></pre>\r\n </div>\r\n"
765+
+ "</code></pre> <!-- Indentation for the code examples! -->\r\n </div>\r\n"
766766
+ ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.run : depth0),{"name":"if","hash":{},"fn":container.program(6, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
767767
},"4":function(container,depth0,helpers,partials,data) {
768768
var stack1, helper;

src/actions/rotate/RotateAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class RotateAction extends Action {
2323
/**
2424
* @description Rotates an asset using a defined mode.
2525
* @param {Qualifiers.RotationMode | string} rotationMode
26-
* For a list of supported rotation modes see {@link Qualifiers.rotationModeValues| types of rotation modes} for
26+
* For a list of supported rotation modes see {@link Qualifiers.RotationMode| types of rotation modes} for
2727
* possible values
2828
* @return {this}
2929
*/

src/actions/rotate/mode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {RotationModeQualifierValue} from "../../qualifiers/rotate/RotationModeQu
55
* @summary action
66
* @description Rotate an image by using a rotationMode
77
* @param {string} rotationMode
8-
* For a list of supported rotation modes see {@link Qualifiers.rotationModeValues| types of rotation modes} for
8+
* For a list of supported rotation modes see {@link Qualifiers.RotationMode| types of rotation modes} for
99
* possible values
1010
* @memberOf Actions.Rotate
1111
* @return {Actions.Rotate.RotateAction}

src/qualifiers/rotationMode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
/**
33
* @description Contains functions to select the rotation mode.
4-
* <b>Learn more</b>: {@link https://cloudinary.com/documentation/image_transformations#rotating_images | Rotating images}
5-
* <b>Learn more</b>: {@link https://cloudinary.com/documentation/video_manipulation_and_delivery#rotating_videos | Rotating videos}
4+
* </br><b>Learn more</b>: {@link https://cloudinary.com/documentation/image_transformations#rotating_images | Rotating images}
5+
* </br><b>Learn more</b>: {@link https://cloudinary.com/documentation/video_manipulation_and_delivery#rotating_videos | Rotating videos}
66
* @memberOf Qualifiers
77
* @namespace RotationMode
88
*/

0 commit comments

Comments
 (0)