Skip to content

Commit 9a42cf0

Browse files
authored
Merge pull request #2 from num-js/master
Add Prettier as a dependency and update docsData import method
2 parents b5a3bf8 + 71813fe commit 9a42cf0

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

next.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ import createMDX from '@next/mdx';
77
import { remarkCodeHike, recmaCodeHike } from 'codehike/mdx';
88
import rehypeSlug from 'rehype-slug';
99
// Import the JSON file
10-
import docsData from './configs/componentsDocumentation.json' assert { type: 'json' };
10+
// import docsData from './configs/componentsDocumentation.json' assert { type: 'json' };
11+
12+
const docsData = JSON.parse(
13+
fs.readFileSync(path.resolve('./configs/componentsDocumentation.json'), 'utf8')
14+
);
15+
1116
// import dataArray from './configs/docs';
1217

1318
const { dataArray } = docsData;

package-lock.json

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"next": "14.2.11",
4747
"next-themes": "^0.3.0",
4848
"next13-progressbar": "^1.2.2",
49+
"prettier": "^3.6.2",
4950
"react": "^18",
5051
"react-dom": "^18",
5152
"react-resizable-panels": "^2.1.3",

0 commit comments

Comments
 (0)