Skip to content

Commit

Permalink
fixed special patcher settings not displaying properly
Browse files Browse the repository at this point in the history
  • Loading branch information
matortheeternal committed Feb 7, 2018
1 parent f34eccb commit 9b3edf9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions dist/docs/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ <h2>Patcher Helpers</h2>

<api-items api="helpers" items="patcherHelpers"></api-items>

<h2>Patcher Locals</h2>
<p>The locals object is passed to all patcher functions. The locals object allows you to persist variables across all steps of your patcher's execution. It's recommended to use the locals object over using variables defined directly in your module because the locals object does not persist between patcher executions.</p>

<h2>Special Patcher Settings</h2>
<p>There are several special patcher settings that are used by UPF internally.</p>

<api-items items="patcherSettings"></api-items>
<api-items items="patcherSettings"></api-items>

<h2>Patcher Locals</h2>
<p>The locals object is passed to all patcher functions. The locals object allows you to persist variables across all steps of your patcher's execution. It's recommended to use the locals object over using variables defined directly in your module because the locals object does not persist between patcher executions.</p>
3 changes: 2 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@ ngapp.controller('upfOverviewController', function($scope) {
});

ngapp.controller('upfPatcherApiController', function($scope) {
['patcherSchema', 'patcherHelpers'].forEach(function(label) {
let apiFiles = ['patcherSchema', 'patcherHelpers', 'patcherSettings'];
apiFiles.forEach(function(label) {
let path = `modules/${info.id}/docs/${label}.json`;
$scope[label] = fh.loadJsonFile(path);
});
Expand Down
8 changes: 4 additions & 4 deletions docs/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ <h2>Patcher Helpers</h2>

<api-items api="helpers" items="patcherHelpers"></api-items>

<h2>Patcher Locals</h2>
<p>The locals object is passed to all patcher functions. The locals object allows you to persist variables across all steps of your patcher's execution. It's recommended to use the locals object over using variables defined directly in your module because the locals object does not persist between patcher executions.</p>

<h2>Special Patcher Settings</h2>
<p>There are several special patcher settings that are used by UPF internally.</p>

<api-items items="patcherSettings"></api-items>
<api-items items="patcherSettings"></api-items>

<h2>Patcher Locals</h2>
<p>The locals object is passed to all patcher functions. The locals object allows you to persist variables across all steps of your patcher's execution. It's recommended to use the locals object over using variables defined directly in your module because the locals object does not persist between patcher executions.</p>
3 changes: 2 additions & 1 deletion src/upfDocumentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ ngapp.controller('upfOverviewController', function($scope) {
});

ngapp.controller('upfPatcherApiController', function($scope) {
['patcherSchema', 'patcherHelpers'].forEach(function(label) {
let apiFiles = ['patcherSchema', 'patcherHelpers', 'patcherSettings'];
apiFiles.forEach(function(label) {
let path = `modules/${info.id}/docs/${label}.json`;
$scope[label] = fh.loadJsonFile(path);
});
Expand Down

0 comments on commit 9b3edf9

Please sign in to comment.