From 005b70adf77e59640b15c02f02a311a14d8df0eb Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Mon, 23 Feb 2026 11:55:22 +0100 Subject: [PATCH 1/2] new validation --- scripts/src/ecosystem_scripts/validate_registry.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/src/ecosystem_scripts/validate_registry.py b/scripts/src/ecosystem_scripts/validate_registry.py index 53b678e..6103d33 100644 --- a/scripts/src/ecosystem_scripts/validate_registry.py +++ b/scripts/src/ecosystem_scripts/validate_registry.py @@ -6,6 +6,7 @@ import argparse import json import os +import re import shutil import sys from collections import defaultdict @@ -48,6 +49,11 @@ def append(self, obj: Exception | None) -> None: return super().append(obj) +RE_RTD = re.compile( + r"https?://(?P.*\.(?:readthedocs\.io|rtfd\.io|readthedocs-hosted\.com))/(?Pen/[^/]+)(?P.*)" +) + + class LinkChecker: """Track known links and validate URLs.""" @@ -65,6 +71,12 @@ def check_and_register(self, url: str, context: str) -> None | ValidationError: context Context information for error messages (e.g., file being validated) """ + if m := re.fullmatch(RE_RTD, url): + new_url = f"https://{m['domain']}/" + (f"page{m['path']}" if m["path"].strip("/") else "") + msg = ( + f"Please use the default version in ReadTheDocs URLs instead of {m['version']!r}:\n{url}\n->\n{new_url}" + ) + return ValidationError(msg) if url in self.known_links: msg = f"{context}: Duplicate link: {url}" return ValidationError(msg) From 7e773b84549faf1013f700d5fd585c13d8b04233 Mon Sep 17 00:00:00 2001 From: Phil Schaf Date: Mon, 23 Feb 2026 11:59:02 +0100 Subject: [PATCH 2/2] fix errors --- packages/nichepca/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nichepca/meta.yaml b/packages/nichepca/meta.yaml index e4cbd86..3b58ce2 100644 --- a/packages/nichepca/meta.yaml +++ b/packages/nichepca/meta.yaml @@ -2,8 +2,8 @@ name: nichepca description: | A Python package for PCA-based spatial domain identification in single-cell spatial transcriptomics data. project_home: https://github.com/imsb-uke/nichepca -documentation_home: https://nichepca.readthedocs.io/en/latest/ -tutorials_home: https://nichepca.readthedocs.io/en/latest/notebooks/example.html +documentation_home: https://nichepca.readthedocs.io/ +tutorials_home: https://nichepca.readthedocs.io/page/notebooks/example.html install: pypi: nichepca tags: