From 9a38595b4628bc8c2645306333fcfccfbcf462f8 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Wed, 24 May 2023 06:29:06 +0200 Subject: [PATCH] Redirect to latest release --- .DS_Store | Bin 0 -> 6148 bytes .gitignore | 2 ++ netlify/edge-functions/release.ts | 18 +++++++++++ tmp/SETTINGS.md | 5 +++ tmp/index.md | 51 ++++++++++++++++++++++++++++++ web/_redirects | 3 -- 6 files changed, 76 insertions(+), 3 deletions(-) create mode 100755 .DS_Store create mode 100644 .gitignore create mode 100644 netlify/edge-functions/release.ts create mode 100644 tmp/SETTINGS.md create mode 100644 tmp/index.md diff --git a/.DS_Store b/.DS_Store new file mode 100755 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 { + console.log("HERE"); + const res = await fetch( + "https://github.com/silverbulletmd/silverbullet/releases/latest/download/silverbullet.js", + ); + return new Response(res.body, { + headers: { + ...res.headers, + "Content-type": "application/javascript", + }, + }); +} diff --git a/tmp/SETTINGS.md b/tmp/SETTINGS.md new file mode 100644 index 00000000..4b688e9c --- /dev/null +++ b/tmp/SETTINGS.md @@ -0,0 +1,5 @@ +This page contains settings for configuring SilverBullet and its plugs. Any changes outside of the yaml block will be overwritten. + +```yaml +indexPage: index +``` diff --git a/tmp/index.md b/tmp/index.md new file mode 100644 index 00000000..e1a7c366 --- /dev/null +++ b/tmp/index.md @@ -0,0 +1,51 @@ +Hello! And welcome to your brand new SilverBullet space! + + +## Getting started +The best way to get a good feel for what SilverBullet is to immediately start playing with it. Here are some things for you to try: + +* Click on the page picker (book icon) icon at the top right, or hit `Cmd-k` (Mac) or `Ctrl-k` (Linux and Windows) to open the **page switcher**. + * Type the name of a non-existent page to create it. + * You _can_ create pages in folders (if you’re into that type of thing) simply by putting slashes (`/`) in the name (even on Windows), e.g. `My Folder/My Page`. Don’t worry about that folder existing, we’ll automatically create it if it doesn’t. +* Click on the terminal icon (top right), hit `Cmd-/` (Mac) or `Ctrl-/` (Linux and Windows), or tap the screen with 3 fingers at the same time (on mobile) to open the **command palette**. The {[Stats: Show]} one is a safe one to try. +* Select some text and hit `Alt-m` to ==highlight== it, or `Cmd-b` (Mac) or `Ctrl-b` (Windows/Linux) to make it **bold**, or `Cmd-i` (Mac) or `Ctrl-i` (Windows/Linux) to make it _italic_. +* Click a link somewhere on this page to navigate there. When you link to a new page it will initially show up in red (to indicate it does not yet exist), but once you click it — you will create the page automatically (only for real when you actually enter some text). +* Start typing `[[` somewhere to insert your own page link (with completion). +* [ ] Tap this box 👈 to mark this task as done. +* Start typing `:party` to trigger the emoji picker 🎉 +* Type `/` somewhere in the text to invoke a **slash command**. +* Hit `Cmd-p` (Mac) or `Ctrl-p` (Windows, Linux) to show a preview for the current page on the side. +* If this is matching your personality type, you can click this button {[Editor: Toggle Vim Mode]} to toggle Vim mode. If you cannot figure out how to exit it, just click that button again. _Phew!_ + +Notice that as you move your cursor around on this page and you get close to or “inside” marked up text, you will get to see the underlying [[💭 silverbullet.md/Markdown]] code. This experience is what we refer to as “live preview” — generally your text looks clean, but you still can see what’s under the covers and edit it directly, as opposed to [WYSIWYG](https://en.wikipedia.org/wiki/WYSIWYG) that some other applications use. To move your cursor somewhere using your mouse without navigating or activating (e.g. a wiki, regular link, or a button) hold `Alt` when you click. Holding `Cmd` or `Ctrl` when clicking a link will open it in a new tab or window. + +Hadn’t we mentioned [[💭 silverbullet.md/Markdown]] yet? Yeah, that’s the markup language you’ll use to add that dash of markup to your documents. It’s pretty simple to learn if you don’t know it already. + +You will notice this whole page section is wrapped in a strange type of block. This is a SilverBullet specific feature called a [[💭 silverbullet.md/🔌 Directive]] (in this case `#use`). There are various types of directives, and while we’re not keeping score, likely the coolest ones are [[💭 silverbullet.md/🔌 Directive/Query|queries]] — so you should definitely look into those. + +Don’t believe me, check this out, here’s a list of (max 10) pages in your space ordered by last modified date, it updates (somewhat) dynamically 🤯. Create some new pages and come back here to see that it works: + +|name | +|--------| +|SETTINGS| +|index | + +That said, the directive used wrapping this page section is `#use` which uses the content of another page as a template and inlines it. Directives recalculate their bodies in two scenarios: + +1. When you load/switch to a page +2. When you explicitly run the {[Directives: Update]} command + +In the case of `#use` this means the body will again be replaced with the page included, so don’t be surprised when whatever you just updated inside of this directive block will be undone later. Just sayin’. [[💭 silverbullet.md/🔌 Directive|Directives]] are a powerful feature, so you should definitely look into them once you get comfortable with the basics. + +Feel free to completely remove all content on this page and make it your own, it’s just to get you started. + +## What next? +If you are a visual learner, you may [enjoy this introduction video on Youtube](https://youtu.be/VemS-cqAD5k). + +Beyond that, you can find more information about SilverBullet on its official website. You have two ways to access it: + +1. Through its [regular website link](https://silverbullet.md/) +2. Directly without leaving SilverBullet, through [[💭 silverbullet.md/Cloud Links]], just click on this: [[💭 silverbullet.md/SilverBullet]] (note that all of these will be read-only, for obvious reasons) + +To keep up with the latest and greatest going-ons in SilverBullet land, keep an eye on the [[💭 silverbullet.md/CHANGELOG]], and regularly update your SilverBullet instance (`silverbullet upgrade` if you’re running the Deno version). If you run into any issues or have ideas on how to make SilverBullet even awesomer (yes, that’s a word), [join the conversation on GitHub](https://github.com/silverbulletmd/silverbullet). + \ No newline at end of file diff --git a/web/_redirects b/web/_redirects index a1bc3ddd..e69de29b 100755 --- a/web/_redirects +++ b/web/_redirects @@ -1,3 +0,0 @@ -/global.plug.json https://silverbullet.md/global.plug.json 200 -/ https://silverbullet.md/silverbullet.js 200 -/sb.js https://github.com/silverbulletmd/silverbullet/releases/latest/download/silverbullet.js 200