Commit f8b32a76 authored by Mattia Rizzolo's avatar Mattia Rizzolo

Adapt build and configuration to ptlink

this disables Atom, FoaF, OPML
Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mapreri@ubuntu.com>
parent 9b7292df
*.py[co]
*.tmplc
*.pluginc
# Dynamically generated stuff # Dynamically generated stuff
/build /build
/cache /cache
/membri /membri
/venus/config.ini /full-config.ini
...@@ -3,26 +3,28 @@ REPO_URL = "lp:~ubuntu-it-members/planet-ubuntu-it/membri" ...@@ -3,26 +3,28 @@ REPO_URL = "lp:~ubuntu-it-members/planet-ubuntu-it/membri"
.PHONY: build clean update .PHONY: build clean update
build: full-config.ini
build: membri ptlink-planet full-config.ini
@rm -rf build cp -rv themes/ubuntuit/libs build
@cat membri/config.ini config.ini > venus/config.ini cp -rv membri/images build
@cd venus && ./planet.py cp -rv banners build
@cp -r theme/libs build
@cp -r membri/images build
@cp -r banners build
update: membri update: membri
@cd membri && bzr pull -q cd membri && bzr pull
clean: clean:
@rm -rf build rm -rf build
@rm -rf cache rm -rf cache
@rm -rf membri rm -rf membri
@rm -f venus/config.ini rm -f full-config.ini
membri: membri:
@bzr branch $(REPO_URL) membri bzr branch $(REPO_URL) membri
membri/config.ini: membri
full-config.ini: config.ini membri/config.ini
cat config.ini membri/config.ini > full-config.ini
...@@ -14,12 +14,15 @@ owner_email = planet@ubuntu-it.org ...@@ -14,12 +14,15 @@ owner_email = planet@ubuntu-it.org
# cache_directory: Where cached feeds are stored # cache_directory: Where cached feeds are stored
# new_feed_items: Number of items to take from new feeds # new_feed_items: Number of items to take from new feeds
# log_level: One of DEBUG, INFO, WARNING, ERROR or CRITICAL # log_level: One of DEBUG, INFO, WARNING, ERROR or CRITICAL
cache_directory = ../cache cache_directory = cache
new_feed_items = 10 new_feed_items = 10
log_level = DEBUG log_level = DEBUG
# template_files: Space-separated list of output template files # template_files: Space-separated list of output template files
template_files = themes/ubuntuit/index.html.tmpl themes/common/atom.xml.xslt themes/common/foafroll.xml.xslt themes/common/opml.xml.xslt themes/ubuntuit/rss20.xml.tmpl template_files = themes/ubuntuit/index.html.tmpl themes/ubuntuit/rss20.xml.tmpl
# ptlink doesn't support template in XSLT, so the followings are not produced anymore.
# the old templates are kept "because you never know"
# themes/common/atom.xml.xslt themes/common/foafroll.xml.xslt themes/common/opml.xml.xslt
# The following provide defaults for each template: # The following provide defaults for each template:
# output_dir: Directory to place output files # output_dir: Directory to place output files
...@@ -32,13 +35,12 @@ template_files = themes/ubuntuit/index.html.tmpl themes/common/atom.xml.xslt the ...@@ -32,13 +35,12 @@ template_files = themes/ubuntuit/index.html.tmpl themes/common/atom.xml.xslt the
# special "xml" value to output ASCII with XML character references # special "xml" value to output ASCII with XML character references
# locale: locale to use for (e.g.) strings in dates, default is taken from your # locale: locale to use for (e.g.) strings in dates, default is taken from your
# system # system
output_dir = ../build output_dir = build
items_per_page = 60 items_per_page = 60
days_per_page = 0 days_per_page = 0
date_format = %d %B %Y %H.%M date_format = %d %B %Y %H.%M
new_date_format = %d %B %Y new_date_format = %d %B %Y
#encoding = UTF-8 encoding = UTF-8
encoding = xml
locale = it_IT.utf8 locale = it_IT.utf8
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment