소스 검색

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

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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')

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.