janssensimon / wimp Goto Github PK
View Code? Open in Web Editor NEWDynamic Static Website generator using inotify and pandoc to compile markdown
License: Other
Dynamic Static Website generator using inotify and pandoc to compile markdown
License: Other
Error on line 12 of the produced unit file after wimp init
:
Ignoring unknown escape sequences: "inotifywait -qmre modify -e delete --format ...
Failed to resolve unit specifiers in inotifywait -qmre modify -e delete --format ...
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).
Make sure internalization is possible on sites using gettext
https://en.wikipedia.org/wiki/Gettext
https://developer.mozilla.org/en-US/docs/Glossary/Localization
https://po4a.org/index.php.en
When a link is made from one markdown file to another, it should be converted to a link between the corresponding HTML files.
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.
Add checks to the code to make sure that it is idempotent
(https://en.wikipedia.org/wiki/Idempotence#Computer_science_meaning)
This requires:
/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
systemctl daemon-reload
systemctl enable wimp.service
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="...".
Decide what the default behaviour should be without the use of commands. It should probably be to check if the wimp is initialised, initialise it if not, then run watch.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.