Skip to content

Docsio v2 is out

See changelog
← Docsio Research

Documentation maintenance · Research synthesis

When shared documentation stops being correct

Research on content reuse in GitHub Docs, Microsoft Learn, Sphinx and Asciidoctor, with a practical method for reviewing every page a shared change affects.

By Docsio Research15 min read

Single-source documentation keeps text connected, but it does not prove that the text belongs in every place that uses it. A shared instruction can be accurate for one product version and wrong for another. This report connects published authoring practices and include mechanics into a proposed reuse contract: define the fragment’s purpose, its supported contexts, its dependencies and the pages that must be reviewed when it changes.

Key findings

  • Reuse has several meanings. A product-name variable, a repeated procedure and an excerpt from a code file need different review rules.

  • Published guidance limits reuse as well as enabling it. GitHub questions large repeated sections, while Microsoft Learn advises authors to write includes that make sense independently of surrounding text.

  • Include mechanics do not establish semantic correctness. Paths, selectors, heading offsets and conditional attributes can change what readers receive.

  • A shared edit should be reviewed through its consuming pages and supported versions. The worksheet and test matrix here are proposed methods, not measured results.

How we researched this

We inspected eight original documentation pages on November 23, 2026: two GitHub Docs authoring guides, the Microsoft Learn Markdown reference, the Sphinx directive reference and four Asciidoctor guides. We selected them for concrete reuse policies or mechanics, not as a representative survey of documentation tools. We compared reuse units, context dependencies, selection and version behavior. Source-backed observations are cited; the fictional example, decision worksheet and test matrix are our analysis and have not been run as a benchmark. Access dates describe this review, not inferred publication dates. No customer content or systems were used.

Reuse the decision, not just the matching words

Consider a fictional product with a hosted service and a self-managed edition. Both setup guides contain the sentence "Create an administrator account." A writer extracts the sentence and the steps that follow into a shared file. Later, the hosted service adds an organization-owner requirement. The shared procedure is updated, and both guides display the new requirement.

The text is synchronized. The self-managed guide is now wrong. Nothing in this example requires a broken include, a missing file or a failed build. The failure is that two procedures were treated as one because their wording happened to match at the time.

This is the question a reuse review should answer first: do these consumers share the same underlying instruction, or merely the same current wording? A consumer is any page or output that uses the fragment. Its context includes the product, version, audience and prerequisites that make the instruction true.

GitHub's content model describes reuse of units such as steps and conceptual paragraphs. It generally avoids repeating large article sections without a particular reason, and asks authors to consider whether overlapping material belongs in one permanent article linked from elsewhere. That is a published editorial practice, not a measured claim that one fragment size is always best. GitHub content model

Our proposed decision rule is to identify what is invariant before choosing a reuse mechanism. A spelling convention may be invariant across a whole documentation set. A permission requirement might be invariant only within one deployment model. A troubleshooting sequence might be unique to a particular failure state even if several of its sentences are familiar.

Write that boundary next to the fragment, not only in a review comment that disappears into history. A short description such as "For hosted organization owners configuring the current connector" gives future maintainers something to challenge. A filename such as "common-setup" does not.

This distinction also changes what counts as success. Reducing the number of repeated paragraphs is an editing outcome. Keeping every supported guide correct is a reader outcome. The first can be counted directly; it should not stand in for evidence of the second.

Four reuse mechanisms, four different promises

The same phrase, content reuse, can refer to several mechanisms. This comparison summarizes selected documented behavior, not feature parity or a ranking. A tool's ability to insert content does not establish that the resulting instructions suit the destination.

SystemDocumented mechanismReview question
GitHub DocsMarkdown reusables and short YAML variablesIs this shared prose or a shared label?
Microsoft LearnInline and block Markdown includesDoes the fragment read correctly in the published article?
SphinxVerbatim file excerpts through literalincludeDid the intended source region get selected?
AsciidoctorPreprocessor expansion of included textWhat structure will the surrounding document give it?

GitHub stores longer reusables in separate Markdown files and uses YAML for short variables. Within GitHub Docs' publishing system, reusables can contain Liquid conditions based on the version being viewed. This makes version handling part of the shared content's behavior, not merely a property of the destination page. GitHub reusable content

Microsoft Learn replaces include references at build time. Its guidance says includes should contain complete sentences or phrases independent of the surrounding article, and advises against nested includes or using an include as the whole article. GitHub's ordinary Markdown view does not render Learn's include extension. A source preview therefore cannot substitute for checking the publishing output. Microsoft Learn reference

Sphinx's literalinclude displays verbatim text from an external file. Its ordinary relative paths follow the current document; a leading slash refers to the top source directory. It offers selections by line range, Python object and text markers. Those are different ways of identifying an excerpt, not evidence that the excerpt remains a complete working example. Sphinx directives

Asciidoctor describes include expansion as preprocessing before document structure is parsed. Its include directive does not understand the surrounding structure. Top-level relative includes use the configured base directory; nested ones use the current including file's directory. Moving files can therefore change resolution. Asciidoctor includes

Our synthesis is that a reuse inventory should record the mechanism as well as the file. Reviewing a product-name change requires different evidence from reviewing a shared permission procedure. An inventory that labels both simply "shared content" hides the distinction that determines the review.

Give each shared fragment a small, explicit contract

A reuse contract is our proposed record of the conditions under which a fragment is intended to be correct. It need not be a new content-management system. A nearby comment, a small manifest or an existing documentation record may be enough, provided maintainers can find it and keep it aligned with actual consumers.

Start with the fragment's purpose and supported context. Then record the things it expects from its destination. A procedure may assume a role, a prior installation step or an environment variable. A conceptual paragraph may assume that a term has already been introduced. A warning may need to appear before an action rather than after it.

FieldWhat the record should establishProposed evidence
PurposeThe fact or task that stays sharedA one-sentence description
ApplicabilityProducts, versions and audiences coveredNamed supported contexts
PrerequisitesWhat must already be trueRequired roles, setup or state
StructureWhere the fragment can appearHeading, list or inline expectations
DependenciesLinks, images, variables and selectorsResolved targets and source identifiers
ConsumersWhich published outputs use itPage and build references
OwnershipWho reviews semantic changesAn accountable maintainer
Release policyWhich consumers update togetherA version or revision rule

This worksheet is proposed and untested. Its value should be assessed through the decisions it helps a team make, not whether every cell contains text. A small fragment can have a small contract. A widely shared destructive procedure deserves a more explicit one.

For the fictional administrator example, the first contract might say "all deployment models." Discovering the new hosted requirement forces a choice: narrow the fragment, add a named variant, or split the instructions. The contract does not choose automatically. It makes the incompatibility visible before publication.

Avoid an unlimited applicability field such as "all versions" unless someone is responsible for maintaining that promise. Likewise, a missing prerequisite should mean "none required" only when that was checked. Otherwise, mark the uncertainty and review the consuming guide before extracting the fragment.

The contract is also a useful boundary for automation. A checker can compare declared consumers with discovered references, or flag an unknown parameter. It cannot establish that an administrator actually has permission to perform the action just because the role appears in the manifest. That still needs product knowledge and an appropriate task check.

Check what gets inserted and what it becomes

A fragment can fail in two separate ways: the include selects the wrong material, or the right material acquires the wrong meaning when inserted. Review both. Looking only at the shared source catches neither reliably.

For selection, Sphinx documents that marker-based boundaries match the first line containing the specified string. A numeric range instead identifies positions. Our inference is that each creates a different maintenance dependency: changes above a numeric range can move the intended excerpt, while duplicated or changed marker text can alter selection. A marker is not a guarantee of semantic stability. Sphinx selection options

Asciidoctor supports tagged regions as well as line ranges. Its guide explains how tag and end directives delimit selected regions and recommends placing them in source-language comments where appropriate. For an AsciiDoc source that is itself converted, uncommented tags can become ordinary content and disrupt blocks such as tables. This is a reason to inspect both the source used by the include and any standalone rendering of that source. Tagged regions

Our proposed excerpt check has three parts: identify the expected beginning, identify the expected ending, and explain why the middle is sufficient for the reader's task. A screenshot of a syntactically highlighted block is weak evidence if the setup code was accidentally excluded. For executable examples, keep the separate SDK compatibility check rather than assuming inclusion proves execution.

Structure needs its own check. Asciidoctor's leveloffset can shift included section levels, allowing a chapter to be published independently and also embedded in a larger document. Its guidance favors relative offsets for nested includes. The supported mechanism helps authors manage hierarchy; it does not decide whether a section belongs at that position in the reader's task. Section-level offsets

For a prose fragment, inspect the sentence before it, the fragment itself and the sentence after it. For a procedure, inspect numbering, prerequisites and the next action. For a heading-bearing fragment, inspect the resulting outline and anchors. For links and images, inspect the resolved destination in the built page, not just the path in the include file.

These are proposed consumer checks. They should be performed in the actual publishing configuration, because a correct include target and a correct link inside its content are separate assertions. Do not infer one from the other or transfer path rules from one documentation system to another.

Make version and audience differences visible

Conditional content can preserve a shared source while producing different instructions. It can also make a review misleading if the reviewer sees only one branch. The source diff may be small while the set of readers affected is large.

Asciidoctor's ifdef includes content when an attribute is set; ifndef includes it when the attribute is not set. Its documentation also supports combinations of attribute names. That mechanism tests configuration state. It does not independently verify that an attribute accurately represents a customer's product, permissions or deployment. Conditional directives

We recommend listing the supported variant inputs and the expected output for each meaningful case. The word meaningful matters. Testing every possible combination is not a substitute for deciding which combinations the product actually supports. Equally, testing only the default build can leave an old supported edition without its required steps.

Return to the fictional setup procedure. Suppose the hosted edition needs an organization owner, while the self-managed edition needs a local administrator. A single variable that swaps the role name might be sufficient if the action and verification are identical. If one edition requires a separate approval workflow, replacing a noun conceals a real procedural difference. Split the relevant steps or use a named variant with a clear scope.

A historical release creates another decision. Should its documentation inherit future edits to a common fragment, or keep the revision that matched that release? Neither choice is universally correct. A typo correction may belong everywhere. A changed command may apply only to the current product. Record the policy and review exceptions instead of letting repository layout decide by accident.

Language introduces a further consumer context. Microsoft Learn's warning about sentence fragments is specifically tied to translatability: text that relies on surrounding words can become an untranslatable string. That supports checking complete meaning, not merely whether English reads smoothly. It does not establish that shared content automatically keeps translations current. Microsoft Learn include guidance

For localization status, maintain the source-revision relationship described in our translated documentation research. The additional question here is which translated pages consume the changed fragment. A translation can be current against an old source fragment while another page has already adopted a newer one.

Review the consumer impact before approving the shared edit

The contract above describes a fragment's standing assumptions. This change-review record applies those assumptions to a specific edit and its affected consumers. A consumer-impact worksheet should show where a change appears, what differs by context and what evidence supports approval. This is a method proposal, not an observed workflow from any of the cited organizations.

For the fictional administrator change, a compact review could look like this:

ConsumerIntended effectReview decision
Current hosted setupAdd organization-owner prerequisiteUpdate the hosted variant and verify the task
Current self-managed setupPreserve local-administrator instructionsConfirm the shared edit does not add hosted steps
Supported older releaseKeep its documented behaviorReview against that release's rule
Troubleshooting guideExplain the corresponding permission failureCheck consistency with its recovery instructions
Translated setup pageReflect the approved source changeRecord the source revision and translation status

Our operational inference is that a reference search needs an explicit scope. A direct search for a filename may miss references generated from variables, wrappers or build configuration. Conversely, it may find files that no longer publish. Report how the consumer list was produced and where manual confirmation was needed. Do not label a partial search as a complete dependency graph.

Use the list to decide who must review. A shared wording change may need only an editorial check. A permissions change needs someone who understands the permissions. A command change needs execution evidence for the supported context. The number of changed source lines is a poor substitute for that distinction.

Then inspect the published output for the affected contexts. Save enough information to connect the review to the source revision and build configuration. A reviewer should be able to explain why an unchanged consumer was excluded, not merely say that the default preview looked fine.

Rollback also belongs in the decision. Reverting the shared source may correct all consumers at once, but that can undo a valid change for one of them. If independent releases are expected, the content organization should make independent correction possible. This is one reason to consider a deliberate split rather than accumulate exceptions in a fragment whose purpose is no longer coherent.

When the review reveals an unknown consumer or unexplained variant, pause that shared change and resolve the ambiguity. The aim is not to make reuse administratively expensive. It is to avoid transferring the cost of an unclear source change to readers who cannot see the source.

A proposed release matrix for shared content

These checks are proposed and unexecuted. Adapt them to the actual authoring system and supported publishing configurations. They test the team's reuse contract; they are not benchmarks of GitHub, Microsoft, Sphinx or Asciidoctor.

ScenarioDeliberate change or fixtureWhat to verify
Consumer at another depthInclude the fragment from a different source locationThe intended file and its dependencies resolve
Wrong or empty selectionMove a marker or alter an excerpt boundaryThe check catches missing or unintended content
Heading-bearing reuseRender standalone and nested formsThe outline and section destinations remain appropriate
List or paragraph boundaryPlace the fragment in each allowed contextGrammar, numbering and separation remain correct
Version-specific branchRender supported current and historical contextsEach receives the intended instructions
Missing variant inputOmit a required attribute or parameterThe documented fallback or validation occurs
Shared instruction changesChange a prerequisite or commandEvery affected task is reviewed, not only the fragment
Media and linksBuild pages with the fragment's dependenciesReaders reach the correct resource and section
Localization changeUpdate a shared source used by translated pagesConsumer status reflects the source revision
Independent correctionRevert or split one variantUnrelated supported consumers retain their intended content

Define expected results before the run. "The build passed" is not an adequate assertion for a prerequisite change. A useful result says which consumer was examined, which product context it represents, which source revision it used and what the reviewer or test established.

Asciidoctor's include guide provides a concrete caution: a missing include can still permit conversion while emitting a warning and inserting an unresolved-directive message. Its optional-include setting can instead omit a missing file. Whether a team's pipeline treats warnings as release failures is a separate configuration decision. Include resolution

Our recommendation is to make required content explicit and check its presence in the result. Do not silence a missing shared safety step simply because optional content is convenient elsewhere. Conversely, do not turn an intentionally absent product-specific section into an error without checking its applicability rule.

For evaluation over time, record review effort, defects found in shared content, affected consumers per defect and subsequent corrections. Define the denominator before reporting a rate, and separate editorial issues from wrong instructions. These are suggested measurements; this research did not collect them and cannot claim a percentage reduction in maintenance or errors.

A sensible first application is one frequently reused procedure with several genuinely different consumers. Map it, document its assumptions and rehearse one change. Expand the method when that exercise reveals useful decisions. More reuse is not the target. Accurate instructions that remain understandable and maintainable across their supported contexts are the target.

Limitations

This is a synthesis of selected public authoring guidance, not an empirical study of reuse effectiveness or a complete comparison of the named systems. We did not execute the proposed fixtures, inspect private repositories, measure maintenance savings or test every tool version. Current master/latest documentation can change after November 23, 2026. Tool-specific mechanisms should not be generalized to other renderers or extensions. The fictional product, worksheet and matrix are analytical examples. The sources establish capabilities and published practices, not causal effects on quality, translation cost or reader success.

Sources

  1. About the content model: Reusing contentGitHub · Accessed 2026-11-23
  2. Creating reusable contentGitHub · Accessed 2026-11-23
  3. Markdown reference: Included Markdown filesMicrosoft Learn · Accessed 2026-11-23
  4. Directives: literalincludeSphinx · Accessed 2026-11-23
  5. IncludesAsciidoctor · Accessed 2026-11-23
  6. Include Content by Tagged RegionsAsciidoctor · Accessed 2026-11-23
  7. Offset Section LevelsAsciidoctor · Accessed 2026-11-23
  8. ifdef and ifndef DirectivesAsciidoctor · Accessed 2026-11-23