瀏覽代碼

HUE-9465 [editor] Update paths in the Hive documentation extractor

Johan Ahlen 5 年之前
父節點
當前提交
59e3a54196
共有 2 個文件被更改,包括 8 次插入3 次删除
  1. 5 0
      desktop/core/src/desktop/templates/sql_doc_index.mako
  2. 3 3
      tools/sql-docs/hiveExtractor.js

File diff suppressed because it is too large
+ 5 - 0
desktop/core/src/desktop/templates/sql_doc_index.mako


+ 3 - 3
tools/sql-docs/hiveExtractor.js

@@ -24,8 +24,8 @@ const Topic = require('./Topic');
 const libxml = require('libxmljs');
 const extractorUtils = require('./extractorUtils');
 
-const outputPath = './desktop/core/src/desktop/static/desktop/docs/hive/';
-const mako = './desktop/core/src/desktop/templates/sql_doc_index.mako';
+const outputPath = '../../desktop/core/src/desktop/static/desktop/docs/hive/';
+const mako = '../../desktop/core/src/desktop/templates/sql_doc_index.mako';
 
 const jsonHandler = require('./jsonHandler');
 
@@ -86,7 +86,7 @@ const adaptElement = element => {
 
   switch (element.name()) {
     case 'a':
-      if (element.attr('href') && element.attr('href').value().indexOf('/links') == 0) {
+      if (element.attr('href') && element.attr('href').value().indexOf('/links') === 0) {
         // Internal link
         let ref = element
           .attr('href')

Some files were not shown because too many files changed in this diff