skb

Version, currently master branch1 version
  • master branchlatestApr 2, 2022

github.com/zhangkaizhao/skb

Simple knowledge base

2 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  skb:
    github: zhangkaizhao/skb
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
>= 1.0.0, < 2.0
License
MIT
Author
Kaizhao Zhang
Target
  • skb from src/skb.cr

Dependencies

Runtime Dependencies

README

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>