MCPcopy Create free account
hub / github.com/alibaba/lowcode-engine / getMarkdownOrder

Function getMarkdownOrder

docs/scripts/getDocsFromDir.js:15–19  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

13 }
14
15 function getMarkdownOrder(filepath) {
16 const { data } = matter(fs.readFileSync(filepath, 'utf-8'));
17 const { sidebar_position } = data || {};
18 return isNil(sidebar_position) ? 100 : sidebar_position;
19 }
20
21 const docs = glob.sync('*.md?(x)', {
22 cwd: docsDir,

Callers 1

getDocsFromDir.jsFile · 0.85

Calls 1

isNilFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…