page

Tutorial Article

Route: /tutorials/:id/* → views/Topic.vue → components/Article.vue (kind "article", tutorial variant)

1. Route and component dispatch

Any path under /tutorials is served by views/Topic.vue, a thin dispatcher that renders one dynamic <component> based on the fetched node's top-level kind. It defines a two-entry lookup table:

const TopicKind = {
  article: 'article',
  tutorial: 'project',
};
...
componentFor(topic) {
  const { kind } = topic;
  return {
    [TopicKind.article]: Article,
    [TopicKind.tutorial]: Tutorial,
  }[kind];
},

(Topic.vue#L37-L40 and Topic.vue#L109-L115.) A wire kind: "article" node — this page's subject, a free-standing tutorial-catalog article, distinct from a numbered @Tutorial project (wire kind: "project", which dispatches to Tutorial instead) — resolves to components/Article.vue. This is a completely different rendering path from the DocumentationTopic.vue that handles a DocumentationRenderNode's own, same-string kind: "article" value — see the note on kinds/node-article.html, which already covers this ambiguity in detail.

Topic.vue's propsFor(topic) forwards the same flattened prop set to either branch — hierarchy, metadata, references, sections, and identifierUrl (from identifier.url) — so Article.vue receives exactly:

props: {
  hierarchy: { type: Object, required: true },
  metadata: { type: Object, required: true },
  references: { type: Object, required: true },
  sections: {
    type: Array,
    required: true,
    validator: sections => sections.every(({ kind }) => (
      Object.prototype.hasOwnProperty.call(SectionKind, kind)
    )),
  },
  identifierUrl: { type: String, required: true },
}

(Article.vue#L69-L93.) The wire schema backing this is TutorialsPageRenderNode with kind == .article — not DocumentationRenderNode — so an article page's sections array (not primaryContentSections) is what actually drives the page body, per section 4 below.

2. Page chrome (non-schema)

Article.vue renders exactly one piece of chrome above its section list: NavigationBar, imported as theme/components/Tutorial/NavigationBar.vue — the identical component path (and identical props: chapters, technology, topic, rootReference, identifierUrl) used by the Tutorial (Project) page. There is no separate "article navigation bar" component; the same dropdown-based nav chrome (technology title, primary chapter dropdown, secondary in-page-section dropdown, mobile dropdown fallback) appears on both page types, gated only by v-if="!isTargetIDE" (Article.vue#L13-L20).

As on the Tutorial (Project) page, there is no sidebar and no search chrome on this page type — both are exclusively part of the Documentation Topic page's DocumentationLayout shell, which an article/project-kind tutorial page never mounts. The only other non-schema DOM is a <main id="app-main"> wrapper and a PortalTarget name="modal-destination" used by nested components (e.g. the hero's "Watch intro video" modal) to portal modal markup to (Article.vue#L21-L30).

3. DOM hierarchy: root → chrome → content → leaves

The tree below traces one representative render of an article-kind TutorialsPageRenderNode carrying all four possible section kinds (hero, articleBody with one fullWidth and one contentAndMedia layout item, assessments, callToAction), down to representative leaf block/inline nodes.

4. RenderNode content dispatch (schema-driven)

Article.vue's own dispatch table only recognizes four section kinds — a strict subset of what a Tutorial (Project) page's Tutorial.vue accepts (which additionally dispatches intro/tasks/resources/volume and does not accept articleBody at all):

const SectionKind = {
  articleBody: 'articleBody',
  callToAction: 'callToAction',
  hero: 'hero',
  assessments: 'assessments',
};

(Article.vue#L45-L50.) Any section on the wire whose kind is not one of these four fails the component's own prop validator and would not render. Below that section level, the articleBody section's own content array is not block content directly — it is a three-way layout dispatch (columns / contentAndMedia / fullWidth) handled by BodyContent.vue, and only inside a resolved layout item does ordinary block/inline ContentNode dispatch take over (via Article/ContentNode.vue, a thin wrapper around the shared components/ContentNode.vue that force-enables code-listing line numbers and strips heading anchors).

Section / layout kindComponentKind reference
heroArticle/Hero.vue → Tutorial/Hero.vuesection-hero.html
articleBodyArticle/Body.vue → Article/BodyContent.vuesection-articlebody.html
callToActionArticle/CallToAction.vue → Tutorial/CallToAction.vuesection-calltoaction.html
assessmentsArticle/Assessments.vue → Tutorial/Assessments.vuesection-assessments.html
columns (articleBody layout item)Article/Layouts/Columns.vueno dedicated kind page (layout-only, not separately catalogued)
contentAndMedia (articleBody layout item)Article/Layouts/ContentAndMedia.vuesection-contentandmedia.html
fullWidth (articleBody layout item)Article/Layouts/FullWidth.vueno dedicated kind page (layout-only, not separately catalogued)
block/inline content nested in any layout itemArticle/ContentNode.vue → shared ContentNode.vuesee section 5 for the reachable block/inline set

5. Kind cross-reference table

Every kind reachable on a Tutorial Article page, keyed by tier. Block/inline reachability is inherited transitively through whichever layout item (columns/contentAndMedia/ fullWidth) or section (hero intro content, assessments question prose, callToAction abstract) embeds a ContentNode-driven block array — the full BlockType/InlineType dispatch table in the shared components/ContentNode.vue applies uniformly, since Article/ContentNode.vue delegates straight through to it rather than restricting the set.

KindTierKind file
article (tutorial variant, this page's top-level node kind)nodesee node-article.html section 1 for the ambiguity note; no page documents the TutorialsPageRenderNode-flavored article top-level node in isolation
herosectionsection-hero.html
articleBodysectionsection-articlebody.html
callToActionsectionsection-calltoaction.html
assessmentssectionsection-assessments.html
contentAndMedia (articleBody layout item)sectionsection-contentandmedia.html
columns (articleBody layout item)sectionnone (uncatalogued)
fullWidth (articleBody layout item)sectionnone (uncatalogued)
paragraphblockblock-paragraph.html
headingblockblock-heading.html
asideblockblock-aside.html
codeListingblockblock-codelisting.html
orderedListblockblock-orderedlist.html
unorderedListblockblock-unorderedlist.html
termListblockblock-termlist.html
tableblockblock-table.html
rowblockblock-row.html
smallblockblock-small.html
tabNavigatorblockblock-tabnavigator.html
linksblockblock-links.html
videoblockblock-video.html
thematicBreakblockblock-thematicbreak.html
endpointExampleblockblock-endpointexample.html (REST-only content; reachable in principle through generic ContentNode dispatch, but not expected in ordinary tutorial-catalog articles)
dictionaryExampleblockblock-dictionaryexample.html (same caveat as endpointExample)
textinlineinline-text.html
codeVoiceinlineinline-codevoice.html
emphasisinlineinline-emphasis.html
stronginlineinline-strong.html
newTerminlineinline-newterm.html
inlineHeadinlineinline-inlinehead.html
imageinlineinline-image.html
referenceinlineinline-reference.html
superscriptinlineinline-superscript.html
subscriptinlineinline-subscript.html
strikethroughinlineinline-strikethrough.html
topic (callToAction action, inline references)referencereference-topic.html
section (reference to an in-page @Section anchor)referencereference-section.html
link (callToAction action / inline reference to an external URL)referencereference-link.html
image (contentAndMedia/columns media, inline image resolution)referencereference-image.html
video (contentAndMedia/columns/hero media resolution)referencereference-video.html
download (hero projectFiles)referencereference-download.html
xcodeRequirement (hero xcodeRequirement)referencereference-xcoderequirement.html
file (codeListing content resolved via a file reference in some tutorial contexts)referencereference-file.html
unresolvablereferencereference-unresolvable.html