Project

markun

0.0
No commit activity in last 3 years
No release in over 3 years
Markun is Markdown bulk converter with menu link
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
~> 2.14.1
~> 0.8.2

Runtime

~> 4.0.2
~> 1.3.0
~> 0.18.1
 Project Readme

Markun

Markun is Markdown bulk converter with menu link

Purpose

  • Markun convert all Markdown-files to html-files with menu link.

(If you do not want to create menu link, set Markunfile's have_menu to 'false'.)

  • Target is All of the '*.md'files and subdirectories.

Installation

Add this line to your application's Gemfile:

gem 'markun'

And then execute:

$ bundle

Or install it yourself as:

$ gem install markun

Structure

before convert

.
┗ Target
    ┠ Markunfile :dsl setting file
    ┠ some1.md
    ┠ some2.md
    ┗  sub
      sub1.md
      sub2.md

after convert

.
┗ Target
    ┠ Markunfile :dsl setting file
    ┠ some1.md
    ┠ some1.html
    ┠ some2.md
    ┠ some2.html
    ┗  sub
        ┠ sub1.md
        ┠ sub1.html
        ┠ sub2.md
        ┗ sub2.html

Usage

Before Structure

$ tree
.
┠ parent1.md
┠ parent2.md
┗ sub
    ┠ sub1.md
    ┗ sub2.md

Steps

  • markun init
  • confirm generated Markunfile
# encoding: utf-8

# have menu or not
# have_menu allow only String
# have_menu's default value => "false"
have_menu "false"
  • edit Markunfile
# encoding: utf-8
have_menu "true"
  • execute markun
$ markun execute
$ tree
┠ Markunfile
┠ parent1.html
┠ parent1.md
┠ parent2.html
┠ parent2.md
┗ sub
    ┠ sub1.html
    ┠ sub1.md
    ┠ sub2.html
    ┗ sub2.md

Result Caputure Sample

  • parent1.html


  • sub/sub1.html

Notes

  • Markun uses kramdown gem for markdown converter.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request