mirror of
https://github.com/greg-js/arch-wiki-man
synced 2024-11-11 01:10:36 +00:00
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;
|
|
}
|