diff --git a/index.js b/index.js index 06ce793b..6626745e 100644 --- a/index.js +++ b/index.js @@ -345,27 +345,26 @@ const downloadMdn = (localRoot, locale = 'zh-CN', options = {}) => { }, localRoot, beginUrl: [ - 'https://developer.mozilla.org/zh-CN/docs/Mozilla/Tech/XUL/Attribute' - // `https://developer.mozilla.org/${locale}/docs/Web/API`, - // `https://developer.mozilla.org/${locale}/docs/Web/CSS/Reference`, - // `https://developer.mozilla.org/${locale}/docs/Web/JavaScript/Index`, - // `https://developer.mozilla.org/${locale}/docs/Web/HTML/Index`, - // `https://developer.mozilla.org/${locale}/docs/Web/HTML/Attributes`, - // `https://developer.mozilla.org/${locale}/docs/Web/HTML/Element`, - // `https://developer.mozilla.org/${locale}/docs/Web/HTTP`, - // `https://developer.mozilla.org/${locale}/docs/Web/Tutorials`, - // `https://developer.mozilla.org/${locale}/docs/Web/Guide`, - // `https://developer.mozilla.org/${locale}/docs/Web/Accessibility`, - // `https://developer.mozilla.org/${locale}/docs/Web/Reference`, - // `https://developer.mozilla.org/${locale}/docs/Web/Web_components`, - // `https://developer.mozilla.org/${locale}/docs/Web/MathML`, - // `https://developer.mozilla.org/${locale}/docs/Web`, - // `https://developer.mozilla.org/${locale}/docs/Mozilla`, - // `https://developer.mozilla.org/${locale}/docs/Mozilla/Tech`, - // `https://developer.mozilla.org/${locale}/docs/Mozilla/Add-ons/WebExtensions`, - // `https://developer.mozilla.org/${locale}/docs/Learn`, - // `https://developer.mozilla.org/${locale}/docs/Games`, - // `https://developer.mozilla.org/${locale}/docs/Glossary` + `https://developer.mozilla.org/${locale}/docs/Web/API`, + `https://developer.mozilla.org/${locale}/docs/Web/CSS/Reference`, + `https://developer.mozilla.org/${locale}/docs/Web/JavaScript/Index`, + `https://developer.mozilla.org/${locale}/docs/Web/HTML/Index`, + `https://developer.mozilla.org/${locale}/docs/Web/HTML/Attributes`, + `https://developer.mozilla.org/${locale}/docs/Web/HTML/Element`, + `https://developer.mozilla.org/${locale}/docs/Web/HTTP`, + `https://developer.mozilla.org/${locale}/docs/Web/Tutorials`, + `https://developer.mozilla.org/${locale}/docs/Web/Guide`, + `https://developer.mozilla.org/${locale}/docs/Web/Accessibility`, + `https://developer.mozilla.org/${locale}/docs/Web/Reference`, + `https://developer.mozilla.org/${locale}/docs/Web/Web_components`, + `https://developer.mozilla.org/${locale}/docs/Web/MathML`, + `https://developer.mozilla.org/${locale}/docs/Web`, + `https://developer.mozilla.org/${locale}/docs/Mozilla`, + `https://developer.mozilla.org/${locale}/docs/Mozilla/Tech`, + `https://developer.mozilla.org/${locale}/docs/Mozilla/Add-ons/WebExtensions`, + `https://developer.mozilla.org/${locale}/docs/Learn`, + `https://developer.mozilla.org/${locale}/docs/Games`, + `https://developer.mozilla.org/${locale}/docs/Glossary` ], detectLinkType, redirectFilterFunc,