Skip to content

feat: prefer raw-Markdown (.html→.md) over Playwright for developer.salesforce.com docs - #293

Open
rob-alexa wants to merge 1 commit into
forcedotcom:mainfrom
rob-alexa:feat-markdown-doc-fetch
Open

feat: prefer raw-Markdown (.html→.md) over Playwright for developer.salesforce.com docs#293
rob-alexa wants to merge 1 commit into
forcedotcom:mainfrom
rob-alexa:feat-markdown-doc-fetch

Conversation

@rob-alexa

Copy link
Copy Markdown

References: Contributing guide · Skill authoring guide · Agent Skills spec

What changed

Updates the fetching-salesforce-docs skill (SKILL.md + README.md) to try a raw-Markdown fetch first for developer.salesforce.com guide pages, before falling back to the existing Playwright extractor.

Modern developer-guide pages now publish a raw-Markdown twin: swap the .html extension for .md on the same URL and a plain web fetch returns clean Markdown (headings, fenced code, links) with no JS shell. Salesforce surfaces this via the "Copy as Markdown" / "View as Markdown" links on each page.

Why

Browser-rendered (Playwright) extraction is heavy — it needs the isolated runtime and a Chromium download. For the large and growing set of pages that expose a .md twin, a plain fetch is faster, lighter, and needs no browser at all. Trying it first keeps the Playwright path as a reliable fallback for everything else.

Notes

  • Scope documented in the change: confirmed for modern guide pages under developer.salesforce.com/docs/platform/.../guide/*. It does not work for legacy atlas.* pages (.md returns an HTML shell) or help.salesforce.com — those still use the existing playbook/extractor, so the change adds a fast path without removing any coverage.
  • Verified 2026-06-24 against e.g. …/guide/js-dynamic-components.html…/guide/js-dynamic-components.md (clean Markdown) and confirmed atlas.* returns a shell.
  • Docs-only change to one skill; frontmatter untouched, SKILL.md stays at 220 lines (within the 500-line spec limit). No script or requirements.txt changes.

🤖 Generated with Claude Code

…salesforce.com docs

Modern developer.salesforce.com guide pages now publish a raw-Markdown twin —
swap the .html extension for .md on the same URL (the page's "Copy/View as
Markdown" links expose it) and a plain web fetch returns clean Markdown with no
JS shell. That's faster and lighter than browser-rendered extraction, so the
fetching-salesforce-docs playbook should try it first for those pages.

Documents the scope: it's confirmed for modern guide pages under
/docs/platform/.../guide/*, does NOT work for legacy atlas.* pages (which return
an HTML shell), and help.salesforce.com still needs the Playwright extractor —
fall back to the existing playbook in those cases.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant