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.
- CHROME
div.article—Article.vueroot- CHROME
NavigationBar(#nav) — same component as the Tutorial (Project) nav bar; technology title, chapter/section dropdowns (omitted when embedded in the IDE target) - CHROME
main#app-main— content mount point- SECTION
LinkableSection.tutorial-hero— hero section, rendered viaArticle/Hero.vue→Tutorial/Hero.vue(the same hero component the Tutorial project page uses)- CHROME
div.hero.dark— dark-themed gradient background, optionalbackgroundImage - BLOCK
Headline[level=1]— title, with optionalchaptereyebrow text - BLOCK
div.intro > ContentNode— hero's own free-formcontent(block content, same dispatch as section 4) - CHROME
a.call-to-action+GenericModal— optional "Watch intro video" trigger, only rendered ifvideois set - CHROME
HeroMetadata— project-files link / estimated time / Xcode requirement chips
- CHROME
- SECTION
div.body— articleBody section, rendered viaArticle/Body.vue→Article/BodyContent.vue- CHROME
article.body-content—BodyContent.vueroot; iterates the section'scontentarray of layout items- CHROME
div.full-width.layout— akind: "fullWidth"layout item (no dedicated kind page; layout-only wrapper around plain block content), rendered byArticle/Layouts/FullWidth.vue - CHROME
div.content-and-media.layout— a contentAndMedia layout item, rendered byArticle/Layouts/ContentAndMedia.vue
- CHROME
- CHROME
- SECTION
LinkableSection.assessments-wrapper— assessments section, rendered viaArticle/Assessments.vue→Tutorial/Assessments.vue(same shared component as the Tutorial project page)- CHROME
h2.title— localized "Check Your Understanding" banner - CHROME
AssessmentsProgress— progress indicator (index/total, stateful) - CHROME
Quiz— current question, rendered from oneassessments[]entry'stitle/content/choices- BLOCK question prose — content-shaped block array, dispatched through the same
ContentNode.vue
- BLOCK question prose — content-shaped block array, dispatched through the same
- CHROME
- SECTION
div.call-to-action— callToAction section, rendered viaArticle/CallToAction.vue→Tutorial/CallToAction.vue(same shared component as the Tutorial project page)
- SECTION
- CHROME
PortalTarget[name=modal-destination]— portal mount for nested modals (e.g. hero's video modal)
- CHROME
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 kind | Component | Kind reference |
|---|---|---|
hero | Article/Hero.vue → Tutorial/Hero.vue | section-hero.html |
articleBody | Article/Body.vue → Article/BodyContent.vue | section-articlebody.html |
callToAction | Article/CallToAction.vue → Tutorial/CallToAction.vue | section-calltoaction.html |
assessments | Article/Assessments.vue → Tutorial/Assessments.vue | section-assessments.html |
columns (articleBody layout item) | Article/Layouts/Columns.vue | no dedicated kind page (layout-only, not separately catalogued) |
contentAndMedia (articleBody layout item) | Article/Layouts/ContentAndMedia.vue | section-contentandmedia.html |
fullWidth (articleBody layout item) | Article/Layouts/FullWidth.vue | no dedicated kind page (layout-only, not separately catalogued) |
| block/inline content nested in any layout item | Article/ContentNode.vue → shared ContentNode.vue | see 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.
| Kind | Tier | Kind file |
|---|---|---|
| article (tutorial variant, this page's top-level node kind) | node | see node-article.html section 1 for the ambiguity note; no page documents the TutorialsPageRenderNode-flavored article top-level node in isolation |
| hero | section | section-hero.html |
| articleBody | section | section-articlebody.html |
| callToAction | section | section-calltoaction.html |
| assessments | section | section-assessments.html |
| contentAndMedia (articleBody layout item) | section | section-contentandmedia.html |
| columns (articleBody layout item) | section | none (uncatalogued) |
| fullWidth (articleBody layout item) | section | none (uncatalogued) |
| paragraph | block | block-paragraph.html |
| heading | block | block-heading.html |
| aside | block | block-aside.html |
| codeListing | block | block-codelisting.html |
| orderedList | block | block-orderedlist.html |
| unorderedList | block | block-unorderedlist.html |
| termList | block | block-termlist.html |
| table | block | block-table.html |
| row | block | block-row.html |
| small | block | block-small.html |
| tabNavigator | block | block-tabnavigator.html |
| links | block | block-links.html |
| video | block | block-video.html |
| thematicBreak | block | block-thematicbreak.html |
| endpointExample | block | block-endpointexample.html (REST-only content; reachable in principle through generic ContentNode dispatch, but not expected in ordinary tutorial-catalog articles) |
| dictionaryExample | block | block-dictionaryexample.html (same caveat as endpointExample) |
| text | inline | inline-text.html |
| codeVoice | inline | inline-codevoice.html |
| emphasis | inline | inline-emphasis.html |
| strong | inline | inline-strong.html |
| newTerm | inline | inline-newterm.html |
| inlineHead | inline | inline-inlinehead.html |
| image | inline | inline-image.html |
| reference | inline | inline-reference.html |
| superscript | inline | inline-superscript.html |
| subscript | inline | inline-subscript.html |
| strikethrough | inline | inline-strikethrough.html |
| topic (callToAction action, inline references) | reference | reference-topic.html |
| section (reference to an in-page @Section anchor) | reference | reference-section.html |
| link (callToAction action / inline reference to an external URL) | reference | reference-link.html |
| image (contentAndMedia/columns media, inline image resolution) | reference | reference-image.html |
| video (contentAndMedia/columns/hero media resolution) | reference | reference-video.html |
| download (hero projectFiles) | reference | reference-download.html |
| xcodeRequirement (hero xcodeRequirement) | reference | reference-xcoderequirement.html |
| file (codeListing content resolved via a file reference in some tutorial contexts) | reference | reference-file.html |
| unresolvable | reference | reference-unresolvable.html |