The four kinds of documentation in Diátaxis, each checked against its job: tutorials that walk, how-to guides that reach a goal, reference that describes, explanation that answers why.
Add it to your .vale.ini, then run vale sync.
Packages = Diataxis
[*.md]
BasedOnStyles = Vale, Diataxis The name installs the latest release each time vale sync runs. To stay on v0.1.0, the release this page describes, give its URL instead:
Packages = https://github.com/jdkato/diataxis/releases/download/v0.1.0/Diataxis.zip Reference provides examples. There is no code block on this page.
Tell the learner what they will see at some point: 'You will see ...', 'Notice that ...'.
'%s' opens an explanation. Keep it to the step; link to the explanation instead.
'%s' opens an explanation. Keep the guide to the steps; link to the explanation.
'%s' softens an instruction. Write the step as a command.
'%s' is an instruction. Explanation discusses; put the steps in a how-to guide.
'%s' instructs or advises. Reference describes; put the guidance in a how-to guide.
Open by saying what the learner will build or be able to do by the end.
Open by saying what the guide shows the reader how to do.
'%s' is an opinion. Reference states what is.
'%s' offers a choice. A tutorial takes one path; alternatives belong in a how-to guide.
%d tables. Explanation gives the shape; the full listing is reference, so link to it.
%d table rows. Refer to the reference for the full list of options rather than carrying it here.
A tutorial walks the learner through numbered steps; there is no numbered list here.
A how-to guide is a sequence of steps; there is no numbered list here.
'%s' is teaching. A how-to guide assumes the reader knows the basics; a tutorial teaches them.
Name the guide for its goal: 'How to ...' or a verb phrase such as 'Deploying to ...'.
'%s' narrates. Reference states; a tutorial walks.
A tutorial says 'we': the tutor is beside the learner. Nothing here does.
Explanation answers why. Nothing here says because, the reason, or in order to.