Renders the sections of a schema (queries, mutations, objects, enums, ...) as nested lists of markdown lines.
GraphqlMarkdown.SinglePage and GraphqlMarkdown.MultiPage produce the
same sections and only differ in how they are laid out, which a
GraphqlMarkdown.Page.Layout captures: the heading level of a section and
the way a type reference becomes a link.
Summary
Functions
Renders one section: its heading followed by one entry per operation or
type, or None when the schema has nothing in that section.
Section names, in the order they are rendered.
Types
Functions
@spec section(String.t(), GraphqlMarkdown.Schema.t(), GraphqlMarkdown.Page.Layout.t()) :: lines()
Renders one section: its heading followed by one entry per operation or
type, or None when the schema has nothing in that section.
@spec sections() :: [String.t()]
Section names, in the order they are rendered.