1
0

Fix federation links

This commit is contained in:
Zef Hemel 2023-12-21 19:19:09 +01:00
parent 90659c9c7e
commit 5abdf1c80c
8 changed files with 7 additions and 17 deletions

View File

@ -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");
}

View File

@ -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 dont 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 dont 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]].

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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, thats all it is.
Feel free to back-up or manipulate your spaces folder and its files with whatever tool you like — you dont have to use SilverBullet exclusively. You may want to turn your spaces 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 spaces folder and its files with whatever tool you like — you dont have to use SilverBullet exclusively. You may want to turn your spaces 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]]

View File

@ -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