You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
305 B
JavaScript
12 lines
305 B
JavaScript
'use strict';
|
|
|
|
var path = require('path');
|
|
var archWiki = require.resolve('arch-wiki-md-repo');
|
|
|
|
exports.getArticlePath = getArticlePath;
|
|
|
|
function getArticlePath(relativeArticlePath) {
|
|
var absoluteArticlePath = path.resolve(archWiki, '..', 'wiki', relativeArticlePath);
|
|
return absoluteArticlePath;
|
|
}
|