add comment
This commit is contained in:
@@ -3,6 +3,8 @@ const path = require('path')
|
||||
const Page = require('./page')
|
||||
|
||||
module.exports = async function createTree (originalPath, langObj) {
|
||||
// This basePath definition is needed both here and in lib/page-data.js because this
|
||||
// function runs recursively, and the value for originalPath changes on recursive runs.
|
||||
const basePath = path.posix.join(__dirname, '..', langObj.dir, 'content')
|
||||
|
||||
// On recursive runs, this is processing page.children items in `/<link>` format.
|
||||
|
||||
Reference in New Issue
Block a user