Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions pulpproject.org/help/more/quick-links.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
{%- endfor %}
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 0 additions & 18 deletions src/pulp_docs/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
):
Expand Down Expand Up @@ -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"]
Expand Down
Loading