From 1b3b4d1b1076d0571c43cd04e53dddb3117ffd21 Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Thu, 16 Jul 2026 18:56:53 -0300 Subject: [PATCH] Remove RSS feed from quick links page The quick links page depended on an external feed (himdel.eu) fetched at build time via httpx. When that service returns empty responses, the page fails to render entirely. Remove the RSS feed section, the rss_items macro, and the httpx dependency to eliminate external service dependencies from the site build. --- pulpproject.org/help/more/quick-links.md | 10 +--------- pyproject.toml | 1 - src/pulp_docs/plugin.py | 18 ------------------ 3 files changed, 1 insertion(+), 28 deletions(-) diff --git a/pulpproject.org/help/more/quick-links.md b/pulpproject.org/help/more/quick-links.md index 741bd75..376d94a 100644 --- a/pulpproject.org/help/more/quick-links.md +++ b/pulpproject.org/help/more/quick-links.md @@ -22,12 +22,4 @@ Component | Version | Links |   |   {%- for component in components if component.kind == kind %} {{ component.title }} | `{{ component.version }}` | {{ component.links | join(" | ") }} {%- endfor %} -{%- endfor %} - -## Changes RSS Feed - -Check our recent releases with this [RSS changelog feed](https://himdel.eu/feed/pulp-changes.json). - -{% for item in rss_items() %} -- [{{ item.title }}]({{ item.url }}) -{% endfor %} \ No newline at end of file +{%- endfor %} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index ec9f3a5..3811384 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,6 @@ dependencies = [ "mkdocs-macros-plugin~=1.3.7", "mkdocs-site-urls~=0.2.0", "mkdocs-literate-nav~=0.6.1", - "httpx", "rich", "uv", "GitPython~=3.1.44", diff --git a/src/pulp_docs/plugin.py b/src/pulp_docs/plugin.py index c68f2db..030fe2d 100644 --- a/src/pulp_docs/plugin.py +++ b/src/pulp_docs/plugin.py @@ -7,7 +7,6 @@ from dataclasses import dataclass, replace from pathlib import Path -import httpx import yaml from git import Repo from mkdocs.config import Config, config_options, load_config @@ -420,22 +419,6 @@ def get_component_data( } -def rss_items() -> list: - # that's Himdel's rss feed: https://github.com/himdel - # TODO move this fetching to js. - response = httpx.get("https://himdel.eu/feed/pulp-changes.json") - if response.is_error: - return [ - { - "url": "#", - "title": "Could not fetch the feed. Please, open an issue in https://github.com/pulp/pulp-docs/.", - } - ] - - rss_feed = json.loads(response.content) - return rss_feed["items"][:20] - - def log_pulp_config( mkdocs_file: str, path: list[str], loaded_components: list[LoadedComponent], site_dir: str ): @@ -501,7 +484,6 @@ def on_config(self, config: MkDocsConfig) -> MkDocsConfig | None: mkdocstrings_config.handlers["python"]["paths"].append(str(component_dir / "src")) macros_plugin = config.plugins["macros"] - macros_plugin.register_macros({"rss_items": rss_items}) macros_plugin.register_variables({"components": components_var}) blog_plugin = config.plugins["material/blog"]