This repository contains documentation for two separate Microsoft products, published via Microsoft Docs (DocFX):
| Docset | Languages | Source Code | Published URL |
|---|---|---|---|
Semantic Kernel (semantic-kernel/) |
C#, Python, Java | microsoft/semantic-kernel | /semantic-kernel |
Agent Framework (agent-framework/) |
C#, Python | microsoft/agent-framework | /agent-framework |
Each docset is independent with its own docfx.json, TOC.yml, and zone-pivot-groups.yml.
Every markdown file requires this frontmatter:
---
title: Page title
description: Brief description
zone_pivot_groups: programming-languages # If showing code in multiple languages
author: github-username
ms.topic: conceptual
ms.author: microsoft-alias
ms.date: MM/DD/YYYY
ms.service: semantic-kernel
---Zone pivots show language-specific content. Note the different language support per docset:
Semantic Kernel (C#, Python, Java):
::: zone pivot="programming-language-csharp"
C# content here
::: zone-end
::: zone pivot="programming-language-python"
Python content here
::: zone-end
::: zone pivot="programming-language-java"
Java content here
::: zone-endAgent Framework (C#, Python only - no Java):
::: zone pivot="programming-language-csharp"
C# content here
::: zone-end
::: zone pivot="programming-language-python"
Python content here
::: zone-endReference code from external sample repositories using DocFX syntax:
:::code language="csharp" source="~/../semantic-kernel-samples/path/to/file.cs" id="SnippetId":::Sample repositories (configured in .openpublishing.publish.config.json):
semantic-kernel-samples→ microsoft/semantic-kernel (main branch)semantic-kernel-samples-java→ microsoft/semantic-kernel-java
Each section has a TOC.yml file. When adding new pages, update the appropriate TOC:
- name: Page Title
href: page-file.mdUse docs-relative paths:
- Cross-docset:
/semantic-kernel/concepts/kernelor/agent-framework/overview/ - Same docset:
./sibling-page.mdor../parent/page.md
Place images in media/ folders within each section. Use SVG for diagrams when possible.
- Tip boxes:
> [!TIP]for helpful hints - Notes:
> [!NOTE]for important information - Warnings:
> [!WARNING]for cautions - Next steps buttons:
> [!div class="nextstepaction"]followed by a link
- Do not add build/test commands (this is a pure documentation repo)
- Do not reference
_themes/or_themes.pdf/directories (managed externally) - Files in
**/includes/**and**/obj/**are excluded from builds