Skip to content

Commit 4633877

Browse files
committed
Some fixes.
1 parent 47b63c1 commit 4633877

File tree

11 files changed

+44
-19
lines changed

11 files changed

+44
-19
lines changed

dist/js-data-http.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fetch/dist/js-data-fetch.js

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

fetch/dist/js-data-fetch.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fetch/dist/js-data-fetch.min.js

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

fetch/dist/js-data-fetch.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fetch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "js-data-fetch",
33
"description": "HTTP adapter for js-data that uses fetch.",
44
"version": "3.0.0-alpha.4",
5-
"homepage": "http://www.js-data.io/docs/dshttpadapter",
5+
"homepage": "https://github.com/js-data/js-data-http",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/js-data/js-data-http.git"

node/dist/js-data-http-node.js

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

node/dist/js-data-http-node.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "js-data-http-node",
33
"description": "Node.js HTTP adapter for js-data.",
44
"version": "3.0.0-alpha.4",
5-
"homepage": "http://www.js-data.io/docs/dshttpadapter",
5+
"homepage": "https://github.com/js-data/js-data-http",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/js-data/js-data-http.git"

scripts/cleanup.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
var fs = require('fs')
2+
3+
var pkg = require('../package.json')
4+
5+
var path = './doc/js-data-http/' + pkg.version + '/styles/'
6+
7+
var files = fs.readdirSync(path)
8+
files.forEach(function (file) {
9+
if (file.indexOf('site') === 0) {
10+
if (file.indexOf('lumen') === -1 && file.indexOf('dibs') === -1) {
11+
fs.unlinkSync(path + file)
12+
}
13+
}
14+
})
15+
16+
path = './doc/js-data-http/' + pkg.version
17+
18+
files = fs.readdirSync(path)
19+
files.forEach(function (file) {
20+
if (file.indexOf('.html') === file.length - 5) {
21+
var content = fs.readFileSync(path + '/' + file, { encoding: 'utf8' })
22+
content = content.replace(/\/home\/ubuntu\/workspace\//gi, '')
23+
fs.writeFileSync(path + '/' + file, content, { encoding: 'utf8' })
24+
}
25+
})

0 commit comments

Comments
 (0)