Skip to content

Commit

Permalink
chore(docs): fix docs generation on Windows (#3973) (#4319)
Browse files Browse the repository at this point in the history
  • Loading branch information
iib0011 authored Feb 17, 2022
1 parent 06033af commit 808a54c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions site/scripts/docs.mjs
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
// @ts-check
import { basename, join } from 'path'
import { basename } from 'path'
import { env } from 'process'
import { fileURLToPath } from 'url'

import markdownMagic from 'markdown-magic'
import stripAnsi from 'strip-ansi'

import { normalizeBackslash } from '../../src/lib/path.js'

import { generateCommandData } from './generate-command-data.mjs'

const rootDir = fileURLToPath(new URL('../..', import.meta.url))
const markdownFiles = [join(rootDir, 'README.md'), join(rootDir, 'docs/**/**.md')]
const rootDir = normalizeBackslash(fileURLToPath(new URL('../..', import.meta.url)))
const markdownFiles = [`${rootDir}/README.md`, `${rootDir}/docs/**/**.md`]

env.DOCS_GEN = 'TRUE'

Expand Down

1 comment on commit 808a54c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

Package size: 442 MB

Please sign in to comment.