Skip to content

Commit 927c3fa

Browse files
committed
fixed link issues and updated docs to use ems when possible
1 parent 44c9143 commit 927c3fa

6 files changed

Lines changed: 18 additions & 8 deletions

File tree

docs-site/docs/general-practices/frontend-hooks-and-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

docs-site/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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: {

docs-site/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
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
},
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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
510
const DOCS_DIR = path.join(__dirname, '../docs');
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
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
510
const DOCS_DIR = path.join(__dirname, '../docs');

0 commit comments

Comments
 (0)