mark-them-all

1.1.0 • Public • Published

mark-them-all

NPM Version NPM Downloads

PayPayl donate button

Npm Installation

Install globally prefered

$ npm i -g mark-them-all

Run

$ markta path/to/source path/to/output [-v]

Arguments

  • path/to/source: the dir with .md files
  • path/to/output : target dir: will create or replace it; also will add a css dir
  • -v enable verbose mode
    To add options: place a .markta.json file into path/to/source

Options

.markta.json example

{
  "title": "My great documentation",
  "mode": "static",
  "ignore": ".*,.git/"
}
  • title: the title for every page, if missing will be used file name
  • mode: static or web (default static)
    • if static, the link paths will be absolute to filesystem
    • if web, the path link paths will be relative from output dir
  • ignore: use git ignore syntax, comma separated
    • referer to ignore for more datils
Mode static or web

Will be replace references to .md files in .html generated files in link Example

[inner link](./path/to/document.md)

will be in web mode

<a href="/path/to/document.html">inner link</a>

will be in static mode, pretending output path is /var/data/doc

<a href="/var/data/doc/path/to/document.html">inner link</a>

License

The MIT License (MIT)

Copyright (c) 2015 Simone Sanfratello

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Readme

Keywords

Package Sidebar

Install

npm i mark-them-all

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • simone.sanfra