Strip site meter; default filter directory for test/reconstitute

This commit is contained in:
Sam Ruby 2006-11-01 10:32:22 -05:00
parent 405290aaab
commit 0f188f1930
3 changed files with 10 additions and 2 deletions

View File

@ -16,8 +16,10 @@ if __name__ == "__main__":
config.parser.add_section(sys.argv[1]) config.parser.add_section(sys.argv[1])
work = reduce(os.path.join, ['tests','work','reconsititute'], venus_base) work = reduce(os.path.join, ['tests','work','reconsititute'], venus_base)
output = os.path.join(work, 'output') output = os.path.join(work, 'output')
filters = os.path.join(venus_base,'filters')
config.parser.set('Planet','cache_directory',work) config.parser.set('Planet','cache_directory',work)
config.parser.set('Planet','output_dir',output) config.parser.set('Planet','output_dir',output)
config.parser.set('Planet','filter_directories',filters)
config.parser.set('Planet','template_files','themes/common/atom.xml.xslt') config.parser.set('Planet','template_files','themes/common/atom.xml.xslt')
for name, value in zip(sys.argv[2::2],sys.argv[3::2]): for name, value in zip(sys.argv[2::2],sys.argv[3::2]):

View File

@ -238,6 +238,9 @@
<!-- Feedburner detritus --> <!-- Feedburner detritus -->
<xsl:template match="xhtml:div[@class='feedflare']"/> <xsl:template match="xhtml:div[@class='feedflare']"/>
<!-- Strip site meter -->
<xsl:template match="xhtml:div[comment()[. = ' Site Meter ']]"/>
<!-- pass through everything else --> <!-- pass through everything else -->
<xsl:template match="@*|node()"> <xsl:template match="@*|node()">
<xsl:copy> <xsl:copy>

View File

@ -17,6 +17,9 @@
<!-- Feedburner detritus --> <!-- Feedburner detritus -->
<xsl:template match="xhtml:div[@class='feedflare']"/> <xsl:template match="xhtml:div[@class='feedflare']"/>
<!-- Strip site meter -->
<xsl:template match="xhtml:div[comment()[. = ' Site Meter ']]"/>
<!-- add Google/LiveJournal-esque noindex directive --> <!-- add Google/LiveJournal-esque noindex directive -->
<xsl:template match="atom:feed"> <xsl:template match="atom:feed">
<xsl:copy> <xsl:copy>