Skip to content

Latest commit

 

History

History
103 lines (74 loc) · 3.17 KB

File metadata and controls

103 lines (74 loc) · 3.17 KB

Copilot Instructions for Semantic Kernel Documentation

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.

Documentation Conventions

YAML Frontmatter

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 for Multi-Language Content

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-end

Agent 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-end

Code Samples

Reference 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):

Table of Contents

Each section has a TOC.yml file. When adding new pages, update the appropriate TOC:

- name: Page Title
  href: page-file.md

Links

Use docs-relative paths:

  • Cross-docset: /semantic-kernel/concepts/kernel or /agent-framework/overview/
  • Same docset: ./sibling-page.md or ../parent/page.md

Media Files

Place images in media/ folders within each section. Use SVG for diagrams when possible.

Key Patterns

  • 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

What NOT to Include

  • 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