Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Unified Diff: utils/apidoc/mdn/crawl.js

Issue 10889017: Repair bitrot in the utils/apidoc/mdn/ code. It now runs all the way through, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: utils/apidoc/mdn/crawl.js
===================================================================
--- utils/apidoc/mdn/crawl.js (revision 11346)
+++ utils/apidoc/mdn/crawl.js (working copy)
@@ -7,14 +7,14 @@
try {
fs.mkdirSync('output/crawl');
} catch (e) {
- // It doesn't matter if the directories already exist.
+ // It doesn't matter if the directories already exist.
}
var domTypes = JSON.parse(fs.readFileSync('data/domTypes.json', 'utf8'));
var cacheData = {};
-function scrape(filename, link) {
+function scrape(filename, link) {
console.log(link);
var httpsPrefix = "https://";
var prefix = 'https://developer.mozilla.org/';
@@ -100,7 +100,7 @@
scrape(type + 0, link);
continue;
}
-
+
for (j = 0; j < items.length; j++) {
var item = items[j];
var prefix = 'https://developer.mozilla.org/';

Powered by Google App Engine
This is Rietveld 408576698