GithubHelp home page GithubHelp logo

carassius1014 / pandoc-watch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dloureiro/pandoc-watch

0.0 1.0 0.0 182 KB

A simple watch to call the pandoc command with the provided arguments when a file/folder modification is detected

License: GNU Affero General Public License v3.0

Python 100.00%

pandoc-watch's Introduction

pandoc-watch

Goal

A simple watcher used to call the pandoc command with the provided arguments when a file/folder modification is detected.

Details

pandoc-watchis a simple script used to perform the pandoc compilation based on the provided arguments.

It's written in python and uses the watchdog module to catch file/folder events.

pandoc is a general purpose compiler used to convert files from one markup format into another. For more information, please refer to pandoc website : http://johnmacfarlane.net/pandoc

Installation

First things first, intall the watchdog module with pip through the following command:

$ pip install watchdog

Then clone the repository wherever you want and add it to your path:

$ git clone https://github.com/dloureiro/pandoc-watch.git
$ export PATH=$(pwd):$PATH

Simple as that!

You sure need to have a functionnal installation of pandoc on your machine and it should be available in the PATH

You can download it from John Mac Farlane dedicated website : http://johnmacfarlane.net/pandoc

How to use pandoc-watch

pandoc-watch mainly adds an extra argument to the pandoc standard options : -e,--exclude used to exclude:

  • file extensions
  • folders

from the monitoring when watching for file or folder changes.

Aside from this option, the remaining is passed to the pandoc executable without modification.

Default exclusions

If no exclusion option is provided the default value is .pdf,.tex,doc,bin,common. This default values fit my needs and can be modified if necessary.

Excluding file extensions from the monitoring

To add file extensions to the excluded extensions, call pandoc-watch as follow:

pandoc-watch -e ".pdf,.tex" ...

This commande will exclude all files with pdf or tex extensions from the monitoring.

Excluding folders from the monitoring

To exclude folders from the monitoring, call pandoc-watch as follow:

pandoc-watch -e "bin,common"

License

pandoc-watchis provided under the AGPL v3.0 license.

Please refer to the COPYING file for detail information.

pandoc-watch's People

Contributors

olivierblanvillain avatar jpadvo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.