From e9f7a168c9070d2d31ddd96d463fed4e373d0199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zieli=C5=84ski?= Date: Thu, 31 Oct 2024 14:26:54 +0100 Subject: [PATCH] Highlight the RSS reader Blueprint --- reindex_postprocess.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/reindex_postprocess.py b/reindex_postprocess.py index 9d3f565..c588bcb 100644 --- a/reindex_postprocess.py +++ b/reindex_postprocess.py @@ -3,6 +3,10 @@ import re import sys +highlighted_blueprints = [ + 'Stylish Press', + 'Feed Reader with the Friends Plugin' +] def build_json_index(): index = {} @@ -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: @@ -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', ''),