From 7b1d3129ea94f050f44ea02a94c285b9dae052d9 Mon Sep 17 00:00:00 2001 From: Petr Heinz Date: Tue, 1 Dec 2026 18:26:42 +0100 Subject: [PATCH] [CI] Find the docs article's code blocks in its new markup Co-Authored-By: Claude Opus 5.5 --- .github/workflows/e2e.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index eac766b..0d2f1bb 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -98,7 +98,7 @@ jobs: repository = os.environ['GITHUB_REPOSITORY'] page = open('docs.html', encoding='utf-8').read() blocks = [(language, html.unescape(re.sub(r'<[^>]+>', '', code)).strip()) - for language, code in re.findall(r"
(.*?)
", page, re.S)] + for language, code in re.findall(r"
]*>(.*?)
", page, re.S)] ROLES = ['Node.js install', 'Node.js environment variables', 'Node.js logging', 'Python install', 'Python setup', 'Python logging'] LANGUAGES = ['bash', 'text', 'js', 'bash', 'python', 'python'] if [language for language, _ in blocks] != LANGUAGES: