<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sai pramod upadhyayula</title>
    <description>The latest articles on DEV Community by sai pramod upadhyayula (@saipramod).</description>
    <link>https://dev.to/saipramod</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3946841%2Fc55f5233-f541-425d-9ad0-6b66dcca1183.png</url>
      <title>DEV Community: sai pramod upadhyayula</title>
      <link>https://dev.to/saipramod</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saipramod"/>
    <language>en</language>
    <item>
      <title>Building a Markdig Extension for DocFX: Remote Content Inclusion with AI Rewriting</title>
      <dc:creator>sai pramod upadhyayula</dc:creator>
      <pubDate>Fri, 22 May 2026 22:35:09 +0000</pubDate>
      <link>https://dev.to/saipramod/building-a-markdig-extension-for-docfx-remote-content-inclusion-with-ai-rewriting-hb7</link>
      <guid>https://dev.to/saipramod/building-a-markdig-extension-for-docfx-remote-content-inclusion-with-ai-rewriting-hb7</guid>
      <description>&lt;h2&gt;
  
  
  The Problem Every Documentation Team Hits
&lt;/h2&gt;

&lt;p&gt;If you've worked on a documentation platform at any scale, you've hit this&lt;br&gt;
problem: content lives in multiple places, and you need to compose it into&lt;br&gt;
a single, coherent site at build time.&lt;/p&gt;

&lt;p&gt;Maybe your API reference is generated from code. Maybe your troubleshooting&lt;br&gt;
guides live in a separate service. Maybe different teams own different sections,&lt;br&gt;
and you need to pull them together into one DocFX site without copy-pasting&lt;br&gt;
content that goes stale the moment it's duplicated.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/dotnet/docfx" rel="noopener noreferrer"&gt;DocFX&lt;/a&gt; — Microsoft's open-source documentation&lt;br&gt;
generator — is excellent at building static documentation from local markdown&lt;br&gt;
files. But it doesn't natively support fetching and inlining content from remote&lt;br&gt;
sources at build time.&lt;/p&gt;

&lt;p&gt;I needed exactly that capability. So I built it.&lt;/p&gt;


&lt;h2&gt;
  
  
  Introducing docfx-remote-include
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/saipramod/docfx-remote-include" rel="noopener noreferrer"&gt;&lt;strong&gt;docfx-remote-include&lt;/strong&gt;&lt;/a&gt; is&lt;br&gt;
a standalone &lt;a href="https://github.com/xoofx/markdig" rel="noopener noreferrer"&gt;Markdig&lt;/a&gt; extension and CLI tool&lt;br&gt;
that adds remote content inclusion to DocFX.&lt;/p&gt;

&lt;p&gt;It's &lt;strong&gt;not a fork of DocFX&lt;/strong&gt;. It hooks into DocFX's public &lt;code&gt;BuildOptions.ConfigureMarkdig&lt;/code&gt;&lt;br&gt;
extension point, so it tracks upstream releases as a regular NuGet dependency. When&lt;br&gt;
DocFX updates, your remote include capability doesn't break.&lt;/p&gt;
&lt;h3&gt;
  
  
  The Directive
&lt;/h3&gt;

&lt;p&gt;In any markdown file processed by DocFX, you can write:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;Some local content.

&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;!remoteinclude[Welcome&lt;/span&gt;&lt;span class="p"&gt;](&lt;/span&gt;&lt;span class="sx"&gt;path/to/snippet.md&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;]

More local content.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At build time, the extension fetches &lt;code&gt;{baseUrl}/path/to/snippet.md&lt;/code&gt; via HTTP,&lt;br&gt;
parses the response as markdown, and inlines the result. It works in two modes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Block mode&lt;/strong&gt; — when the directive is the only thing on its line, the fetched
content is inlined as full block content (headings, lists, paragraphs).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inline mode&lt;/strong&gt; — when the directive appears mid-paragraph, only inline content
is spliced in (no wrapping &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tags).&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  The AI Twist
&lt;/h3&gt;

&lt;p&gt;Here's where it gets interesting. You can optionally add a rewrite hint:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;!remoteinclude[Install&lt;/span&gt;&lt;span class="p"&gt;](&lt;/span&gt;&lt;span class="sx"&gt;snippets/install.md&lt;/span&gt; &lt;span class="nn"&gt;"match this page's tone and tense"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When a hint is provided, the fetched content is passed through a pluggable&lt;br&gt;
&lt;code&gt;IRewriteService&lt;/code&gt; — backed by any LLM you choose (Azure OpenAI, local models,&lt;br&gt;
anything) — which adapts the content to match the surrounding page's voice&lt;br&gt;
and style.&lt;/p&gt;

&lt;p&gt;Without a hint, the content is inlined verbatim. The AI capability is entirely&lt;br&gt;
opt-in and has zero vendor lock-in.&lt;/p&gt;


&lt;h2&gt;
  
  
  Architecture Decisions
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Why an Extension, Not a Fork?
&lt;/h3&gt;

&lt;p&gt;Forking DocFX would mean maintaining a parallel codebase and falling behind on&lt;br&gt;
upstream improvements. Instead, &lt;code&gt;docfx-remote-include&lt;/code&gt; uses the public&lt;br&gt;
&lt;code&gt;ConfigureMarkdig&lt;/code&gt; seam that DocFX exposes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;Docset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"docs/docfx.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;BuildOptions&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ConfigureMarkdig&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pipeline&lt;/span&gt; &lt;span class="p"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;pipeline&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;UseRemoteInclude&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;options&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Zero maintenance burden from DocFX internals&lt;/li&gt;
&lt;li&gt;Works with any DocFX version that exposes &lt;code&gt;ConfigureMarkdig&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Can be combined with other Markdig extensions&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Auth Flexibility
&lt;/h3&gt;

&lt;p&gt;Enterprise documentation often lives behind authentication. The extension&lt;br&gt;
supports multiple auth modes out of the box:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mode&lt;/th&gt;
&lt;th&gt;Use Case&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;none&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Public content services&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;default&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Azure Default Credential (local dev, CI/CD)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;managedIdentity&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Azure Managed Identity (production)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;jwt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Bearer token (custom auth)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;key&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;API key header&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All credentials are read from environment variables or host callbacks — never&lt;br&gt;
from config files committed to source control.&lt;/p&gt;
&lt;h3&gt;
  
  
  Safety Features
&lt;/h3&gt;

&lt;p&gt;When you're pulling remote content into a build pipeline, things can go wrong:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cycle detection&lt;/strong&gt; — an &lt;code&gt;AsyncLocal&lt;/code&gt; source stack prevents infinite recursion
when remote content includes other remote content. Max depth defaults to 8.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concurrency control&lt;/strong&gt; — in-flight requests are capped at 8 by default to
avoid overwhelming the content service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In-process caching&lt;/strong&gt; — each source URL is fetched once per build, regardless
of how many pages reference it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hard fail by default&lt;/strong&gt; — if a remote source returns 404, the build fails.
Use &lt;code&gt;--allow-missing&lt;/code&gt; to render a visible error placeholder instead.&lt;/li&gt;
&lt;/ul&gt;


&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;
&lt;h3&gt;
  
  
  As a CLI Tool
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Add the NuGet source (one-time)&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;dotnet&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;nuget&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;add&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;source&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://nuget.pkg.github.com/saipramod/index.json"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;\&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nt"&gt;--name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"docfx-tools"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--username&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;YOUR_GITHUB_USERNAME&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--password&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;YOUR_GITHUB_PAT&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="c"&gt;# Install the tool&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;dotnet&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;tool&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;install&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-g&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Docfx.RemoteInclude.Cli&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--source&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"docfx-tools"&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="c"&gt;# Build your docs&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;docfx-ri&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;build&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;docs/docfx.json&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Configuration
&lt;/h3&gt;

&lt;p&gt;Create &lt;code&gt;remoteinclude.json&lt;/code&gt; next to your &lt;code&gt;docfx.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"baseUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://your-content-service.com/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"allowMissing"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"urlTemplate"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"api/content/GetFile?path={source}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"auth"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"mode"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"managedIdentity"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"scope"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"api://your-app-id/.default"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"ai"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"endpoint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://your-aoai.openai.azure.com/"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"deployment"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"gpt-4o-mini"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"contextStrategy"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"section"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  As a Library
&lt;/h3&gt;

&lt;p&gt;For full control, use the library directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;Docfx&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;Docfx.RemoteInclude&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;using&lt;/span&gt; &lt;span class="nn"&gt;var&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;HttpRemoteContentClient&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;baseUri&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nf"&gt;Uri&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"https://your-content-service.com/"&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="n"&gt;authHandler&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ct&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;=&amp;gt;&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="n"&gt;request&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Headers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;Authorization&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt;
            &lt;span class="k"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Bearer"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;GetJwtAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ct&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
    &lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;Docset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Build&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"docs/docfx.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;BuildOptions&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;ConfigureMarkdig&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pipeline&lt;/span&gt; &lt;span class="p"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;pipeline&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;UseRemoteInclude&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;RemoteIncludeOptions&lt;/span&gt;
        &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;RewriteService&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;myRewriter&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// optional&lt;/span&gt;
        &lt;span class="p"&gt;}),&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Implement &lt;code&gt;IRemoteContentClient&lt;/code&gt; for non-HTTP sources (file systems, databases,&lt;br&gt;
signed URLs). Implement &lt;code&gt;IRewriteService&lt;/code&gt; to plug in any LLM.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;p&gt;Documentation platforms at scale need to compose content from multiple&lt;br&gt;
authoritative sources. Copy-pasting creates drift. Git submodules add complexity.&lt;br&gt;
Custom build scripts are fragile.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;docfx-remote-include&lt;/code&gt; solves this with a clean, declarative syntax that works&lt;br&gt;
within DocFX's existing pipeline. The optional AI rewriting capability means&lt;br&gt;
content from different sources can read as if it was written for the page it&lt;br&gt;
appears on.&lt;/p&gt;

&lt;p&gt;The project is MIT-licensed, open source, and accepting contributions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/saipramod/docfx-remote-include" rel="noopener noreferrer"&gt;github.com/saipramod/docfx-remote-include&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Sai Pramod Upadhyayula is a Senior Software Engineer at Microsoft, where he&lt;br&gt;
works on AI-powered enterprise knowledge platforms. He co-authored "AutoTSG:&lt;br&gt;
Learning and Synthesis for Incident Troubleshooting" (ESEC/FSE 2022) and&lt;br&gt;
contributes to the DocFX open-source ecosystem.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>dotnet</category>
      <category>opensource</category>
      <category>markdig</category>
    </item>
  </channel>
</rss>
