Skip Navigation
EnumerationEnumeration

TutorialDocument

The names shared by the generated tutorial pages, their stylesheets and tests.

enum TutorialDocument

Overview

Tutorial pages and the tutorials overview page reproduce the markup of swift-docc-render’s tutorial components, so that the same class names select the same parts in both renderers. The interactive parts of a tutorial (the step that is in focus, the code or media shown next to the steps, the quiz and the menus) work without JavaScript: they are driven by form controls, popovers and scroll driven animations that the stylesheet refers to by the names defined here.

This type is the single authoritative home of the names that the Swift code and the tests must agree on. The stylesheets in Stylesheets/7x-*.css use the same literal names.

Topics