Skip to content

Commit

Permalink
doc: Trying a simpler approach
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Jan 27, 2024
1 parent 85b59d4 commit fb03db4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ function readSourceCode(demoPath: string) {
}

const __dirname = path.dirname(fileURLToPath(import.meta.url))
const indexOfDocs = __dirname.indexOf('/packages/docs')
export const nextJsRootDir =
__dirname.substring(0, indexOfDocs) + '/packages/docs'
const nextJsRootDir = path.resolve(__dirname, '../../../../..')

function resolve(importMetaUrl: string, ...paths: string[]) {
const filePath = fileURLToPath(importMetaUrl)
Expand Down

0 comments on commit fb03db4

Please sign in to comment.