diff --git a/src/antora-adapter.js b/src/antora-adapter.js index 8d72471..24a021a 100644 --- a/src/antora-adapter.js +++ b/src/antora-adapter.js @@ -1,4 +1,4 @@ -const ospath = require('path') +const ospath = require('path').posix module.exports = (file, contentCatalog, vfs) => { let baseReadFn diff --git a/src/fetch.js b/src/fetch.js index 3565583..861d7e7 100644 --- a/src/fetch.js +++ b/src/fetch.js @@ -1,5 +1,5 @@ const rusha = require('rusha') -const path = require('path') +const path = require('path').posix const getImagesOutputDirectory = (doc) => { const imagesOutputDir = doc.getAttribute('imagesoutdir') diff --git a/src/preprocess.js b/src/preprocess.js index 935dcab..7f96272 100644 --- a/src/preprocess.js +++ b/src/preprocess.js @@ -1,7 +1,7 @@ // @ts-check // The previous line must be the first non-comment line in the file to enable TypeScript checks: // https://www.typescriptlang.org/docs/handbook/intro-to-js-ts.html#ts-check -const path = require('path') +const path = require('path').posix /** * @param {string} diagramText