File tree Expand file tree Collapse file tree 2 files changed +1
-25
lines changed
Expand file tree Collapse file tree 2 files changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -105,30 +105,6 @@ export function loadConfig(file: string): ConfigSchema {
105105 return config ;
106106}
107107
108- export function getIncludePattern ( config : ConfigSchema ) : string [ ] {
109- const source = config . source ;
110-
111- if ( typeof source !== "undefined" ) {
112- if ( typeof source . includePattern !== "undefined" ) {
113- if ( Array . isArray ( source . includePattern ) ) {
114- return source . includePattern ;
115- } else if ( typeof source . includePattern === "string" ) {
116- return [ source . includePattern ] ;
117- }
118- }
119-
120- if ( typeof source . include !== "undefined" ) {
121- if ( Array . isArray ( source . include ) ) {
122- return source . include ;
123- } else if ( typeof source . include === "string" ) {
124- return [ source . include ] ;
125- }
126- }
127- }
128-
129- return [ ] ;
130- }
131-
132108export function getTemplate ( config : ConfigSchema ) : string {
133109 if ( config . opts && config . opts . template ) {
134110 return config . opts . template ;
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ async function main(argv: yargs.Argv) {
5959 global . Webdoc = global . Webdoc || { } ;
6060 registerWebdocParser ( ) ; // global.Webdoc.Parser
6161
62- const { loadConfig, getIncludePattern , getTemplate} = require ( "./config" ) ;
62+ const { loadConfig, getTemplate} = require ( "./config" ) ;
6363 const config = loadConfig ( argv . config ) ;
6464 const tutorials = loadTutorials ( argv . tutorials ) ;
6565
You can’t perform that action at this time.
0 commit comments