Skip to content

Commit 0c5c5f6

Browse files
committed
Normalize path on custom base dir save and add resources to community section
1 parent 7ee2ec9 commit 0c5c5f6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ Note: This plugin requires a subscription with [Readwise](https://readwise.io)
3232

3333
## Community Resources
3434

35-
* As the Obsidian community creates resources explaining their use of the Readwise Official plugin, we'll add those links here!
35+
* [First Look at the Official Readwise Obsidian Plugin](https://medium.com/@benenewton/first-look-at-the-official-readwise-obsidian-plugin-5d553c0d0521) article by Ben Newton
36+
* [😱 Readwise + Obsidian](https://www.youtube.com/watch?v=Gr7kMb-Fwj8) video by Effective Remote Work

main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,7 @@ class ReadwiseSettingTab extends PluginSettingTab {
535535
.setPlaceholder('Defaults to: Readwise')
536536
.setValue(this.plugin.settings.readwiseDir)
537537
.onChange(async (value) => {
538-
const folderPath = value || "Readwise";
539-
this.plugin.settings.readwiseDir = folderPath.replace(/\/+$/, "");
538+
this.plugin.settings.readwiseDir = normalizePath(value || "Readwise");
540539
await this.plugin.saveSettings();
541540
}));
542541

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"dev": "rollup --config rollup.config.js -w",
88
"build": "rollup --config rollup.config.js --environment READWISE_SERVER_URL:https://readwise.io",
9-
"dist": "npm run build && mkdir -p dist/obsidian-readwise && cp styles.css main.js versions.json manifest.json dist/obsidian-readwise"
9+
"dist": "npm run build && mkdir -p dist && cp styles.css main.js manifest.json dist"
1010
},
1111
"keywords": [
1212
"obsidian",

0 commit comments

Comments
 (0)