File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ export const getAllEvents = () => {
192192};
193193```
194194
195- See the [ query-args-and-transformers skill ] ( ../../general-practices/ query-args-and-transformers/SKILL.md ) for detailed transformer patterns.
195+ See the [ query-args-and-transformers] ( ./ query-args-and-transformers ) for detailed transformer patterns.
196196
197197### Step 4: Write the Query Hook
198198
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const config = {
4949 docs : {
5050 sidebarPath : './sidebars.js' ,
5151 // Point to the source documentation files in docs-site/docs/
52- editUrl : 'https://github.com/Northeastern-Electric-Racing/FinishLine/edit/main/docs-site/docs/ '
52+ editUrl : 'https://github.com/Northeastern-Electric-Racing/FinishLine/edit/main/docs-site/'
5353 } ,
5454 blog : false ,
5555 theme : {
Original file line number Diff line number Diff line change 1212 "serve" : " docusaurus serve" ,
1313 "write-translations" : " docusaurus write-translations" ,
1414 "write-heading-ids" : " docusaurus write-heading-ids" ,
15- "sync-skills" : " node scripts/sync-skills.js " ,
16- "generate-sidebar" : " node scripts/generate-sidebar.js " ,
15+ "sync-skills" : " node scripts/sync-skills.mjs " ,
16+ "generate-sidebar" : " node scripts/generate-sidebar.mjs " ,
1717 "docs:dev" : " yarn generate-sidebar && yarn start" ,
1818 "docs:build" : " yarn generate-sidebar && yarn build"
1919 },
Original file line number Diff line number Diff line change 1- const fs = require ( 'fs' ) ;
2- const path = require ( 'path' ) ;
1+ import fs from 'fs' ;
2+ import path from 'path' ;
3+ import { fileURLToPath } from 'url' ;
4+
5+ // ESM equivalent of __dirname
6+ const __filename = fileURLToPath ( import . meta. url ) ;
7+ const __dirname = path . dirname ( __filename ) ;
38
49// Paths
510const DOCS_DIR = path . join ( __dirname , '../docs' ) ;
Original file line number Diff line number Diff line change 1- const fs = require ( 'fs' ) ;
2- const path = require ( 'path' ) ;
1+ import fs from 'fs' ;
2+ import path from 'path' ;
3+ import { fileURLToPath } from 'url' ;
4+
5+ // ESM equivalent of __dirname
6+ const __filename = fileURLToPath ( import . meta. url ) ;
7+ const __dirname = path . dirname ( __filename ) ;
38
49// Paths
510const DOCS_DIR = path . join ( __dirname , '../docs' ) ;
You can’t perform that action at this time.
0 commit comments