From 60e942141b3c7069cf1aeaa780df97b4da126f17 Mon Sep 17 00:00:00 2001 From: Krrish Mittal Date: Tue, 17 Nov 2026 20:15:45 -0800 Subject: [PATCH 1/5] docs(blogs): add curated Tech Community catalog Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4b56433c-9655-4354-a442-6cc982de2f59 --- docs-site/README.md | 43 ++++++- docs-site/astro.config.mjs | 4 + docs-site/package.json | 2 +- docs-site/scripts/tests/blogs.test.mjs | 94 +++++++++++++++ docs-site/scripts/tests/test_blogs_output.py | 114 +++++++++++++++++++ docs-site/src/components/BlogList.astro | 58 ++++++++++ docs-site/src/content.config.ts | 9 ++ docs-site/src/content/docs/blogs/index.mdx | 17 +++ docs-site/src/content/docs/index.mdx | 2 + docs-site/src/data/blogs.json | 36 ++++++ docs-site/src/data/blogs.schema.mjs | 67 +++++++++++ 11 files changed, 443 insertions(+), 3 deletions(-) create mode 100644 docs-site/scripts/tests/blogs.test.mjs create mode 100644 docs-site/scripts/tests/test_blogs_output.py create mode 100644 docs-site/src/components/BlogList.astro create mode 100644 docs-site/src/content/docs/blogs/index.mdx create mode 100644 docs-site/src/data/blogs.json create mode 100644 docs-site/src/data/blogs.schema.mjs diff --git a/docs-site/README.md b/docs-site/README.md index 913b36c..d071292 100644 --- a/docs-site/README.md +++ b/docs-site/README.md @@ -20,10 +20,10 @@ npm run dev # http://localhost:4321 — hot reload | Command | What it does | | ------------------ | ----------------------------------------------------------- | | `npm run dev` | Hot-reload dev server (port 4321). | -| `npm run check` | Check content and TypeScript with Astro. | +| `npm run check` | Test blog metadata integrity, then check content and TypeScript with Astro. | | `npm run build` | Production build to `dist/`. | | `npm run preview` | Serve the production build locally (close to canary). | -| `python3 -m unittest discover -s scripts/tests -p 'test_*.py'` | Run link/fragment checker unit tests. | +| `python3 -m unittest discover -s scripts/tests -p 'test_*.py'` | Test the link/fragment checker and built Blogs output (run after build). | | `python3 scripts/validate_docs_site.py` | Validate built internal links, fragments, and HTML output shape. | **Before pushing:** `npm run check && npm run build && python3 -m unittest discover -s scripts/tests -p 'test_*.py' && python3 scripts/validate_docs_site.py` (all green). @@ -199,6 +199,45 @@ npm run check && npm run build Cross-link the new page from related topics, then check its sidebar placement and links in the built site or PR preview. The check and build commands don't by themselves verify every link or fragment. +### Add a curated blog entry + +The static `/docs/blogs/` index reads `src/data/blogs.json` through the local +`blogs` content collection. Tech Community hosts the originals: do not copy +article bodies, excerpts, or images, and do not add RSS, runtime, or build-time +network requests. No page or component changes are needed to add an entry. + +1. Verify that the article is relevant to Azure Logic Apps Automation. Open the + original on Microsoft Tech Community and check its canonical URL, title, + author username, and original displayed publication date (not its updated + date or a UTC timestamp that falls on a different day). +2. Add one JSON object with `id` (article ID as a string), `title`, `url`, + `publishedAt` (`YYYY-MM-DD`), `author`, and `summary`. Use the canonical HTTPS + `techcommunity.microsoft.com/blog/.../` URL without tracking + parameters or fragments. Retain percent-encoded characters in canonical URLs. + Decorative symbols in source titles can be omitted from the display title. +3. Write an original one- or two-sentence plain-text summary (up to 400 + characters, no HTML or Markdown). Describe the article rather than promising + current availability or pricing. Link pricing announcements to current + pricing guidance instead of repeating rates or grants. +4. Optionally add up to two `relatedDocs` objects with `label` and `href`. + Use `/docs/`-prefixed routes with a trailing slash, such as + `/docs/getting-started/pricing/`; an existing `#fragment` can follow the slash. +5. Run the full **Before pushing** command above, sequentially. `npm run check` + tests schema edge cases and catalog integrity; both check and build validate + the local catalog before Astro indexes it. The Python validator checks + generated internal routes and fragments, including related docs links. +6. Review the Blogs page and homepage in the documentation preview: check + newest-first order, attribution, link destinations, keyboard navigation, + mobile layout, and light/dark themes. Request normal PR review for relevance, + metadata accuracy, summary originality, and related documentation. + +The schema in `src/data/blogs.schema.mjs` rejects missing or empty required +fields, invalid or future dates, duplicate IDs/URLs, mismatched article IDs, +unsafe/noncanonical article URLs, formatted summaries, and malformed internal +routes. The list is rendered as static HTML with ordinary same-tab links and +requires no client-side script or remote service. The broader community blog +link remains available even when the curated catalog is empty. + ### Update an existing page Edit it. Keep existing page URLs and heading fragments working when reorganizing content; if a heading changes, preserve its old fragment as an explicit anchor, as in `features/runs-and-monitoring.md`. Check incoming links and run `npm run check` and `npm run build` before pushing. diff --git a/docs-site/astro.config.mjs b/docs-site/astro.config.mjs index 43b71a3..1272064 100644 --- a/docs-site/astro.config.mjs +++ b/docs-site/astro.config.mjs @@ -156,6 +156,10 @@ export default defineConfig({ collapsed: true, items: [{ autogenerate: { directory: 'demos' } }], }, + { + label: 'Blogs', + slug: 'blogs', + }, { label: 'Release notes', items: [{ autogenerate: { directory: 'release-notes' } }], diff --git a/docs-site/package.json b/docs-site/package.json index 716587e..e6a136b 100644 --- a/docs-site/package.json +++ b/docs-site/package.json @@ -9,7 +9,7 @@ "start": "astro dev", "build": "astro build && node scripts/postbuild.mjs", "preview": "astro preview", - "check": "astro check", + "check": "node --test scripts/tests/blogs.test.mjs && astro check", "astro": "astro" }, "dependencies": { diff --git a/docs-site/scripts/tests/blogs.test.mjs b/docs-site/scripts/tests/blogs.test.mjs new file mode 100644 index 0000000..cdc1466 --- /dev/null +++ b/docs-site/scripts/tests/blogs.test.mjs @@ -0,0 +1,94 @@ +import assert from 'node:assert/strict'; +import { readFileSync } from 'node:fs'; +import { test } from 'node:test'; +import { blogCatalogSchema, blogSchema, parseBlogCatalog } from '../../src/data/blogs.schema.mjs'; + +const catalogText = readFileSync(new URL('../../src/data/blogs.json', import.meta.url), 'utf-8'); +const [article] = JSON.parse(catalogText); + +test('the curated catalog satisfies its schema and cross-entry integrity rules', () => { + assert.doesNotThrow(() => parseBlogCatalog(catalogText)); +}); + +test('allows an empty catalog so the index can retain its broader community link', () => { + assert.deepEqual(parseBlogCatalog('[]'), []); +}); + +for (const field of ['id', 'title', 'url', 'publishedAt', 'author', 'summary']) { + test(`rejects a missing required ${field}`, () => { + const entry = { ...article }; + delete entry[field]; + assert.equal(blogSchema.safeParse(entry).success, false); + }); +} + +for (const date of ['2026-02-29', '2026-02-30', '2026-13-01', '2026-10-7', 'not-a-date', '9999-12-31']) { + test(`rejects invalid publication date ${date}`, () => { + assert.equal(blogSchema.safeParse({ ...article, publishedAt: date }).success, false); + }); +} + +test('accepts a real leap day without timezone-dependent date coercion', () => { + assert.equal(blogSchema.safeParse({ ...article, publishedAt: '2024-02-29' }).success, true); +}); + +for (const url of [ + article.url.replace('https:', 'http:'), + article.url.replace('techcommunity.microsoft.com', 'techcommunity.microsoft.com.evil.example'), + article.url.replace('techcommunity.microsoft.com', 'example.com'), + article.url.replace('https://', 'https://reader@'), + article.url.replace('https://', 'https://@'), + article.url.replace('techcommunity.microsoft.com', 'techcommunity.microsoft.com:443'), + article.url.replace('techcommunity.microsoft.com', 'techcommunity.microsoft.com:8443'), + article.url.replace('https://', '//'), + `${article.url}\n`, + `${article.url}?tracking=1`, + `${article.url}#fragment`, + `${article.url}/`, + article.url.replace(`/${article.id}`, '/1'), + 'https://techcommunity.microsoft.com/category/azure/blog/integrationsonazureblog', + 'javascript:alert(1)', +]) { + test(`rejects unsafe or noncanonical article URL ${url}`, () => { + assert.equal(blogSchema.safeParse({ ...article, url }).success, false); + }); +} + +for (const summary of ['', ' ', '', '[Link](https://example.com)', '**Bold**', '`code`', 'First line\nSecond line']) { + test(`rejects non-plain summary ${JSON.stringify(summary)}`, () => { + assert.equal(blogSchema.safeParse({ ...article, summary }).success, false); + }); +} + +test('rejects duplicate IDs and URLs before collection indexing can replace them', () => { + const result = blogCatalogSchema.safeParse([article, article]); + assert.equal(result.success, false); + assert(result.error.issues.some(({ message }) => message === 'Duplicate article ID.')); + assert(result.error.issues.some(({ message }) => message === 'Duplicate article URL.')); +}); + +test('rejects duplicate URLs with different percent-escape casing', () => { + const alternate = { ...article, url: article.url.replace(/%[0-9a-f]{2}/g, (value) => value.toUpperCase()) }; + const result = blogCatalogSchema.safeParse([article, alternate]); + assert.equal(result.success, false); + assert(result.error.issues.some(({ message }) => message === 'Duplicate article URL.')); +}); + +for (const href of ['/guides/agent-options/', '//example.com/', 'https://example.com/', '/docs/../support/', '/docs/guides/agent-options']) { + test(`rejects invalid internal-route syntax ${href}`, () => { + const relatedDocs = [{ label: 'Related guide', href }]; + assert.equal(blogSchema.safeParse({ ...article, relatedDocs }).success, false); + }); +} + +test('allows no related docs or at most two base-prefixed routes with optional anchors', () => { + const link = { label: 'Pricing', href: '/docs/getting-started/pricing/#free-grants' }; + assert.equal(blogSchema.safeParse({ ...article, relatedDocs: [] }).success, true); + assert.equal(blogSchema.safeParse({ ...article, relatedDocs: [link, link] }).success, true); + assert.equal(blogSchema.safeParse({ ...article, relatedDocs: [link, link, link] }).success, false); +}); + +test('rejects unexpected content fields instead of accepting copied article bodies or images', () => { + assert.equal(blogSchema.safeParse({ ...article, body: 'Article body' }).success, false); + assert.equal(blogSchema.safeParse({ ...article, image: 'https://example.com/image.png' }).success, false); +}); diff --git a/docs-site/scripts/tests/test_blogs_output.py b/docs-site/scripts/tests/test_blogs_output.py new file mode 100644 index 0000000..128d4a9 --- /dev/null +++ b/docs-site/scripts/tests/test_blogs_output.py @@ -0,0 +1,114 @@ +import json +import sys +import unittest +from datetime import date +from html.parser import HTMLParser +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parents[1])) + +from validate_docs_site import scan_pages, validate_internal_links + +DOCS_SITE = Path(__file__).resolve().parents[2] + + +class BlogParser(HTMLParser): + def __init__(self): + super().__init__(convert_charrefs=True) + self.articles = [] + self.current = None + self.main_navigation = [] + self.in_navigation = False + + def handle_starttag(self, tag, attrs): + values = dict(attrs) + if tag == "nav" and values.get("aria-label") == "Main": + self.in_navigation = True + if tag == "a" and self.in_navigation: + self.main_navigation.append(values.get("href")) + if tag == "article": + self.current = { + "label": values.get("aria-labelledby"), + "ids": [], "links": [], "dates": [], "text": [], "dynamic": [], + } + self.articles.append(self.current) + if self.current is None: + return + if "id" in values: + self.current["ids"].append(values["id"]) + if tag == "a": + self.current["links"].append(values) + if tag == "time": + self.current["dates"].append(values.get("datetime")) + if tag in ("script", "astro-island", "img"): + self.current["dynamic"].append(tag) + + def handle_endtag(self, tag): + if tag == "article": + self.current = None + if tag == "nav": + self.in_navigation = False + + def handle_data(self, data): + if self.current is not None: + self.current["text"].append(data) + + +class BlogsOutputTests(unittest.TestCase): + @classmethod + def setUpClass(cls): + # CI and the documented validation command build before testing rendered output. + cls.root = DOCS_SITE / "dist/docs" + cls.blog_page = cls.root / "blogs/index.html" + cls.catalog = json.loads((DOCS_SITE / "src/data/blogs.json").read_text()) + cls.parser = BlogParser() + cls.parser.feed(cls.blog_page.read_text()) + + def test_static_articles_have_complete_attribution_in_newest_first_order(self): + expected = sorted(self.catalog, key=lambda entry: entry["publishedAt"], reverse=True) + self.assertEqual(len(self.parser.articles), len(expected)) + for actual, entry in zip(self.parser.articles, expected): + with self.subTest(article=entry["id"]): + text = " ".join("".join(actual["text"]).split()) + published = date.fromisoformat(entry["publishedAt"]) + self.assertIn(entry["title"], text) + self.assertIn(entry["summary"], text) + self.assertIn(entry["author"], text) + self.assertIn("Microsoft Tech Community", text) + self.assertIn(f"{published:%B} {published.day}, {published.year}", text) + self.assertEqual(actual["dates"], [entry["publishedAt"]]) + self.assertIn(actual["label"], actual["ids"]) + self.assertEqual(actual["links"][0]["href"], entry["url"]) + self.assertEqual(actual["dynamic"], []) + self.assertTrue(all(link.get("target") != "_blank" for link in actual["links"])) + + def test_related_documentation_is_rendered_and_resolves_in_built_output(self): + actual_links = { + link["href"] for article in self.parser.articles for link in article["links"] + } + for entry in self.catalog: + for link in entry.get("relatedDocs", []): + self.assertIn(link["href"], actual_links) + errors = validate_internal_links(self.root, scan_pages(self.root)) + self.assertEqual(errors, []) + + def test_homepage_and_explicit_sidebar_entry_link_to_blogs_before_release_notes(self): + navigation = self.parser.main_navigation + self.assertEqual(navigation.count("/docs/blogs/"), 1) + self.assertLess( + navigation.index("/docs/blogs/"), + navigation.index("/docs/release-notes/changelog/"), + ) + homepage = (self.root / "index.html").read_text() + self.assertIn('href="/docs/blogs/"', homepage) + + def test_broader_board_link_remains_available(self): + html = self.blog_page.read_text() + self.assertIn( + 'href="https://techcommunity.microsoft.com/t5/azure-integration-services-blog/bg-p/IntegrationsonAzureBlog"', + html, + ) + + +if __name__ == "__main__": + unittest.main() diff --git a/docs-site/src/components/BlogList.astro b/docs-site/src/components/BlogList.astro new file mode 100644 index 0000000..f2992d4 --- /dev/null +++ b/docs-site/src/components/BlogList.astro @@ -0,0 +1,58 @@ +--- +import { getCollection } from 'astro:content'; + +const entries = (await getCollection('blogs')).sort((a, b) => + b.data.publishedAt.localeCompare(a.data.publishedAt) || a.id.localeCompare(b.id), +); +const dateFormat = new Intl.DateTimeFormat('en-US', { + year: 'numeric', month: 'long', day: 'numeric', timeZone: 'UTC', +}); +--- + +{entries.length === 0 ? ( +

No articles have been selected yet. Browse the community blog below for more posts.

+) : ( + +)} + + diff --git a/docs-site/src/content.config.ts b/docs-site/src/content.config.ts index 6abb160..5415358 100644 --- a/docs-site/src/content.config.ts +++ b/docs-site/src/content.config.ts @@ -1,8 +1,17 @@ +import { readFile } from 'node:fs/promises'; import { defineCollection } from 'astro:content'; import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders'; import { docsSchema, i18nSchema } from '@astrojs/starlight/schema'; +import { blogSchema, parseBlogCatalog } from './data/blogs.schema.mjs'; export const collections = { docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }), i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }), + blogs: defineCollection({ + // Validate the whole local catalog before Astro indexes IDs, preventing silent overwrites. + loader: async () => parseBlogCatalog( + await readFile(new URL('./data/blogs.json', import.meta.url), 'utf-8'), + ), + schema: blogSchema, + }), }; diff --git a/docs-site/src/content/docs/blogs/index.mdx b/docs-site/src/content/docs/blogs/index.mdx new file mode 100644 index 0000000..9e0dba8 --- /dev/null +++ b/docs-site/src/content/docs/blogs/index.mdx @@ -0,0 +1,17 @@ +--- +title: Blogs +description: Selected Microsoft Tech Community articles about Azure Logic Apps Automation. +tableOfContents: false +--- + +import BlogList from '../../../components/BlogList.astro'; + +Selected announcements and walkthroughs about Azure Logic Apps Automation, newest first. Each title opens the original article on Microsoft Tech Community. + +Articles reflect their original publication date. Use the related documentation for current setup instructions, availability, and pricing. + + + +## More from the community + +Browse the [Azure Integration Services Blog on Microsoft Tech Community](https://techcommunity.microsoft.com/t5/azure-integration-services-blog/bg-p/IntegrationsonAzureBlog) for more posts about Logic Apps and other Azure integration services. diff --git a/docs-site/src/content/docs/index.mdx b/docs-site/src/content/docs/index.mdx index d0885eb..8b13b11 100644 --- a/docs-site/src/content/docs/index.mdx +++ b/docs-site/src/content/docs/index.mdx @@ -38,3 +38,5 @@ import { Card, CardGrid } from '@astrojs/starlight/components'; [Report a bug](/support/report-a-bug/) or [request a feature](/support/feature-request/). + +For product announcements and deeper walkthroughs, browse [Blogs](/blogs/). diff --git a/docs-site/src/data/blogs.json b/docs-site/src/data/blogs.json new file mode 100644 index 0000000..ae8d7e9 --- /dev/null +++ b/docs-site/src/data/blogs.json @@ -0,0 +1,36 @@ +[ + { + "id": "4566381", + "title": "Orchestrate Foundry Prompt and Hosted Agents with Logic Apps Automation", + "url": "https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%86%95orchestrate-foundry-prompt-and-hosted-agents-with-logic-apps-automation/4566381", + "publishedAt": "2026-10-20", + "author": "DivSwa", + "summary": "Explore the Foundry prompt and hosted agent options for Automation workflows, then use the related documentation to choose and configure an agent.", + "relatedDocs": [ + { "label": "Foundry Prompt Agent", "href": "/docs/guides/foundry-prompt-agent/" }, + { "label": "Foundry Hosted Agents", "href": "/docs/features/foundry-hosted-agents/" } + ] + }, + { + "id": "4562264", + "title": "Announcing Free Grant and Pricing for Logic Apps Automation", + "url": "https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%92%b2announcing-free-grant-and-pricing-for-logic-apps-automation/4562264", + "publishedAt": "2026-10-07", + "author": "DivSwa", + "summary": "Read the free-grant and pricing announcement for Automation. Check the current pricing documentation for applicable rates, eligibility, and grant terms before estimating costs.", + "relatedDocs": [ + { "label": "Pricing and free grants", "href": "/docs/getting-started/pricing/" } + ] + }, + { + "id": "4524685", + "title": "What's new in Azure Logic Apps at Microsoft Build 2026", + "url": "https://techcommunity.microsoft.com/blog/integrationsonazureblog/whats-new-in-azure-logic-apps-at-microsoft-build-2026/4524685", + "publishedAt": "2026-06-02", + "author": "beenamore", + "summary": "Start with the Build 2026 announcement for context on Logic Apps Automation within the wider Azure Logic Apps updates.", + "relatedDocs": [ + { "label": "About Logic Apps Automation", "href": "/docs/getting-started/introduction/" } + ] + } +] diff --git a/docs-site/src/data/blogs.schema.mjs b/docs-site/src/data/blogs.schema.mjs new file mode 100644 index 0000000..8b48836 --- /dev/null +++ b/docs-site/src/data/blogs.schema.mjs @@ -0,0 +1,67 @@ +import { z } from 'astro/zod'; + +const plainText = z.string().trim().min(1).regex(/^[^<>\r\n]+$/, 'Use plain text, not HTML.'); + +function isPublicationDate(value) { + const date = new Date(`${value}T00:00:00Z`); + return /^\d{4}-\d{2}-\d{2}$/.test(value) + && !value.startsWith('0000') + && !Number.isNaN(date.getTime()) + && date.toISOString().slice(0, 10) === value + && value <= new Date().toISOString().slice(0, 10); +} + +function isArticleUrl(value) { + if (/[\s\\]/u.test(value)) return false; + try { + const url = new URL(value); + return url.protocol === 'https:' + && url.hostname === 'techcommunity.microsoft.com' + && url.href === value + && !url.username && !url.password && !url.port && !url.search && !url.hash + && /^\/blog\/[^/]+\/[^/]+\/[1-9]\d*$/u.test(url.pathname); + } catch { + return false; + } +} + +export const blogSchema = z.object({ + id: z.string().regex(/^[1-9]\d*$/, 'Use the Tech Community article ID.'), + title: plainText, + url: z.string().refine(isArticleUrl, 'Use a canonical HTTPS Tech Community article URL.'), + publishedAt: z.string().refine(isPublicationDate, 'Use a real, non-future date as YYYY-MM-DD.'), + author: plainText, + summary: plainText.max(400).regex(/^[^\[\]`*_#]+$/, 'Summaries must not contain Markdown.'), + relatedDocs: z.array(z.object({ + label: plainText, + href: z.string().regex( + /^\/docs\/(?:[a-z0-9-]+\/)*(?:#[a-zA-Z0-9][a-zA-Z0-9._:-]*)?$/, + 'Use a /docs/ route with a trailing slash and optional fragment.', + ), + }).strict()).max(2).default([]), +}).strict().superRefine((entry, context) => { + if (!entry.url.endsWith(`/${entry.id}`)) { + context.addIssue({ code: 'custom', path: ['url'], message: 'URL must end with the article ID.' }); + } +}); + +export const blogCatalogSchema = z.array(blogSchema).superRefine((entries, context) => { + const ids = new Set(); + const urls = new Set(); + for (const [index, entry] of entries.entries()) { + if (ids.has(entry.id)) { + context.addIssue({ code: 'custom', path: [index, 'id'], message: 'Duplicate article ID.' }); + } + // URI escapes are case-insensitive; do not allow alternate encodings of the same URL. + const url = entry.url.replace(/%[0-9a-f]{2}/gi, (escape) => escape.toUpperCase()); + if (urls.has(url)) { + context.addIssue({ code: 'custom', path: [index, 'url'], message: 'Duplicate article URL.' }); + } + ids.add(entry.id); + urls.add(url); + } +}); + +export function parseBlogCatalog(text) { + return blogCatalogSchema.parse(JSON.parse(text)); +} From bba38ea4aaed9ed343281596222fbc6335d6ccf1 Mon Sep 17 00:00:00 2001 From: Krrish Mittal Date: Tue, 17 Nov 2026 20:17:20 -0800 Subject: [PATCH 2/5] docs(blogs): preserve canonical Tech Community paths Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4b56433c-9655-4354-a442-6cc982de2f59 --- docs-site/README.md | 9 +++++---- docs-site/scripts/tests/blogs.test.mjs | 20 ++++++++++++++++++++ docs-site/src/data/blogs.json | 4 ++-- docs-site/src/data/blogs.schema.mjs | 5 ++++- 4 files changed, 31 insertions(+), 7 deletions(-) diff --git a/docs-site/README.md b/docs-site/README.md index d071292..bf6fad1 100644 --- a/docs-site/README.md +++ b/docs-site/README.md @@ -211,10 +211,11 @@ network requests. No page or component changes are needed to add an entry. author username, and original displayed publication date (not its updated date or a UTC timestamp that falls on a different day). 2. Add one JSON object with `id` (article ID as a string), `title`, `url`, - `publishedAt` (`YYYY-MM-DD`), `author`, and `summary`. Use the canonical HTTPS - `techcommunity.microsoft.com/blog/.../` URL without tracking - parameters or fragments. Retain percent-encoded characters in canonical URLs. - Decorative symbols in source titles can be omitted from the display title. + `publishedAt` (`YYYY-MM-DD`), `author`, and `summary`. Preserve the exact + HTTPS Tech Community URL supplied by the canonical post, whether it uses the + `/blog/.../` or `.../ba-p/` route. Do not rewrite its + path, percent encoding, or add tracking parameters and fragments. Decorative + symbols in source titles can be omitted from the display title. 3. Write an original one- or two-sentence plain-text summary (up to 400 characters, no HTML or Markdown). Describe the article rather than promising current availability or pricing. Link pricing announcements to current diff --git a/docs-site/scripts/tests/blogs.test.mjs b/docs-site/scripts/tests/blogs.test.mjs index cdc1466..3668756 100644 --- a/docs-site/scripts/tests/blogs.test.mjs +++ b/docs-site/scripts/tests/blogs.test.mjs @@ -10,6 +10,26 @@ test('the curated catalog satisfies its schema and cross-entry integrity rules', assert.doesNotThrow(() => parseBlogCatalog(catalogText)); }); +test('contains exactly the three approved canonical Tech Community posts', () => { + assert.deepEqual( + JSON.parse(catalogText).map(({ id, url }) => ({ id, url })), + [ + { + id: '4566381', + url: 'https://techcommunity.microsoft.com/t5/azure-integration-services-blog/orchestrate-foundry-prompt-and-hosted-agents-with-logic-apps/ba-p/4566381', + }, + { + id: '4562264', + url: 'https://techcommunity.microsoft.com/t5/azure-integration-services-blog/announcing-free-grant-and-pricing-for-logic-apps-automation/ba-p/4562264', + }, + { + id: '4524685', + url: 'https://techcommunity.microsoft.com/blog/integrationsonazureblog/whats-new-in-azure-logic-apps-at-microsoft-build-2026/4524685', + }, + ], + ); +}); + test('allows an empty catalog so the index can retain its broader community link', () => { assert.deepEqual(parseBlogCatalog('[]'), []); }); diff --git a/docs-site/src/data/blogs.json b/docs-site/src/data/blogs.json index ae8d7e9..4360011 100644 --- a/docs-site/src/data/blogs.json +++ b/docs-site/src/data/blogs.json @@ -2,7 +2,7 @@ { "id": "4566381", "title": "Orchestrate Foundry Prompt and Hosted Agents with Logic Apps Automation", - "url": "https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%86%95orchestrate-foundry-prompt-and-hosted-agents-with-logic-apps-automation/4566381", + "url": "https://techcommunity.microsoft.com/t5/azure-integration-services-blog/orchestrate-foundry-prompt-and-hosted-agents-with-logic-apps/ba-p/4566381", "publishedAt": "2026-10-20", "author": "DivSwa", "summary": "Explore the Foundry prompt and hosted agent options for Automation workflows, then use the related documentation to choose and configure an agent.", @@ -14,7 +14,7 @@ { "id": "4562264", "title": "Announcing Free Grant and Pricing for Logic Apps Automation", - "url": "https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%92%b2announcing-free-grant-and-pricing-for-logic-apps-automation/4562264", + "url": "https://techcommunity.microsoft.com/t5/azure-integration-services-blog/announcing-free-grant-and-pricing-for-logic-apps-automation/ba-p/4562264", "publishedAt": "2026-10-07", "author": "DivSwa", "summary": "Read the free-grant and pricing announcement for Automation. Check the current pricing documentation for applicable rates, eligibility, and grant terms before estimating costs.", diff --git a/docs-site/src/data/blogs.schema.mjs b/docs-site/src/data/blogs.schema.mjs index 8b48836..218022a 100644 --- a/docs-site/src/data/blogs.schema.mjs +++ b/docs-site/src/data/blogs.schema.mjs @@ -19,7 +19,10 @@ function isArticleUrl(value) { && url.hostname === 'techcommunity.microsoft.com' && url.href === value && !url.username && !url.password && !url.port && !url.search && !url.hash - && /^\/blog\/[^/]+\/[^/]+\/[1-9]\d*$/u.test(url.pathname); + && ( + /^\/blog\/[^/]+\/[^/]+\/[1-9]\d*$/u.test(url.pathname) + || /^\/t5\/azure-integration-services-blog\/[^/]+\/ba-p\/[1-9]\d*$/u.test(url.pathname) + ); } catch { return false; } From 9c70787501feb868f893ac22d0a87e1adc5b114b Mon Sep 17 00:00:00 2001 From: Krrish Mittal Date: Tue, 17 Nov 2026 20:22:24 -0800 Subject: [PATCH 3/5] docs(blogs): enforce canonical article URLs Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4b56433c-9655-4354-a442-6cc982de2f59 --- docs-site/README.md | 9 ++++----- docs-site/scripts/tests/blogs.test.mjs | 4 ++-- docs-site/src/data/blogs.json | 4 ++-- docs-site/src/data/blogs.schema.mjs | 5 +---- 4 files changed, 9 insertions(+), 13 deletions(-) diff --git a/docs-site/README.md b/docs-site/README.md index bf6fad1..d071292 100644 --- a/docs-site/README.md +++ b/docs-site/README.md @@ -211,11 +211,10 @@ network requests. No page or component changes are needed to add an entry. author username, and original displayed publication date (not its updated date or a UTC timestamp that falls on a different day). 2. Add one JSON object with `id` (article ID as a string), `title`, `url`, - `publishedAt` (`YYYY-MM-DD`), `author`, and `summary`. Preserve the exact - HTTPS Tech Community URL supplied by the canonical post, whether it uses the - `/blog/.../` or `.../ba-p/` route. Do not rewrite its - path, percent encoding, or add tracking parameters and fragments. Decorative - symbols in source titles can be omitted from the display title. + `publishedAt` (`YYYY-MM-DD`), `author`, and `summary`. Use the canonical HTTPS + `techcommunity.microsoft.com/blog/.../` URL without tracking + parameters or fragments. Retain percent-encoded characters in canonical URLs. + Decorative symbols in source titles can be omitted from the display title. 3. Write an original one- or two-sentence plain-text summary (up to 400 characters, no HTML or Markdown). Describe the article rather than promising current availability or pricing. Link pricing announcements to current diff --git a/docs-site/scripts/tests/blogs.test.mjs b/docs-site/scripts/tests/blogs.test.mjs index 3668756..4756ceb 100644 --- a/docs-site/scripts/tests/blogs.test.mjs +++ b/docs-site/scripts/tests/blogs.test.mjs @@ -16,11 +16,11 @@ test('contains exactly the three approved canonical Tech Community posts', () => [ { id: '4566381', - url: 'https://techcommunity.microsoft.com/t5/azure-integration-services-blog/orchestrate-foundry-prompt-and-hosted-agents-with-logic-apps/ba-p/4566381', + url: 'https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%86%95orchestrate-foundry-prompt-and-hosted-agents-with-logic-apps-automation/4566381', }, { id: '4562264', - url: 'https://techcommunity.microsoft.com/t5/azure-integration-services-blog/announcing-free-grant-and-pricing-for-logic-apps-automation/ba-p/4562264', + url: 'https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%92%b2announcing-free-grant-and-pricing-for-logic-apps-automation/4562264', }, { id: '4524685', diff --git a/docs-site/src/data/blogs.json b/docs-site/src/data/blogs.json index 4360011..ae8d7e9 100644 --- a/docs-site/src/data/blogs.json +++ b/docs-site/src/data/blogs.json @@ -2,7 +2,7 @@ { "id": "4566381", "title": "Orchestrate Foundry Prompt and Hosted Agents with Logic Apps Automation", - "url": "https://techcommunity.microsoft.com/t5/azure-integration-services-blog/orchestrate-foundry-prompt-and-hosted-agents-with-logic-apps/ba-p/4566381", + "url": "https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%86%95orchestrate-foundry-prompt-and-hosted-agents-with-logic-apps-automation/4566381", "publishedAt": "2026-10-20", "author": "DivSwa", "summary": "Explore the Foundry prompt and hosted agent options for Automation workflows, then use the related documentation to choose and configure an agent.", @@ -14,7 +14,7 @@ { "id": "4562264", "title": "Announcing Free Grant and Pricing for Logic Apps Automation", - "url": "https://techcommunity.microsoft.com/t5/azure-integration-services-blog/announcing-free-grant-and-pricing-for-logic-apps-automation/ba-p/4562264", + "url": "https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%92%b2announcing-free-grant-and-pricing-for-logic-apps-automation/4562264", "publishedAt": "2026-10-07", "author": "DivSwa", "summary": "Read the free-grant and pricing announcement for Automation. Check the current pricing documentation for applicable rates, eligibility, and grant terms before estimating costs.", diff --git a/docs-site/src/data/blogs.schema.mjs b/docs-site/src/data/blogs.schema.mjs index 218022a..8b48836 100644 --- a/docs-site/src/data/blogs.schema.mjs +++ b/docs-site/src/data/blogs.schema.mjs @@ -19,10 +19,7 @@ function isArticleUrl(value) { && url.hostname === 'techcommunity.microsoft.com' && url.href === value && !url.username && !url.password && !url.port && !url.search && !url.hash - && ( - /^\/blog\/[^/]+\/[^/]+\/[1-9]\d*$/u.test(url.pathname) - || /^\/t5\/azure-integration-services-blog\/[^/]+\/ba-p\/[1-9]\d*$/u.test(url.pathname) - ); + && /^\/blog\/[^/]+\/[^/]+\/[1-9]\d*$/u.test(url.pathname); } catch { return false; } From 4bbe2f502ddf4ded09448a261deccca710e160e2 Mon Sep 17 00:00:00 2001 From: Krrish Mittal Date: Tue, 17 Nov 2026 20:27:40 -0800 Subject: [PATCH 4/5] docs(blogs): include canvas to run walkthrough Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4b56433c-9655-4354-a442-6cc982de2f59 --- docs-site/scripts/tests/blogs.test.mjs | 6 +++++- docs-site/src/data/blogs.json | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/docs-site/scripts/tests/blogs.test.mjs b/docs-site/scripts/tests/blogs.test.mjs index 4756ceb..3f43c06 100644 --- a/docs-site/scripts/tests/blogs.test.mjs +++ b/docs-site/scripts/tests/blogs.test.mjs @@ -10,10 +10,14 @@ test('the curated catalog satisfies its schema and cross-entry integrity rules', assert.doesNotThrow(() => parseBlogCatalog(catalogText)); }); -test('contains exactly the three approved canonical Tech Community posts', () => { +test('contains exactly the four approved canonical Tech Community posts', () => { assert.deepEqual( JSON.parse(catalogText).map(({ id, url }) => ({ id, url })), [ + { + id: '4573879', + url: 'https://techcommunity.microsoft.com/blog/IntegrationsonAzureBlog/from-canvas-to-run-a-better-logic-apps-automation-experience/4573879', + }, { id: '4566381', url: 'https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%86%95orchestrate-foundry-prompt-and-hosted-agents-with-logic-apps-automation/4566381', diff --git a/docs-site/src/data/blogs.json b/docs-site/src/data/blogs.json index ae8d7e9..02b6566 100644 --- a/docs-site/src/data/blogs.json +++ b/docs-site/src/data/blogs.json @@ -1,4 +1,16 @@ [ + { + "id": "4573879", + "title": "From canvas to run: a better Logic Apps Automation experience", + "url": "https://techcommunity.microsoft.com/blog/IntegrationsonAzureBlog/from-canvas-to-run-a-better-logic-apps-automation-experience/4573879", + "publishedAt": "2026-11-17", + "author": "KrrishM", + "summary": "Follow the Logic Apps Automation experience from finding a workflow and editing the canvas through testing a draft and investigating a run.", + "relatedDocs": [ + { "label": "Visual designer", "href": "/docs/features/visual-designer/" }, + { "label": "Runs and monitoring", "href": "/docs/features/runs-and-monitoring/" } + ] + }, { "id": "4566381", "title": "Orchestrate Foundry Prompt and Hosted Agents with Logic Apps Automation", From c90487d6c8091dffd89574d9fab76e5031b6d0ea Mon Sep 17 00:00:00 2001 From: Krrish Mittal Date: Wed, 18 Nov 2026 08:41:51 -0800 Subject: [PATCH 5/5] docs(blogs): expand Automation article catalog Add four curated Automation announcements with related docs routes and exact catalog/order coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4b56433c-9655-4354-a442-6cc982de2f59 --- docs-site/scripts/tests/blogs.test.mjs | 18 +++++++- docs-site/scripts/tests/test_blogs_output.py | 5 +- docs-site/src/data/blogs.json | 48 ++++++++++++++++++++ 3 files changed, 69 insertions(+), 2 deletions(-) diff --git a/docs-site/scripts/tests/blogs.test.mjs b/docs-site/scripts/tests/blogs.test.mjs index 3f43c06..68709d3 100644 --- a/docs-site/scripts/tests/blogs.test.mjs +++ b/docs-site/scripts/tests/blogs.test.mjs @@ -10,14 +10,26 @@ test('the curated catalog satisfies its schema and cross-entry integrity rules', assert.doesNotThrow(() => parseBlogCatalog(catalogText)); }); -test('contains exactly the four approved canonical Tech Community posts', () => { +test('contains exactly the eight approved canonical Tech Community posts', () => { assert.deepEqual( JSON.parse(catalogText).map(({ id, url }) => ({ id, url })), [ + { + id: '4573643', + url: 'https://techcommunity.microsoft.com/blog/integrationsonazureblog/announcing-decision-apis-as-actions-in-azure-logic-apps/4573643', + }, + { + id: '4573645', + url: 'https://techcommunity.microsoft.com/blog/IntegrationsonAzureBlog/what%E2%80%99s-new-in-logic-apps-automation-at-ignite-2026/4573645', + }, { id: '4573879', url: 'https://techcommunity.microsoft.com/blog/IntegrationsonAzureBlog/from-canvas-to-run-a-better-logic-apps-automation-experience/4573879', }, + { + id: '4574191', + url: 'https://techcommunity.microsoft.com/blog/IntegrationsonAzureBlog/whats-new-in-azure-logic-apps-at-microsoft-ignite-2026/4574191', + }, { id: '4566381', url: 'https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%86%95orchestrate-foundry-prompt-and-hosted-agents-with-logic-apps-automation/4566381', @@ -26,6 +38,10 @@ test('contains exactly the four approved canonical Tech Community posts', () => id: '4562264', url: 'https://techcommunity.microsoft.com/blog/integrationsonazureblog/%f0%9f%92%b2announcing-free-grant-and-pricing-for-logic-apps-automation/4562264', }, + { + id: '4524555', + url: 'https://techcommunity.microsoft.com/blog/integrationsonazureblog/%F0%9F%8E%89-automation-just-became-a-team-sport-meet-azure-logic-apps-automation-/4524555', + }, { id: '4524685', url: 'https://techcommunity.microsoft.com/blog/integrationsonazureblog/whats-new-in-azure-logic-apps-at-microsoft-build-2026/4524685', diff --git a/docs-site/scripts/tests/test_blogs_output.py b/docs-site/scripts/tests/test_blogs_output.py index 128d4a9..9cbc43c 100644 --- a/docs-site/scripts/tests/test_blogs_output.py +++ b/docs-site/scripts/tests/test_blogs_output.py @@ -65,7 +65,10 @@ def setUpClass(cls): cls.parser.feed(cls.blog_page.read_text()) def test_static_articles_have_complete_attribution_in_newest_first_order(self): - expected = sorted(self.catalog, key=lambda entry: entry["publishedAt"], reverse=True) + expected = sorted( + self.catalog, + key=lambda entry: (-int(date.fromisoformat(entry["publishedAt"]).strftime("%Y%m%d")), entry["id"]), + ) self.assertEqual(len(self.parser.articles), len(expected)) for actual, entry in zip(self.parser.articles, expected): with self.subTest(article=entry["id"]): diff --git a/docs-site/src/data/blogs.json b/docs-site/src/data/blogs.json index 02b6566..0eaef56 100644 --- a/docs-site/src/data/blogs.json +++ b/docs-site/src/data/blogs.json @@ -1,4 +1,28 @@ [ + { + "id": "4573643", + "title": "Announcing Decision APIs as actions in Azure Logic Apps", + "url": "https://techcommunity.microsoft.com/blog/integrationsonazureblog/announcing-decision-apis-as-actions-in-azure-logic-apps/4573643", + "publishedAt": "2026-11-17", + "author": "DivSwa", + "summary": "Learn how Yes/No, Choice, and Score actions return typed judgment results that workflows can act on without deploying a model or parsing free-form output.", + "relatedDocs": [ + { "label": "Workflow concepts and expressions", "href": "/docs/features/workflows/" }, + { "label": "Agent options", "href": "/docs/guides/agent-options/" } + ] + }, + { + "id": "4573645", + "title": "What's new in Logic Apps Automation at Ignite 2026", + "url": "https://techcommunity.microsoft.com/blog/IntegrationsonAzureBlog/what%E2%80%99s-new-in-logic-apps-automation-at-ignite-2026/4573645", + "publishedAt": "2026-11-17", + "author": "DivSwa", + "summary": "See the Automation-specific Ignite update covering Azure connectors, templates, managed models, Decision actions, virtual network support, hosting, and the refreshed designer.", + "relatedDocs": [ + { "label": "Connectors", "href": "/docs/features/connectors/" }, + { "label": "Workflow templates", "href": "/docs/guides/templates/" } + ] + }, { "id": "4573879", "title": "From canvas to run: a better Logic Apps Automation experience", @@ -11,6 +35,18 @@ { "label": "Runs and monitoring", "href": "/docs/features/runs-and-monitoring/" } ] }, + { + "id": "4574191", + "title": "What's new in Azure Logic Apps at Microsoft Ignite 2026", + "url": "https://techcommunity.microsoft.com/blog/IntegrationsonAzureBlog/whats-new-in-azure-logic-apps-at-microsoft-ignite-2026/4574191", + "publishedAt": "2026-11-17", + "author": "beenamore", + "summary": "Read the broader Ignite roundup for Logic Apps, including Automation updates for templates, agents, managed models, Decision actions, connectors, and virtual network support.", + "relatedDocs": [ + { "label": "About Logic Apps Automation", "href": "/docs/getting-started/introduction/" }, + { "label": "Connectors", "href": "/docs/features/connectors/" } + ] + }, { "id": "4566381", "title": "Orchestrate Foundry Prompt and Hosted Agents with Logic Apps Automation", @@ -34,6 +70,18 @@ { "label": "Pricing and free grants", "href": "/docs/getting-started/pricing/" } ] }, + { + "id": "4524555", + "title": "Automation just became a team sport. Meet Azure Logic Apps Automation.", + "url": "https://techcommunity.microsoft.com/blog/integrationsonazureblog/%F0%9F%8E%89-automation-just-became-a-team-sport-meet-azure-logic-apps-automation-/4524555", + "publishedAt": "2026-06-02", + "author": "DivSwa", + "summary": "Read the Public Preview launch story for Logic Apps Automation, including the managed experience, productivity goals, enterprise foundation, and path from idea to production.", + "relatedDocs": [ + { "label": "About Logic Apps Automation", "href": "/docs/getting-started/introduction/" }, + { "label": "Build your first workflow", "href": "/docs/getting-started/quickstart/" } + ] + }, { "id": "4524685", "title": "What's new in Azure Logic Apps at Microsoft Build 2026",