Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion documentation/plugins/markdown-export.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require('fs');
const path = require('path');
const { globby } = require('globby');

module.exports = function markdownExportPlugin(context, options) {
const pluginOptions = {
Expand All @@ -18,6 +17,8 @@ module.exports = function markdownExportPlugin(context, options) {

console.log('[markdown-export] Starting markdown export...');

const globby = (await import('globby')).default;

const docsDir = path.join(context.siteDir, 'docs');
const outputDir = path.join(outDir, 'docs');

Expand Down
3 changes: 2 additions & 1 deletion documentation/scripts/generate-docs-map.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const fs = require('fs');
const path = require('path');
const { globby } = require('globby');
const matter = require('gray-matter');

const DOCS_DIR = path.join(__dirname, '..', 'docs');
Expand Down Expand Up @@ -42,6 +41,8 @@ function getHeadings(content) {
}

async function main() {
const globby = (await import('globby')).default;

const sections = [
{ name: 'Getting Started', pattern: 'getting-started/*.{md,mdx}' },
{ name: 'Guides', pattern: 'guides/**/*.{md,mdx}' },
Expand Down
Loading