Writing Documentation
This guide provides comprehensive guidelines for writing high-quality documentation for BlockTavern. Following these standards ensures consistency, readability, and maintainability across all documentation.
Writing Principles
1. Clarity and Simplicity
- Use clear, concise language
- Avoid jargon and technical terms unless necessary
- Explain complex concepts in simple terms
- Use active voice whenever possible
2. User-Centered Approach
- Write for your audience - consider their knowledge level
- Focus on user goals and common tasks
- Provide practical examples and real-world scenarios
- Anticipate user questions and address them proactively
3. Consistency
- Follow established style guidelines
- Use consistent terminology throughout all documents
- Maintain uniform formatting and structure
- Apply consistent naming conventions
Document Structure
Front Matter
Every Markdown file must include proper front matter:
---
title: Page Title
description: Brief description of the page content
order: 1
---
Heading Hierarchy
Use proper heading structure:
# Page Title (H1) - Only one per page
## Main Sections (H2)
### Subsections (H3)
#### Sub-subsections (H4)
Guidelines:
- Only one H1 per page (usually the title)
- Don't skip heading levels
- Use descriptive, action-oriented headings
- Keep headings concise but informative
Content Organization
- Introduction: Brief overview of the topic
- Prerequisites: What users need before starting
- Step-by-step instructions: Clear, numbered steps
- Examples: Practical demonstrations
- Troubleshooting: Common issues and solutions
- Next steps: What to do after completing the task
Writing Style Guide
Language and Tone
- Tone: Friendly, helpful, and professional
- Voice: Active voice preferred
- Tense: Present tense for instructions
- Person: Second person ("you") for instructions
Examples:
✅ Good: "Click the Save button to save your changes."
❌ Avoid: "The Save button can be clicked to save changes."
✅ Good: "You can configure the server settings..."
❌ Avoid: "One can configure the server settings..."
Formatting Guidelines
Code and Commands
Inline code: Use backticks for short code snippets
Use the `warp` command to teleport.
Code blocks: Use fenced code blocks with language specification
\`\`\`bash
npm install
npm run dev
\`\`\`
Command examples:
\`\`\`bash
# Install dependencies
npm install
# Start development server
npm run dev
\`\`\`
Lists and Steps
Numbered lists for sequential steps:
1. First step
2. Second step
3. Third step
Bulleted lists for non-sequential items:
- Feature A
- Feature B
- Feature C
Emphasis and Highlighting
- Bold for important terms and UI elements
- Italic for emphasis
Code
for technical terms and values
Click the **Save** button in the *Settings* panel.
Set the `debug` parameter to `true`.
Links and References
Internal Links
Use relative paths for internal documentation links:
[Installation Guide](/en-US/InstallationTutorial/)
[FAQ Section](/en-US/FAQ/)
External Links
Include descriptive text and open in new tabs when appropriate:
[Official Minecraft Website](https://minecraft.net)
Image References

Content Types
Tutorials
Structure:
- Overview: What the tutorial covers
- Prerequisites: Required knowledge/tools
- Steps: Detailed, numbered instructions
- Verification: How to confirm success
- Next steps: Related tutorials or advanced topics
Example:
# Installing HMCL Launcher
This tutorial guides you through installing and configuring the HMCL launcher for BlockTavern.
## Prerequisites
- Java 17 or higher installed
- Stable internet connection
## Steps
1. **Download HMCL**
Visit the [official HMCL website](https://hmcl.huangyuhui.net/) and download the latest version.
2. **Install the launcher**
Run the downloaded installer and follow the setup wizard.
...
Reference Documentation
Structure:
- Overview: Brief description
- Syntax/Usage: How to use
- Parameters: Available options
- Examples: Practical usage examples
- Related: Links to related topics
FAQ Entries
Structure:
- Question: Clear, specific question
- Answer: Comprehensive solution
- Additional resources: Related links if needed
VitePress Features
Custom Containers
Use VitePress containers for special content:
::: tip
This is a helpful tip for users.
:::
::: warning
This is important information to be aware of.
:::
::: danger
This is critical information that could cause issues.
:::
::: info
This is additional information that might be useful.
:::
Code Groups
For showing multiple code examples:
::: code-group
\`\`\`bash [npm]
npm install
\`\`\`
\`\`\`bash [pnpm]
pnpm install
\`\`\`
\`\`\`bash [yarn]
yarn install
\`\`\`
:::
Custom Components
Use available custom components:
<Contributors />
<GitHistoryInformation />
Quality Checklist
Before publishing documentation, verify:
Content Quality
- [ ] Information is accurate and up-to-date
- [ ] Instructions are clear and complete
- [ ] Examples work as described
- [ ] All links function correctly
- [ ] Images display properly
Writing Quality
- [ ] Grammar and spelling are correct
- [ ] Tone is consistent and appropriate
- [ ] Technical terms are explained
- [ ] Content flows logically
Technical Quality
- [ ] Front matter is properly formatted
- [ ] Heading hierarchy is correct
- [ ] Code blocks have proper syntax highlighting
- [ ] Markdown syntax is valid
Accessibility
- [ ] Images have descriptive alt text
- [ ] Headings create logical document outline
- [ ] Links have descriptive text
- [ ] Color is not the only way to convey information
Common Mistakes to Avoid
Content Issues
- Assuming prior knowledge without explanation
- Skipping error handling and troubleshooting
- Using outdated information or screenshots
- Providing incomplete instructions
Formatting Issues
- Inconsistent heading levels
- Missing code language specification
- Broken internal links
- Poor image quality or missing alt text
Style Issues
- Inconsistent terminology
- Passive voice overuse
- Overly complex sentences
- Lack of examples
Review Process
Self-Review
- Read aloud to check flow and clarity
- Test all instructions step-by-step
- Verify all links and references
- Check formatting in preview mode
Peer Review
- Content accuracy review by subject matter expert
- Editorial review for language and style
- User testing with target audience
- Technical review for implementation details
Maintenance
Regular Updates
- Review quarterly for accuracy
- Update screenshots when UI changes
- Refresh external links and verify they work
- Incorporate user feedback and questions
Version Control
- Use descriptive commit messages
- Track major changes in document history
- Maintain changelog for significant updates
- Tag releases for major documentation versions