2023-08-18 20:44:27 +02:00
% always_expanded = true
id = "treehouse"
2023-08-17 21:59:56 +02:00
- # treehouse
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VKPZMHFFM10YHN3E8"
# example
2023-08-18 18:26:41 +02:00
- welcome to the treehouse!
2023-08-17 21:59:56 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V39Y628G58AYM2J3V"
2023-08-17 21:59:56 +02:00
- treehouse is a brand new static website generator, inspired by the likes of Jekyll and Hugo, but offering a writing experience more close to Logseq
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VKK2JY7ES8G19G13B"
2023-08-18 17:04:12 +02:00
- ie. a public braindump adsadasdsad
2023-08-17 21:59:56 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VT45CC130D7DFQEAM"
2023-08-17 21:59:56 +02:00
- since you're here, you're probably just setting up
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VC8Z5RZX7BX7FW1H5"
2023-08-17 21:59:56 +02:00
- i'd highly recommend familiarizing yourself with the syntax by visiting `content/tree/root.tree`
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VZBJ3VJ0HF13MYNM7"
2023-08-17 21:59:56 +02:00
- this special file is almost like your index.html
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VXPV3AW3GY91GSVED"
2023-08-18 17:04:12 +02:00
+ the .tree syntax is pretty simple
2023-08-17 21:59:56 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VASWHBMW8A95XJN54"
2023-08-17 21:59:56 +02:00
- separate blocks are delimited with a blank line
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VGN7FR5Q7MRWZYRV8"
2023-08-17 21:59:56 +02:00
- the indentation level (number of spaces) decides how nested the block is
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VFZSXAT3X8X5RM1QR"
2023-08-17 21:59:56 +02:00
- the exact amount doesn't matter, just that more nested blocks must have more spaces before them than their parents
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VA48JYHA7K3V5SVTE"
2023-08-17 21:59:56 +02:00
- also blocks on the same level must be indented with the same number of spaces but that's hopefully pretty obvious
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VFEYPTBS6PFM0HBSV"
2023-08-17 21:59:56 +02:00
+ the block content begins with a dash `-` or a plus `+`
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VV1BF1FNQ9TAYMSMP"
2023-08-17 21:59:56 +02:00
- a dash `-` means that the block is open by default
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V5Y7P06QN2BD3BN10"
2023-08-17 21:59:56 +02:00
- a plus `+` means that the block is hidden by default
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VG436W4BCTMHPGBR4"
2023-08-18 17:04:12 +02:00
- before the block content, there can be an arbitrary amount of TOML pecifying the block attributes
2023-08-17 21:59:56 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V4DWDTBHRM3V7ASDZ"
2023-08-17 21:59:56 +02:00
- many keys are available but they aren't really documented outside of code
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VZ0G2EH387M4B933Z"
2023-08-17 21:59:56 +02:00
- blocks can span multiple lines as long as they are not broken apart with a blank line
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VJWX76JKSXARTTAWB"
2023-08-17 21:59:56 +02:00
- that means each block can contain at most one paragraph, unless you use dirty HTML hacks (cheater!)
2023-08-18 17:04:12 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V10A30WK19C9T9F8M"
2023-08-18 17:04:12 +02:00
- .tree composes together with Markdown to let you format text however you want
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V36JFQXR9ZD69CBHY"
2023-08-18 17:04:12 +02:00
- here's a bunch of stuff formatted
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VN395W0RE2WZRTJHX"
2023-08-18 17:04:12 +02:00
- # heading 1
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V4K2PAQ4KJ3HZK15C"
2023-08-18 17:04:12 +02:00
- ## heading 2
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V4MGZ6FB4BBTZG3XP"
2023-08-18 17:04:12 +02:00
- ### heading 3
headings lower than this aren't really supported because c'mon who would be this crazy
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VVGS5TKRPFM7877QX"
2023-08-18 18:26:41 +02:00
- this is supposed to be **bold** and this is supposed to be _italic_
2023-08-18 17:04:12 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VCE6DQ7NFGJVAPBT7"
2023-08-18 18:26:41 +02:00
- there's a line break<br>
here
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VVE57EAQQHC173CTW"
2023-08-18 18:26:41 +02:00
- and it's supposed to render correctly
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V7N2VV9RN0BAV868Y"
2023-08-18 18:26:41 +02:00
- <https://liquidev.net> also [a link that you have not visited because there is nothing there](https://liquidev.net/nothing-to-see-here-lmfao-did-you-really-expect-me-to-create-such-a-behemoth-of-a-URL)
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VJYPEBNB0SS8W59Y5"
2023-08-18 19:25:38 +02:00
+ here is my favorite fluffy boy
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VW5EY37KENKHW44MT"
2023-08-18 19:25:38 +02:00
- ![ralsei with a hat](https://liquidev.net/syf/art/20230723_ralsei_hat.png)
2023-08-18 18:26:41 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VDHN74M2V40ERPXR8"
2023-08-18 20:58:07 +02:00
- wow he very beeg
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V74QGFR5W1YPD7Y6R"
2023-08-18 18:26:41 +02:00
- without a hat is also nice uwu
2023-08-18 17:04:12 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VM0T037022X4BD9BF"
2023-08-18 17:04:12 +02:00
- also a block quote
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V0N1RHRY1TRTWPPEH"
2023-08-18 17:04:12 +02:00
- > Enough You Foolish Children
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V8H7SFG7KFJCN70NJ"
2023-08-18 18:26:41 +02:00
- yes i will totally abuse you with Deltarune references and you cannot stop me
2023-08-18 17:04:12 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VSV3XG2PPDF0VAFSA"
2023-08-18 17:04:12 +02:00
- ```
this is some block of code it looks pretty cool doesn't it
```
2023-08-18 18:26:41 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V915BH987XG3J84TQ"
2023-08-18 18:26:41 +02:00
- ```
and here's a multiline code block which also looks cool
many many many lines
```
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V8AF94YR6X8MNQAWZ"
2023-08-18 18:26:41 +02:00
- and a table because benchmarks use those
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VJVPK637SGVQW9R0N"
2023-08-18 18:26:41 +02:00
-
| weeee | woosh | wa-ho |
| --- | --- | --- |
| yep | that's | a table |
| looks | pretty cool | huh |
2023-08-18 18:38:36 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VSPHHVVRMCJMFCQMW"
2023-08-18 19:25:38 +02:00
- sorry for how ugly the table styles look i spent like literally 5 minutes on them please don't jugde them too hard
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VVXHYTRZXRVHAGS5H"
2023-08-18 18:38:36 +02:00
- well anyways here's a braindump for SVGs
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V8DR91Y24KY4BNR5F"
- leaf node
2023-08-18 19:25:38 +02:00
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><circle cx="7" cy="7" r="2" fill="currentColor"/></svg>
2023-08-18 18:38:36 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V7HK38BZZYT1GTSZ8"
2023-08-18 18:38:36 +02:00
- collapsed
2023-08-18 19:25:38 +02:00
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><line x1="4" y1="8" x2="12" y2="8" stroke="currentColor" stroke-width="2"/><line x1="8" y1="4" x2="8" y2="12" stroke="currentColor" stroke-width="2"/></svg>
2023-08-18 18:38:36 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V6ZTQN5E9NG28JPPJ"
2023-08-18 18:38:36 +02:00
- expanded
2023-08-18 19:25:38 +02:00
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><line x1="4" y1="8" x2="12" y2="8" stroke="currentColor" stroke-width="2"/></svg>
2023-08-18 18:38:36 +02:00
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V2RKTDV3E2KZAYPCH"
2023-08-18 20:44:27 +02:00
+ some tests for multiple ps in one block
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VYHGWDSXE84HE0YH2"
2023-08-18 20:44:27 +02:00
- here's a test for multiple paragraphs in one block
this should be working fine
2023-08-19 22:40:56 +02:00
% id = "01H87RD70V6GZSE3ZASMJSP843"
2023-08-18 20:44:27 +02:00
- and this shouldn't be breaking yeah
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VBA933H07APZZ1GDT"
2023-08-18 20:44:27 +02:00
- nor should
this be
2023-08-19 22:40:56 +02:00
% id = "01H87RD70VNVQ75DCWW5FQG9AR"
2023-08-18 20:44:27 +02:00
- breaking
2023-08-20 12:15:48 +02:00
% content.link = "secret"
- this block includes another block's content