(library)
| 135 | |
| 136 | // Get all MDX page paths |
| 137 | async function getPagePaths(library) { |
| 138 | const patterns = []; |
| 139 | |
| 140 | if (library === 'all' || library === 's2') { |
| 141 | patterns.push('s2/**/*.mdx'); |
| 142 | } |
| 143 | if (library === 'all' || library === 'react-aria') { |
| 144 | patterns.push('react-aria/**/*.mdx'); |
| 145 | } |
| 146 | |
| 147 | const files = await glob(patterns, {cwd: pagesDir}); |
| 148 | return files; |
| 149 | } |
| 150 | |
| 151 | // Convert MDX file path to URL path |
| 152 | function mdxToUrl(mdxPath, options) { |
no test coverage detected