Skip to content

Commit

Permalink
fix: engine resolved on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
samuele-cozzi committed May 8, 2024
1 parent 0d5b018 commit 897fa14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ outfile: "vault/.obsidian/plugins/marp-slides/main.js", //for local dev!!!
Proceed to compile and run the code. This step will apply your changes and generate the executable output, providing an opportunity to test and validate the impact of your configuration adjustments on the project's build and runtime behavior

```bash
# get packages
npm install

# biuld, test, run
npm run build
npm run test

Expand Down
6 changes: 3 additions & 3 deletions src/utilities/filePath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,21 @@ export class FilePath {

private getPluginDirectory(vault: Vault): string {
const fileSystem = vault.adapter as FileSystemAdapter;
const path = normalizePath(`${fileSystem.getBasePath()}/${vault.configDir}/plugins/marp-slides`) + '/';
const path = `${fileSystem.getBasePath()}/${normalizePath(vault.configDir)}/plugins/marp-slides/`;
//console.log(path);
return path;
}

public getLibDirectory(vault: Vault): string {
const pluginDirectory = this.getPluginDirectory(vault);
const path = normalizePath(`${pluginDirectory}lib3`) + '/';
const path = `${pluginDirectory}lib3/`;
//console.log(path);
return path;
}

public getMarpEngine(vault: Vault): string {
const libDirectory = this.getLibDirectory(vault);
const path = normalizePath(`${libDirectory}/marp.config.js`);
const path = `${libDirectory}marp.config.js`;
//console.log(path);
return path;
}
Expand Down

0 comments on commit 897fa14

Please sign in to comment.