Steps to setup the project:
- Run
raco pkg install --auto trin the project - Creates a directory
mkdir your-siteand goes into it - Run
raco tr initthen updatesite.json(check Shell Commands for more CLI interaction)
raco tr init do the following
- Create
.gitignorewith_tmp/ _build/ assets/
- Create
site.jsonwith{ "domain": "your domain", "title": "your site title", "description": "your site description" } git clone https://git.sr.ht/\~dannypsnl/tr-assets assetsCreate directory
contentandcontent/postgit init
Now you can add some *.scrbl in content/ directory as you wanted. Each *.scrbl is called a card.
Directory content/post is treated specially in that RSS only use cards in this directory as items.
A card addr.scrbl (no matter its full path) has an address addr, and the address must be unique in the whole TR project.
The content of card mostly are just HTML in at-exp form, scribble HTML describes more about what can be used.
Further guide will teach you what's in the toolbox.