fixed relative path bug
parent
58be8ea80f
commit
70f3482007
@ -1,10 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
var archWiki = require.resolve('arch-wiki-md-repo');
|
||||
|
||||
exports.getArticlePath = getArticlePath;
|
||||
|
||||
function getArticlePath(relativeArticlePath) {
|
||||
var absoluteArticlePath = path.resolve('node_modules', 'arch-wiki-md-repo', 'wiki', relativeArticlePath);
|
||||
var absoluteArticlePath = path.resolve(archWiki, '..', 'wiki', relativeArticlePath);
|
||||
return absoluteArticlePath;
|
||||
}
|
||||
|
Loading…
Reference in New Issue