skb

Simple knowledge base

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

Configuration

  • Copy the settings.default.yml file to settings.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>
Owner
github statistic
  • 0
  • 0
  • 0
  • 0
  • 15 days ago
  • September 26, 2020
License

MIT License

Links
Synced at

Wed, 20 Jan 2021 21:37:17 GMT