Initial Release
This is a browser extension that converts online InterSystems IRIS DocBook documentation pages into clean, portable Markdown with an offline conversion pipeline and a safe preview, making it easy to incorporate product-specific information into modern AI assisted workflows.
By turning a live documentation page into a single Markdown artifact you can paste into ChatGPT, a custom GPT, or an agentic development tool, you can supply accurate project context such as APIs, configuration steps, ObjectScript examples, and constraints, which reduces hallucinations and improves code generation quality. The output is designed to be LLM friendly by flattening tabbed content, normalizing code blocks with language hints, promoting glossary entries and headings for better retrieval, and optionally stripping links or tables when you want a smaller prompt, so it fits well into prompt libraries, retrieval augmented generation pipelines, or project specific context packs that you reuse across sessions and teams.
When you click the extension icon on a supported DocBook page, it:
textarea).iframe).This extension is intentionally scoped to InterSystems IRIS documentation:
docs.intersystems.com./csp/docbook/DocBook.UI.Page.cls./csp/docbook/Doc.View.cls.KEY=... query parameter.If you click the icon on an unsupported page, the viewer opens with an explanatory error.
npm install
npm run build
chrome://extensions.Developer mode.Load unpacked.dist/ folder produced by npm run build.edge://extensions.Developer mode.Load unpacked.dist/ folder produced by npm run build.Open a supported IRIS DocBook page:
In the viewer you can:
Copy MarkdownDownload .mdCopy Source URLClear Session DataStrip Links (Keep Text)Remove HTML TablesThe conversion pipeline does a set of targeted normalizations aimed at DocBook pages:
alt value exists).Markdown conversion is done via Turndown with a few overrides for better fidelity.
This extension is built to be conservative:
connect-src 'none'.chrome.storage.session.
Clear Session Data.http(s) URLs on docs.intersystems.com.iframe using srcdoc.Run a local dev server:
npm run dev
Build the unpacked extension:
npm run build
Then load dist/ via Load unpacked.
src/background.ts - action click handler; validates URL; extracts page DOM; stores session payload; opens viewer.src/viewer.ts - reads session payload; converts to Markdown; renders output + safe preview; copy/download actions.src/convert.ts - conversion orchestrator (DOM passes + Turndown).src/domPasses.ts - targeted DOM normalization passes for InterSystems DocBook HTML.viewer.html - viewer UI (Markdown + Preview tabs).icons/ - extension icons.