Skip to content

Commit 30e15fe

Browse files
committed
gh-pages v2.0.12-e046a3c
1 parent 7b36942 commit 30e15fe

File tree

5 files changed

+37
-11
lines changed

5 files changed

+37
-11
lines changed

docs/js/docs.js

+32-6
Original file line numberDiff line numberDiff line change
@@ -175,30 +175,56 @@ docsApp.serviceFactory.openPlunkr = function(templateMerge, formPostData, loaded
175175
' </head>\n' +
176176
' <body>\n\n' +
177177
'{{indexContents}}\n\n' +
178+
'{{postScriptDeps}}' +
178179
' </body>\n' +
179180
'</html>\n';
180181
var scriptDeps = '';
182+
var postScriptDeps = '';
181183
angular.forEach(loadedUrls.base, function(url) {
184+
url = url.replace(/(\/release.+?$)/g, "http://ui-grid.info$1");
185+
186+
// scriptDeps += ' <script src="' + url + '"></script>\n';
187+
var ext = url.split(/\./).pop();
188+
if (ext == 'css') {
189+
scriptDeps += ' <link rel="stylesheet" href="' + url + '" type="text/css">\n';
190+
}
191+
else {
182192
scriptDeps += ' <script src="' + url + '"></script>\n';
193+
}
183194
});
184195
angular.forEach(allFiles, function(file) {
185196
var ext = file.name.split(/\./).pop();
186-
if (ext == 'css') {
187-
scriptDeps += ' <link rel="stylesheet" href="' + file.name + '" type="text/css">\n';
188-
} else if (ext == 'js' && file.name !== 'angular.js') {
189-
scriptDeps += ' <script src="' + file.name + '"></script>\n';
190-
}
197+
if (ext == 'css') {
198+
scriptDeps += ' <link rel="stylesheet" href="' + file.name + '" type="text/css">\n';
199+
}
200+
else if (ext == 'js' && file.name !== 'angular.js') {
201+
if (file.name === 'app.js') {
202+
postScriptDeps += ' <script src="' + file.name + '"></script>\n';
203+
}
204+
else {
205+
scriptDeps += ' <script src="' + file.name + '"></script>\n';
206+
}
207+
}
191208
});
209+
192210
indexProp = {
193211
module: content.module,
194212
scriptDeps: scriptDeps,
213+
postScriptDeps: postScriptDeps,
195214
indexContents: content.html[0].content
196215
};
197216

198217
var postData = {};
199218
angular.forEach(allFiles, function(file, index) {
200219
if (file.content && file.name != 'index.html') {
201-
postData['files[' + file.name + ']'] = file.content;
220+
if (file.name === 'app.js') {
221+
var contents = file.content;
222+
contents = contents.replace(/(\/data.+?\.json)/g, "https://rawgit.com/angular-ui/ui-grid.info/gh-pages$1");
223+
postData['files[' + file.name + ']'] = contents;
224+
}
225+
else {
226+
postData['files[' + file.name + ']'] = file.content;
227+
}
202228
}
203229
});
204230

index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ <h2>Angular UI Grid</h2>
6868

6969
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
7070

71-
<a class="btn btn-danger btn-large" href="https://github.com/angular-ui/ui-grid.info/tree/gh-pages/release" title="Download 2.0.12-8d43128">
71+
<a class="btn btn-danger btn-large" href="https://github.com/angular-ui/ui-grid.info/tree/gh-pages/release" title="Download 2.0.12-e046a3c">
7272
<i class="fa fa-download fa-fw"></i>
73-
Download <small>( 2.0.12 / 2.0.12-8d43128 )</small>
73+
Download <small>( 2.0.12 / 2.0.12-e046a3c )</small>
7474
</a>
7575

7676
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

less/ui-grid.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! ui-grid - v2.0.12-8d43128 - 2014-08-18
1+
/*! ui-grid - v2.0.12-e046a3c - 2014-08-18
22
* Copyright (c) 2014 ; License: MIT */
33

44
.ui-grid-render-container {

release/ui-grid-unstable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! ui-grid - v2.0.12-8d43128 - 2014-08-18
1+
/*! ui-grid - v2.0.12-e046a3c - 2014-08-18
22
* Copyright (c) 2014 ; License: MIT */
33
(function () {
44
'use strict';

release/ui-grid-unstable.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)