zhangkaizhao / skb

Simple knowledge base

Home Page:http://notes.zhangkaizhao.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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>

About

Simple knowledge base

http://notes.zhangkaizhao.com/

License:MIT License


Languages

Language:Crystal 91.1%Language:CSS 8.9%