Wagtail documentation is written in four modes of information delivery. Each type of information delivery has a purpose and targets a specific audience.
We are following Daniele Procida's Diátaxis documentation framework.
(choose_a_writing_mode)=
Each page of the Wagtail documentation should be written in a single mode of information delivery. Single pages with mixed modes are harder to understand. If you have documents that mix the types of information delivery, it’s best to split them up. Add links to the first section of each document to cross-reference other documents on the same topic.
Writing documentation in a specific mode will help our users to understand and quickly find what they are looking for.
(doc_mode_tutorial)=
Tutorials are designed to be learning-oriented resources that guide newcomers through a specific topic. To help effective learning, tutorials should provide examples to illustrate the subjects they cover.
Tutorials may not necessarily follow best practices. They are designed to make it easier to get started. A tutorial is concrete and particular. It must be repeatable, instil confidence, and should result in success, every time, for every learner.
(doc_mode_how_to_guide)=
A guide offers advice on how best to achieve a given task. How-to guides are task-oriented with a clear goal or objective.
(doc_mode_reference)=
Reference material is information-oriented. A reference is well-structured and allows the reader to find information about a specific topic. They should be short and to the point. Boring is fine! Use an imperative voice. For example: “Inherit from the Page model”.
Most references will be auto-generated based on doc-strings in the Python code.
(doc_mode_explanation)=
Explanations are understanding-oriented. They are high-level and offer context to concepts and design decisions. There is little or no code involved in explanations, which are used to deepen the theoretical understanding of a practical draft. Explanations are used to establish connections and may require some prior knowledge of the principles being explored.