skb
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 build
then get the built binarybin/skb
Configuration
- Copy the
settings.default.yml
file tosettings.yml
and fill in your own details - Replace any static files in the
public
directory. 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/skb
and 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>
Repository
skb
Owner
Statistic
- 2
- 0
- 0
- 0
- 4
- over 2 years ago
- September 26, 2020
License
MIT License
Links
Synced at
Sun, 22 Dec 2024 05:06:06 GMT
Languages