Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
songkg7 committed Jun 27, 2024
1 parent 76878d0 commit af43ebf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/docusaurus/docusaurus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import fs from 'fs';
import path from 'path';
import { Notice } from 'obsidian';
import { O2PluginSettings } from '../settings';
import DocusaurusSettings from './settings/DocusaurusSettings';

const PREFIX = 'o2-temp.';

Expand Down
6 changes: 1 addition & 5 deletions src/jekyll/settings/JekyllSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,7 @@ export default class JekyllSetting implements O2PluginSettings {
}

afterPropertiesSet(): boolean {
if (this._jekyllPath === '') {
new Notice('Jekyll path is not set.', 5000);
return false;
}
return true;
return this._jekyllPath !== '';
}

// FIXME: As I know, abstraction is better solution but this is something weird.
Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ export default class O2Plugin extends Plugin {
if (checking) {
return true;
}
// convertToChirpy(this);
convertToChirpy(this);
}

if (this.docusaurus.afterPropertiesSet()) {
if (checking) {
return true;
}

convertToDocusaurus(this);
}
},
Expand Down

0 comments on commit af43ebf

Please sign in to comment.