adapt-authoring-docs 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/docserve.js +1 -1
- package/docsify/docsify.js +3 -2
- package/package.json +1 -1
package/bin/docserve.js
CHANGED
|
@@ -17,7 +17,7 @@ async function getOutputDir () {
|
|
|
17
17
|
const { loadDependencies, loadConfigDefaults } = await import('../lib/docsData.js')
|
|
18
18
|
const rootDir = path.resolve(getArg('--rootDir') || process.cwd())
|
|
19
19
|
const dependencies = await loadDependencies(rootDir)
|
|
20
|
-
const config = await loadConfigDefaults(dependencies)
|
|
20
|
+
const config = await loadConfigDefaults(rootDir, dependencies)
|
|
21
21
|
return path.resolve(config.get('adapt-authoring-docs.outputDir'))
|
|
22
22
|
}
|
|
23
23
|
|
package/docsify/docsify.js
CHANGED
|
@@ -56,8 +56,9 @@ export default async function docsify (appData, configs, outputdir, defaultPages
|
|
|
56
56
|
if (!sectionsConf[key]) sectionsConf[key] = data
|
|
57
57
|
})
|
|
58
58
|
}
|
|
59
|
-
[
|
|
60
|
-
|
|
59
|
+
const excludedFiles = ['README.md', ...Object.values(defaultPages).filter(Boolean).map(f => path.basename(f))]
|
|
60
|
+
;[...customFiles, ...globSync('docs/*.md', { cwd: c.rootDir, absolute: true })].forEach(f => {
|
|
61
|
+
if (excludedFiles.includes(path.basename(f))) {
|
|
61
62
|
return
|
|
62
63
|
}
|
|
63
64
|
const title = path.basename(f)
|
package/package.json
CHANGED