with one click
cross-repository-references
// How to configure cross-repository references (CRR) and create API class links for Microsoft Learn docs in this repository.
// How to configure cross-repository references (CRR) and create API class links for Microsoft Learn docs in this repository.
Required when reviewing, updating, auditing, or creating any concept documentation page. Covers code accuracy checks against source repos, language parity across zone pivots, parity table comments, and structural consistency.
How to reference code from sample repos in Agent Framework docs pages using :::code directives, snippet tags, zone pivots, and highlight attributes.
How breadcrumbs work on Microsoft Learn: structure, creation, configuration in docfx.json, and best practices for documentation repos.
How to delete, rename, or move articles on Microsoft Learn while preserving Platform IDs, preventing broken links, and managing redirects.
Conceptual organization of Agent Framework documentation and samples. For language-specific details (file naming, provider setup, code patterns), see each code repo's skills files.
How to create, structure, and configure table of contents (TOC) files for Microsoft Learn documentation using toc.yml and docfx.json.
| name | cross-repository-references |
| description | How to configure cross-repository references (CRR) and create API class links for Microsoft Learn docs in this repository. |
Use this skill when you need to:
CRR replaces Git submodule-based references for docs build scenarios and is easier to reason about for doc authors.
CRR is configured in:
.openpublishing.publish.config.jsonThe key is:
dependent_repositories{
"dependent_repositories": [
{
"path_to_root": "<relative path>",
"url": "<repository URL>",
"branch": "<default branch>",
"branch_mapping": {
"<source branch>": "<dependency branch>"
}
}
]
}
| Field | Required | Meaning |
|---|---|---|
dependent_repositories | Yes | List of CRR entries |
path_to_root | Yes | Where the dependency is mounted in the build workspace |
url | Yes | Dependency repository URL |
branch | Yes | Default dependency branch |
branch_mapping | No | Optional source->dependency branch override map |
This repository already uses CRR in .openpublishing.publish.config.json for:
_themes_themes.pdfsemantic-kernel-samplessemantic-kernel-samples-javaPrefer extending the existing dependent_repositories list instead of introducing alternate mechanisms.
~, ..) for references~ resolves to the docset root (build_source_folder)agent-framework/~/.. to move from docset root to repository rootExample (from Agent Framework docset to CRR sample repo):
~/../semantic-kernel-samples/path/to/file.py
dependent_repositories entry in .openpublishing.publish.config.json[!INCLUDE], :::code, or static asset references)docfx.json so referenced source trees are not published as content.gitignore if local build artifacts create noiseFor Agent Framework Python API links, use Learn URLs with explicit package + module/class paths.
/python/api/agent-framework-core/agent_framework?view=agent-framework-python-latest/python/api/agent-framework-core/agent_framework.baseagent?view=agent-framework-python-latest/python/api/agent-framework-core/agent_framework.agent?view=agent-framework-python-latest/python/api/agent-framework-core/agent_framework.supportschatgetresponse?view=agent-framework-python-latest/python/api/agent-framework-core/agent_framework.supportsagentrun?view=agent-framework-python-latest/python/api/agent-framework-core/agent_framework.agentresponseupdate?view=agent-framework-python-latest[`BaseAgent`](/python/api/agent-framework-core/agent_framework.baseagent?view=agent-framework-python-latest)
/python/api/...) instead of hardcoded absolute hostnamesview=agent-framework-python-latest is present./, ../) introduced