From 5abdf1c80c45c4a7ecfe1780ef24240ab80d5c07 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Thu, 21 Dec 2023 19:19:09 +0100 Subject: [PATCH] Fix federation links --- plugs/federation/federation.ts | 9 ++------- website/Install/Configuration.md | 2 +- website/{πŸ”Œ Editor => }/Link Unfurl.md | 0 website/Plugs/Editor.md | 2 +- website/{πŸ”Œ Ghost.md => Plugs/Ghost.md} | 2 +- website/{πŸ”Œ Git.md => Plugs/Git.md} | 2 +- website/Spaces.md | 2 +- website/πŸ”Œ Core/Edit Commands.md | 5 ----- 8 files changed, 7 insertions(+), 17 deletions(-) rename website/{πŸ”Œ Editor => }/Link Unfurl.md (100%) rename website/{πŸ”Œ Ghost.md => Plugs/Ghost.md} (96%) rename website/{πŸ”Œ Git.md => Plugs/Git.md} (95%) delete mode 100644 website/πŸ”Œ Core/Edit Commands.md diff --git a/plugs/federation/federation.ts b/plugs/federation/federation.ts index bc67b28..0088cf6 100644 --- a/plugs/federation/federation.ts +++ b/plugs/federation/federation.ts @@ -119,13 +119,8 @@ export async function readFile( name: string, ): Promise<{ data: Uint8Array; meta: FileMeta } | undefined> { const url = federatedPathToUrl(name); - console.log("Fetfching fedderated file", url); - const r = await nativeFetch(url, { - method: "GET", - headers: { - "X-Sync-Mode": "true", - }, - }); + console.log("Fetching fedderated file", url); + const r = await nativeFetch(url); if (r.status === 503) { throw new Error("Offline"); } diff --git a/website/Install/Configuration.md b/website/Install/Configuration.md index 6cf2230..b7717c9 100644 --- a/website/Install/Configuration.md +++ b/website/Install/Configuration.md @@ -87,7 +87,7 @@ $runmode # Security $security -SilverBullet enables plugs to run shell commands. This is used by e.g. the [[πŸ”Œ Git]] plug to perform git commands. This is potentially unsafe. If you don’t need this, you can disable this functionality: +SilverBullet enables plugs to run shell commands. This is used by e.g. the [[Plugs/Git]] plug to perform git commands. This is potentially unsafe. If you don’t need this, you can disable this functionality: * `SB_SHELL_BACKEND`: Enable/disable running of shell commands from plugs, defaults to `local` (enabled), set to `off` to disable. It is only enabled when using a local folder for [[$storage]]. diff --git a/website/πŸ”Œ Editor/Link Unfurl.md b/website/Link Unfurl.md similarity index 100% rename from website/πŸ”Œ Editor/Link Unfurl.md rename to website/Link Unfurl.md diff --git a/website/Plugs/Editor.md b/website/Plugs/Editor.md index a403fe4..449e877 100644 --- a/website/Plugs/Editor.md +++ b/website/Plugs/Editor.md @@ -30,7 +30,7 @@ The `editor` plug implements foundational editor functionality for SilverBullet. * {[Text: Bold]}: make text **bold** * {[Text: Italic]}: make text _italic_ * {[Text: Marker]}: mark text with a ==marker color== -* {[Link: Unfurl]}: β€œUnfurl” a link, see [[πŸ”Œ Editor/Link Unfurl]] +* {[Link: Unfurl]}: β€œUnfurl” a link, see [[Link Unfurl]] # Outlines ```template diff --git a/website/πŸ”Œ Ghost.md b/website/Plugs/Ghost.md similarity index 96% rename from website/πŸ”Œ Ghost.md rename to website/Plugs/Ghost.md index 9a7ecb2..50542db 100644 --- a/website/πŸ”Œ Ghost.md +++ b/website/Plugs/Ghost.md @@ -1,5 +1,5 @@ --- -type: plug +tags: plug uri: github:silverbulletmd/silverbullet-ghost/ghost.plug.js repo: https://github.com/silverbulletmd/silverbullet-ghost author: Zef Hemel diff --git a/website/πŸ”Œ Git.md b/website/Plugs/Git.md similarity index 95% rename from website/πŸ”Œ Git.md rename to website/Plugs/Git.md index 20fe7d1..993dc87 100644 --- a/website/πŸ”Œ Git.md +++ b/website/Plugs/Git.md @@ -1,5 +1,5 @@ --- -type: plug +tags: plug uri: github:silverbulletmd/silverbullet-git/git.plug.js repo: https://github.com/silverbulletmd/silverbullet-git author: Zef Hemel diff --git a/website/Spaces.md b/website/Spaces.md index 62b70c1..685108f 100644 --- a/website/Spaces.md +++ b/website/Spaces.md @@ -1,6 +1,6 @@ A _space_ is SilverBullet terminology for a workspace, or project. [Obsidian](https://obsidian.md/) calls this a vault, [LogSeq](https://logseq.com/) calls it a graph. You may think of it as a [[Folders|folder]] or a directory β€” because in practical terms, that’s all it is. -Feel free to back-up or manipulate your space’s folder and its files with whatever tool you like β€” you don’t have to use SilverBullet exclusively. You may want to turn your space’s folder into a git repository, for instance, and do version control and back-ups that way β€” in which case you may appreciated the [[πŸ”Œ Git]] plug. +Feel free to back-up or manipulate your space’s folder and its files with whatever tool you like β€” you don’t have to use SilverBullet exclusively. You may want to turn your space’s folder into a git repository, for instance, and do version control and back-ups that way β€” in which case you may appreciated the [[Plugs/Git]] plug. A space consists of * [[Folders]] diff --git a/website/πŸ”Œ Core/Edit Commands.md b/website/πŸ”Œ Core/Edit Commands.md deleted file mode 100644 index 0faea62..0000000 --- a/website/πŸ”Œ Core/Edit Commands.md +++ /dev/null @@ -1,5 +0,0 @@ -The [[Plugs/Editor]] plug provides various useful edit commands, such as: - -* {[Text: Bold]} {[Text: Italic]} {[Text: Marker]} to respectively make text bold, italic or mark it. -* {[Text: Listify Selection]} to turn each line in the selection into a (bullet) list -* {[Text: Number Listify Selection]} to turn each line in the selection into a numbered list