Tutorial template
Use this template for learning-oriented documentation that guides users through a complete workflow to build understanding.
When to use this template
Use a tutorial when users:
- Are learning a new concept or feature
- Need to understand a complete workflow
- Want hands-on practice
- May not know what they don’t know yet
Examples:
- Create your first Doc Detective test
- Build a complete test suite
- Test a documentation site end-to-end
- Set up automated testing in CI/CD
Template
Copy and adapt this template for your tutorial:
Writing tips
Make it safe to learn
Tutorials are for learning, not reference:
✅ Do:
- Explain concepts before showing code
- Provide context for why things work
- Encourage experimentation
- Make failure safe and instructive
⛔ Don’t:
- Assume prior knowledge
- Skip explanations for brevity
- Punish mistakes
- Jump to advanced topics too quickly
Build progressively
Each step should build on previous ones:
✅ Good progression:
- Create a basic test with one action
- Add a second action to create a flow
- Add error handling
- Organize into a test suite
⛔ Poor progression:
- Create a basic test
- Deploy to production (too big a jump)
Explain the why
Users should understand not just how but why:
✅ Good:
Use the
findaction to verify the element exists before interacting with it. This makes tests more reliable by waiting for elements to load.
⛔ Insufficient:
Use the
findaction.
Use a friendly tone
Tutorials should be encouraging:
✅ Good:
You’ve created your first test. Let’s make it more useful by adding another action.
⛔ Too formal:
The test has been created. Proceed to add additional actions.
Show the outcome
After each major step, show what users should see:
✅ Good:
You should now see output like this:
This confirms your test ran successfully.
⛔ Missing:
Run the test.
Test your tutorial
Before submitting:
- Follow the tutorial yourself from scratch
- Have someone unfamiliar with the topic try it
- Note where they get stuck or confused
- Revise based on feedback
Example tutorial
Here’s a complete example:
Checklist before submitting
- States what users will learn
- Lists what users will build
- Prerequisites and time estimate included
- Steps build progressively
- Concepts are explained before code
- Code examples are complete and tested
- Outcome is shown after each major step
- Troubleshooting addresses common issues
- “What you learned” section recaps key points
- Next steps suggest logical progression
Related templates
- How-To: For task-oriented guides
- Troubleshooting: For problem-solution documentation
- Reference: For technical specifications
- Feature: For documenting new features