Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wrnrlr committed Nov 2, 2024
1 parent 1932b3e commit faa67bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions www/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function typedocPlugin() {
console.log('CONFIG',config)
config.hostedBaseUrl = 'https://wrnrlr.github.io/prelude'
config.useHostedBaseUrlForAbsoluteLinks = true
config.out = './www/dist/docs'
config.out = path.join(__dirname, './public/docs')
config.entryPoints = [path.join(__dirname, '../src/mod.ts')]
console.log('CONFIG',config)
const app = await Application.bootstrap(config)
Expand All @@ -25,7 +25,11 @@ function typedocPlugin() {
const project = await app.convert()
if (!project) Deno.exit()
console.log('PROJECT', project)
await app.generateDocs(project, config.out)
try {
await app.generateDocs(project, config.out)
} catch (e) {
console.error(e)
}
}
}
}
Expand Down

0 comments on commit faa67bc

Please sign in to comment.