ソースを参照

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

Johan Ahlen 5 年 前
コミット
59e3a54196

ファイルの差分が大きいため隠しています
+ 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')

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません