skb - Simple knowledge base
skb is a small Crystal/Amber application that allows you to simply publish a collection of Markdown files.
This is inspired by pkb. And most of the source code is ported from pkb.
The purpose of skb is just a practice of the Crystal language.
The favicon (pencil-alt) is from Heroicons
Building
- Install Crystal
- Run
shards buildthen get the built binarybin/skb
Configuration
- Copy the
settings.default.ymlfile tosettings.ymland fill in your own details - Replace any static files in the
publicdirectory. e.g.favicon.ico - Link the directory with your Markdown files in it. e.g.
ln -s ~/Dropbox/My\ Markdown\ Files pages - Start the server,
./bin/skband visit http://localhost:3000/pages - You should have Markdown file called
home.md. This file will be shown as the homepage: http://localhost:3000/
Sample home.md
Please see sample/pages/home.md
There is a custom element named recently-changed-list.
It has an optional attribute limit with default value "5".
Use it without the optional attribute limit:
<recently-changed-list></recently-changed-list>
Use it with the optional attribute limit:
<recently-changed-list limit="8"></recently-changed-list>