starfish-cli

1.1.11 • Public • Published

Starfish

a blog render system, support org-mode and markdown.

also support custom renderer by write a plugin.

install

npm install -g starfish-cli

or

yarn add -g starfish-cli

use

render

starfish render [blog source path]

init

blog source structure

 

configure

config.yml example:

AUTHOR:
  NAME: 'test-reboot'
  GITHUB: 'reboot'
 
BLOG:
  ARTICLES_DIR: 'articles'
  DOMAIN: 'test.starfish.org'
  HTTPS: false
  NAME: 'reboot blog'
  DESC: 'this is reboot bog'
  TMPDIR: '/tmp'
  TMPNAME: 'NobbBuildTemp'
  PORT: 8080
  HOST: '127.0.0.1'
  INDEX_ARTICLE_NUMBER: 7
  CATEGORY_ARTICLE_NUMBER: 20
  ALL_PAGE_ARTICLE_NUMBER: 20
  SORT_ARTICLE_BY: 'create'
  ARTICLE_SUMMARY_CHAR_NUMBER: 300
  IGNORE_CATEGORY_RENDER: false  # ignore category render 
 
STYLE:
  THEMEDIR: '@themes'
  THEME: 'mock-theme'
  THEME_CONFIG_FILE: 'theme.config.yaml'
 
CONFIG:
  CONFIG_FILE: 'config.yaml'
  DIR_CONFIG_FILE: '.nobbbconfig.yaml'
  IGNORE_FILE: '.ignore'
 
SERVE:
  HOST: '0.0.0.0'
  PORT: '8080'
 
MAPPING:
  '@root-asset/*': '/'
 
LANG: 'zh-CN'
 

Readme

Keywords

none

Package Sidebar

Install

npm i starfish-cli

Weekly Downloads

3

Version

1.1.11

License

ISC

Unpacked Size

248 kB

Total Files

72

Last publish

Collaborators

  • abychan