aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspalax <spalax@web>2014-10-04 06:37:19 -0400
committeradmin <admin@branchable.com>2014-10-04 06:37:19 -0400
commit5bfdc886e6aef5776a4093d4c957320f55021a4a (patch)
tree6abe9f38b3e8db6d37b0af5310d388381fc59dca
parentfec2c505e527e7801ba2dd100344a5bfedb642f0 (diff)
downloadikiwiki-5bfdc886e6aef5776a4093d4c957320f55021a4a.tar
ikiwiki-5bfdc886e6aef5776a4093d4c957320f55021a4a.tar.gz
Added a comment: Plugin compile
-rw-r--r--doc/forum/Export_images_when_building_the_wiki/comment_5_7e0a6336c6a6785d9cf4b6b4b124fd6d._comment24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/forum/Export_images_when_building_the_wiki/comment_5_7e0a6336c6a6785d9cf4b6b4b124fd6d._comment b/doc/forum/Export_images_when_building_the_wiki/comment_5_7e0a6336c6a6785d9cf4b6b4b124fd6d._comment
new file mode 100644
index 000000000..81ea1b47e
--- /dev/null
+++ b/doc/forum/Export_images_when_building_the_wiki/comment_5_7e0a6336c6a6785d9cf4b6b4b124fd6d._comment
@@ -0,0 +1,24 @@
+[[!comment format=mdwn
+ username="spalax"
+ ip="82.233.196.200"
+ subject="Plugin compile"
+ date="2014-10-04T10:37:16Z"
+ content="""
+Hello,
+I enventually wrote a plugin that might fit your need: [[plugins/contrib/compile]].
+
+In setup file, you specify which command is to be applied to files. For instance, to convent `odt` files to `pdf`, you can use:
+
+ compile_filetypes = '
+ \"odt\": {
+ \"build\": \"libreoffice --headless --convert-to pdf %{srcname}s\",
+ \"destname\": \"%{basename}s.pdf\"
+ }
+ }'
+
+Then, in your wiki pages, you can use `\[[!compile files=\"foo.odt\"]]`. This will convert file to pdf, and render as a link to the `pdf` file. If option `inline` is set, you can also simply use a wikilink `\[[foo.odt]]`, which will have the same effect.
+
+Regards,
+-- [[Louis|spalax]]
+
+"""]]