Skip to content

Commit

Permalink
Fix docs search API endpoint (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate authored Jun 30, 2024
1 parent bc140df commit 5224c82
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/app/source.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { join } from 'node:path';
import { readdirSync } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { map } from '@/.map';
import { createMDXSource } from 'fumadocs-mdx';
import { loader } from 'fumadocs-core/source';

const contentDir = join(fileURLToPath(import.meta.url), '../../content');
const dirnameParts = __dirname.split('/');
const docsDir = dirnameParts
.slice(0, dirnameParts.indexOf('docs') + 1)
.join('/');
const contentDir = join(docsDir, 'content');

export const loaders: Map<
string,
Expand Down

0 comments on commit 5224c82

Please sign in to comment.