Skip to content

Commit

Permalink
Highlight the RSS reader Blueprint
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel authored Oct 31, 2024
1 parent 83909f7 commit e9f7a16
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions reindex_postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
import re
import sys

highlighted_blueprints = [
'Stylish Press',
'Feed Reader with the Friends Plugin'
]

def build_json_index():
index = {}
Expand All @@ -16,7 +20,7 @@ def build_json_index():
index[path] = meta
# Sort index alphabetically by title
index = dict(sorted(index.items(), key=lambda item: (
item[1].get('title', '') != 'Stylish Press',
item[1].get('title', '') not in highlighted_blueprints,
item[1].get('title', '')
)))
with open('index.json', 'w') as f:
Expand All @@ -41,8 +45,8 @@ def build_markdown_table():
]
for path, meta in index.items():
title = meta.get('title', '')
if title == 'Stylish Press':
title = "**Stylish Press**"
if title in highlighted_blueprints:
title = f"**{title}**"
blueprints_rows.append([
title,
meta.get('description', ''),
Expand Down

0 comments on commit e9f7a16

Please sign in to comment.