Skip to content

Commit

Permalink
Paths in index.json should always use '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoesel committed Feb 5, 2024
1 parent 90a176d commit cf8dcee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function getChildren(relativeDir = '') {
if (file.endsWith('fsh')) {
const metaData = await getMetadata(fullFilePath, file);
workingArray.push({
path: encodeURI(relativeFilePath),
path: encodeURI(relativeFilePath.split(path.sep).join('/')),
...metaData,
type: 'file'
});
Expand All @@ -59,7 +59,7 @@ async function getChildren(relativeDir = '') {
if (children.length) {
workingArray.push({
name: file,
path: encodeURI(relativeFilePath),
path: encodeURI(relativeFilePath.split(path.sep).join('/')),
type: 'category',
children
});
Expand Down

0 comments on commit cf8dcee

Please sign in to comment.