mirror of
https://github.com/greg-js/arch-wiki-man
synced 2024-11-15 12:12:45 +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;
|
|
}
|