ignore <title type="sort"> elements

This commit is contained in:
Frédéric Péters 2015-12-01 20:25:51 +01:00
parent 372cf5eada
commit d01bc8ed95
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ def publish_mallard(module, branch, directory):
pages = []
for page_file in page_files:
text = open(page_file).read()
text = re.sub('<title.*type="sort".*</title>', '', text)
titles = re.findall('<title.*>(.*)<\/title>', text)
pages.append({
'id': os.path.basename(page_file).rsplit('.', 1)[0],