forked from lethain/aym-cms
-
Notifications
You must be signed in to change notification settings - Fork 81
Site Post Processors
myfreeweb edited this page Feb 6, 2011
·
3 revisions
Generates a sitemap from the website that’s ready to be uploaded to Google Webmaster Tools.
SITE_POST_PROCESSORS = {
'/': {
'hydeengine.site_post_processors.GoogleSitemapGenerator': {
'sitemap_file': DEPLOY_DIR + '/sitemap.xml',
'generator': 'path/to/hyde/lib/sitemap_gen-1.4/sitemap_gen.py',
}
}
}
Copies the set of files specified by a pattern in all the subfolders of the specified folder and optionally deletes the subfolders.When using git submodules or svn externals, the files to be included in the website have to be inside a subfolder. This may however, not be preferred when doing the deployment. If a flattener is configured, it will pull the included files up and optionally remove the subfolders.
The example below flattens the js
folder under the media
folder.
'media/js': {
'hydeengine.site_post_processors.FolderFlattener': {
'remove_processed_folders': True,
'pattern': "*.js"
}