Permalink
Browse files

work on buildout

  • Loading branch information...
1 parent 3543c36 commit 24f70a7298cdab306f370d096203246b9781038f Dylan Jay committed Apr 21, 2012
Showing with 61 additions and 8 deletions.
  1. +61 −8 buildout.cfg
View
69 buildout.cfg
@@ -2,7 +2,15 @@
develop =
.
-parts = test instance funnelweb mkrelease loadnews genetics
+parts =
+ test
+ funnelweb
+ mkrelease
+ loadnews
+ genetics
+ devdocs
+ whitehouse
+
#funnelweb2
#extends =
# http://download.zope.org/Zope2/index/2.12.11/versions.cfg
@@ -24,8 +32,53 @@ recipe = zc.recipe.testrunner
eggs = funnelweb [tests]
+[devdocs]
+recipe = funnelweb
+crawler-url = http://collective-docs.readthedocs.org/en/latest/
+crawler-ignore=
+ cgi-bin
+ javascript:
+ _static
+ _sources
+ genindex\.html
+ search\.html
+ saesrchindex\.js
+# Since content is from disk, no need for local cache
+cache-output =
+
+# Fields with '_' won't be uploaded to Plone so will be effectively removed
+template1-title = text //div[@class='body']//h1[1]
+template1-_permalink = text //div[@class='body']//a[@class='headerlink']
+template1-text = html //div[@class='body']
+template1-_label = optional //p[contains(@class,'admonition-title')]
+template1-description = optional //div[contains(@class,'admonition-description')]/p[@class='last']/text()
+template1-_remove_useless_links = optional //div[@id = 'indices-and-tables']
+
+# Images will get titles from backlink text
+titleguess-condition = python:True
+
+# Pages linked to content will be moved together
+indexguess-condition = python:True
+
+# Hide the images folder from navigation
+hideguess-condition = python:item.get("_path","").startswith('_images') and item.get('_type')=='Folder'
+
+# Upload as PHC instead of Folders and Pages
+changetype-value=python:{'Folder':'HelpCenterReferenceManualSection','Document':'HelpCenterLeafPage'}.get(item['_type'],item['_type'])
+
+# Save locally for debugging purposes
+localupload-output=${buildout:directory}/ploneout
+
+# All folderish content should be checked if they contain
+# any items on the remote site which are not presented locally. including base folder
+ploneprune-condition=python:item.get('_type') in ['HelpCenterReferenceManualSection','HelpCenterReferenceManual'] or item['_path'] == ''
+
[funnelweb]
recipe = funnelweb
+
+
+[whitehouse]
+recipe = funnelweb
crawler-url=http://www.whitehouse.gov
crawler-ignore=
\.mp4
@@ -117,7 +170,7 @@ zcml-eggs =
# pretaweb.funnelweb
# plone.reload
eggs =
- ${PIL:egg}
+ Pillow
Plone
plone.i18n
${instance:zcml-eggs}
@@ -133,12 +186,12 @@ eggs =
collective.checkdocs
[sources]
-transmogrify.webcrawler = git git@github.com/djay/transmogrify.webcrawler.git
-transmogrify.pathsorter = git git@github.com/djay/transmogrify.pathsorter.git
-transmogrify.siteanalyser = git git@github.com/djay/transmogrify.siteanalyser.git
-transmogrify.ploneremote = git git@github.com/djay/transmogrify.ploneremote.git
-transmogrify.htmlcontentextractor = git git@github.com/djay/transmogrify.htmlcontentextractor.git
-mr.migrator = git git@github.com/djay/mr.migrator.git
+transmogrify.webcrawler = git git@github.com/collective/transmogrify.webcrawler.git
+#transmogrify.pathsorter = git git@github.com/collective/transmogrify.pathsorter.git
+transmogrify.siteanalyser = git git@github.com/collective/transmogrify.siteanalyser.git
+transmogrify.ploneremote = git git@github.com/collective/transmogrify.ploneremote.git
+transmogrify.htmlcontentextractor = git git@github.com/collective/transmogrify.htmlcontentextractor.git
+mr.migrator = git git@github.com/collective/mr.migrator.git
[versions]

0 comments on commit 24f70a7

Please sign in to comment.