LLMSdocs
English

Schema.org types for documentation sites

Which schema.org types describe a documentation page and the site around it: TechArticle for the page, BreadcrumbList for its place in the hierarchy, WebSite and Organization for the site and its owner, and SoftwareSourceCode for code examples, with a complete JSON-LD block.

Type: Intermediate
On this page
  1. Types for each part of a docs site
  2. TechArticle
  3. BreadcrumbList
  4. A complete block for one page
  5. Code examples as SoftwareSourceCode
  6. Types that no longer bring a search feature
  7. See also
  8. References

Schema.org is a shared vocabulary for describing things on web pages: articles, organizations, products, events and hundreds more. Bing, Google and Yahoo launched it on 2 June 2011, and Yandex joined in November of the same year. Since April 2015 most of the work has happened in the W3C Schema.org Community Group, and new terms appear in numbered releases; version 30.1 was released on 16 September 2026. Schema.org is not a standards body, and its types are definitions rather than requirements: each search engine decides which of them it reads and what it does with them.

A documentation page needs only a few of those types. The rest of this page goes through them in the order they appear in a typical JSON-LD block. The syntax itself, including @context, @type, @id and @graph, is explained in JSON-LD basics: @context, @type and @id.

Types for each part of a docs site

TypeDescribesUsed on
TechArticleA technical article: how-to guides, procedures, reference pagesEach documentation page
APIReferenceA subtype of TechArticle for reference documentation of a programming interfaceAPI reference pages, if the distinction matters to the site
BreadcrumbListThe chain of pages from the home page to the current oneEvery page below the home page
WebSiteThe documentation site as a wholeUsually the home page, referenced from other pages by @id
OrganizationThe company or project that publishes the siteReferenced as author and publisher
SoftwareSourceCodeA piece of code, with its language and repositoryPages built around a substantial code example

TechArticle

TechArticle sits below Article, which sits below CreativeWork, so it inherits the familiar article properties and adds two of its own. Schema.org lists Beginner and Expert as the expected values of proficiencyLevel; a site with three levels can map them or use its own text, which is permitted but less likely to be understood.

Properties most useful on a documentation page
PropertyDefined onExpected typeUse
proficiencyLevelTechArticleTextProficiency the content assumes, such as Beginner or Expert
dependenciesTechArticleTextPrerequisites needed to follow the article
headlineCreativeWorkTextThe page title as shown on the page
descriptionThingTextThe summary under the title
articleSectionArticleTextThe documentation section the page belongs to
datePublished, dateModifiedCreativeWorkDate or DateTimeFirst publication and last substantive revision, in ISO 8601
author, publisherCreativeWorkOrganization or PersonWho wrote and who publishes the page; for unsigned documentation, the organization
inLanguageCreativeWorkText (BCP 47 code) or LanguageThe language of the page, such as en or ko
isPartOfCreativeWorkCreativeWork or URLThe WebSite the page belongs to
versionCreativeWorkNumber or TextThe version of the documented product the page applies to

A BreadcrumbList is an ordered list of ListItem entries. The position property carries the order, because the order of elements in markup is not treated as meaningful. Google's breadcrumb documentation lists itemListElement as the only required property of the list, and position, name and item as required for each ListItem, except that the last item may leave out item, in which case Google uses the URL of the page itself.

PropertyOnValue
itemListElementBreadcrumbListThe ListItem entries, in any order
positionListItemAn integer, starting at 1 for the top of the trail
nameListItemThe label shown for that step
itemListItemThe URL of that step; optional on the last item for Google

A page that sits in two places in the hierarchy can carry two BreadcrumbList objects. Google's documentation shows this with both lists in one JSON array.

A complete block for one page

The block below describes a page at https://docs.example.com/sitemaps/index-files. It uses @graph to hold four connected objects and @id values to link them, so the organization is described once and referenced as both author and publisher.

HTML
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "TechArticle",
      "@id": "https://docs.example.com/sitemaps/index-files#article",
      "headline": "Sitemap index files",
      "description": "How to list several sitemaps in one index file.",
      "inLanguage": "en",
      "datePublished": "2025-04-10",
      "dateModified": "2026-12-03",
      "proficiencyLevel": "Expert",
      "dependencies": "A working XML sitemap",
      "articleSection": "Sitemaps",
      "author": { "@id": "https://docs.example.com/#org" },
      "publisher": { "@id": "https://docs.example.com/#org" },
      "isPartOf": { "@id": "https://docs.example.com/#website" },
      "mainEntityOfPage": "https://docs.example.com/sitemaps/index-files"
    },
    {
      "@type": "BreadcrumbList",
      "itemListElement": [
        { "@type": "ListItem", "position": 1, "name": "Docs", "item": "https://docs.example.com/" },
        { "@type": "ListItem", "position": 2, "name": "Sitemaps", "item": "https://docs.example.com/sitemaps/" },
        { "@type": "ListItem", "position": 3, "name": "Sitemap index files" }
      ]
    },
    {
      "@type": "WebSite",
      "@id": "https://docs.example.com/#website",
      "name": "Example Docs",
      "url": "https://docs.example.com/",
      "publisher": { "@id": "https://docs.example.com/#org" }
    },
    {
      "@type": "Organization",
      "@id": "https://docs.example.com/#org",
      "name": "Example Corp",
      "url": "https://www.example.com/",
      "logo": "https://www.example.com/logo.png"
    }
  ]
}
</script>
In the head or body of https://docs.example.com/sitemaps/index-files

Every value in the block should match what a reader sees: the same headline, the same dates as the page's own last-updated line, and the same breadcrumb trail as the navigation. Markup that describes content not visible on the page goes against Google's structured data guidelines and can make the page ineligible for rich results.

Code examples as SoftwareSourceCode

Most documentation pages contain short snippets that need no markup of their own. Where a page is built around a complete program or links to a repository, SoftwareSourceCode can describe it with programmingLanguage, codeRepository, runtimePlatform and codeSampleType, whose expected values include full solution, code snippet, inline code, scripts and template. It can be attached to the article through hasPart or about.

JSON
{
  "@context": "https://schema.org",
  "@type": "SoftwareSourceCode",
  "name": "Sitemap index generator",
  "programmingLanguage": "Python",
  "runtimePlatform": "Python 3.12",
  "codeSampleType": "full solution",
  "codeRepository": "https://github.com/example/sitemap-tools"
}
A SoftwareSourceCode object for a sitemap generator

Types that no longer bring a search feature

Two types used to be common on documentation sites because Google showed them as rich results. On 8 August 2023 Google announced that FAQ rich results would be shown only for well-known, authoritative government and health websites, and that HowTo rich results would be limited to desktop. On 14 September 2023 it updated the announcement: HowTo rich results were no longer shown at all, and the type was deprecated in Google Search. HowTo and FAQPage remain valid schema.org types, and other consumers may read them, but they should not be added to documentation pages in the expectation of a Google search feature.

The same caution applies to AI features. Google's guide to its generative AI search features says that structured data is not required for them and that no special schema.org markup is needed. Structured data on a documentation site is best treated as an accurate description of each page, useful to any program that reads it, rather than as a ranking device. Checking markup before publishing is covered in validating structured data.

See also

  • JSON-LD basics: @context, @type and @idHow schema.org structured data is written in JSON-LD 1.1: the script element that carries it, the four keywords most pages need, and the choice between nesting a node and referring to it by @id.
  • Validating structured dataThe Schema Markup Validator checks markup against schema.org; Google's Rich Results Test checks only the features Google Search supports. How to use both, what Search Console adds, and why valid markup can still be ignored.
  • Canonical and alternate linksA canonical link names the preferred URL when the same content is reachable at several addresses; alternate links point to translations and to the same page in other formats, such as JSON or Markdown. Both can be written in the HTML head or sent as HTTP Link headers.
  • Machine-readable files a website can publishThe files and markup a site publishes for crawlers, search engines, language model tools and security researchers: what each one is for, where it lives and which document defines it.

References

  1. Schema.org. TechArticle. schema.org (accessed 5 December 2026)
  2. Schema.org. BreadcrumbList. schema.org (accessed 5 December 2026)
  3. Schema.org. SoftwareSourceCode. schema.org (accessed 5 December 2026)
  4. Schema.org. About Schema.org. schema.org
  5. Schema.org. Releases. schema.org (accessed 5 December 2026)
  6. Wikipedia. Schema.org. en.wikipedia.org
  7. Google Search Central. Breadcrumb (BreadcrumbList) structured data. developers.google.com (accessed 5 December 2026)
  8. Google Search Central blog. Changes to HowTo and FAQ rich results. 8 August 2023, updated 14 September 2023. developers.google.com
  9. Google Search Central. Google's guide to optimizing for generative AI features on Google Search. developers.google.com (accessed 5 December 2026)