Skip to content

Commit a82e34c

Browse files
committed
fix docs not generating
1 parent 57cac7e commit a82e34c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

esbuild.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const mockedPlugins = [replace({
2525
// update usage of moment from obsidian to the node implementation of moment we have
2626
'import {moment} from \'obsidian\';': 'import moment from \'moment\';',
2727
// remove the use of obsidian in the options to allow for docs.js to run
28-
'import {Setting} from \'obsidian\';': '',
28+
'import {App, Setting, ToggleComponent} from \'obsidian\';': '',
2929
// remove the use of obsidian in settings helper to allow for docs.js to run
3030
'import {App, MarkdownRenderer} from \'obsidian\';': '',
3131
// remove the use of obsidian in the auto-correct files picker to allow for docs.js to run
@@ -38,6 +38,8 @@ const mockedPlugins = [replace({
3838
'import {App, TFile} from \'obsidian\';': '',
3939
// remove the use of obsidian in parse results modal to allow for docs.js to run
4040
'import {Modal, App} from \'obsidian\';': 'class Modal {}',
41+
// remove the use of app from a couple of settings for docs.js to run
42+
'import {App} from \'obsidian\';': '',
4143
},
4244
delimiters: ['', ''],
4345
})];

src/ui/modals/confirm-rule-disable-modal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Modal, App} from 'obsidian';
2-
import {getTextInLanguage, LanguageStringKey} from 'src/lang/helpers';
2+
import {getTextInLanguage, LanguageStringKey} from '../../lang/helpers';
33
import {setElContent} from '../helpers';
44

55
// https://github.com/nothingislost/obsidian-workspaces-plus/blob/bbba928ec64b30b8dec7fe8fc9e5d2d96543f1f3/src/modal.ts#L68

0 commit comments

Comments
 (0)