Giter VIP home page Giter VIP logo

wimp's People

Contributors

janssensimon avatar

Stargazers

 avatar  avatar

Watchers

 avatar

wimp's Issues

Delete html files when associated markdown file is deleted

This already works for the compile-all functionality, but it needs to be implemented in the inotifywait executed command.

This requires adding a new flag to the inotifywait command so that it includes the type of action which is done, as well as having it watch for delete actions.

Then in the command executed by inotifywait, the type of action needs to be parsed and the corresponding action must be taken (either delete a file or compile a file).

Allow use of custom style files again

The latest release removed support for custom files. The program should check to see if custom files exist and if so, use them in the pandoc conversion.

Create a daemon to run the watch function on startup using systemd

This requires:

  1. Creating a file in /etc/systemd/system/wimp.service
[Unit]
Description=Run wimp website generator

[Service]
Type=simple
RemainAfterExit=yes
ExecStart=<location of script>
TimeoutStartSec=0

[Install]
WantedBy=default.target
  1. Then run systemctl daemon-reload
  2. Finally run systemctl enable wimp.service

Silence pandoc error about missing title

Pandoc outputs this everytime it converts a markdown file to html. The default title it chooses is great and I don't want the wimp to output this message everytime.

[WARNING] This document format requires a nonempty <title> element.
  Defaulting to 'File1' as the title.
  To specify a title, use 'title' in metadata or --metadata title="...".

Track inotifywait process.

It would be great to check whether inotifywait is already running so that multiple conflicting instances aren't running together.

I don't know how to figure out whether a wimp is already watching a folder, though.

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.