forked from collective/collective.developermanual
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pandoc.cfg
47 lines (39 loc) · 940 Bytes
/
pandoc.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[transmogrifier]
include = funnelweb.remote
pipeline =
crawler
cache
typeguess
# drop
template1
urltidy
pandoc
localupload
[crawler]
#url=http://plone.org/documentation/manual/theme-reference
url = http://plone.org/documentation/manual/developer-manual/generic-setup
ignore=
.css
.js
-all-pages
[cache]
[typeguess]
[template1]
#title= text //h1[@class="documentFirstHeading"]
text= html //div[@id="content"]
_delete= optional //div[@class="visualNoPrint"]
_delete2= optional //div[@class="documentByLine"]
[pandoc]
blueprint = transmogrify.command
commands = pandoc --from=html --to=rst
input-key = text
output-key = text
[urltidy]
link_expr = python:(item['_path'].rsplit('.',1)[-1] in ['html','asp','php'] and item['_path'].rsplit('.',1)[0] or item['_path'])+".rst"
use_title = python:False
invalid_ids =
security
sharing
# Save locally for debugging purposes
[localupload]
output=manual