Documentation Standards
This guide outlines the standards and best practices for DevoxxGenie documentation to ensure consistency, clarity, and discoverability of our content.
Metadata Requirements
Every documentation page must include proper front matter metadata at the top of the Markdown file:
---
sidebar_position: 2
title: Page Title - DevoxxGenie Documentation
description: A concise 1-2 sentence description of what this page covers (120-160 characters ideal).
keywords: [devoxxgenie, intellij plugin, key1, key2, key3]
image: /img/devoxxgenie-social-card.jpg
---
Metadata Fields Explained
- sidebar_position: Controls the order of pages in the sidebar navigation
- title: Page title that appears in browser tabs and search results (include "DevoxxGenie" for SEO)
- description: A concise summary that appears in search results (120-160 characters is ideal)
- keywords: Relevant terms for search engines, in order of importance
- image: Social media sharing image (consistent across the site)
Document Structure
Headings
- Use a single
# Headingat the top of each page (matches the title) - Structure content with
## Second-leveland### Third-levelheadings - Maintain a logical hierarchy (don't skip levels)
- Keep headings concise and descriptive
Content Guidelines
- Start with a brief introduction explaining the purpose of the page
- Use short paragraphs (3-5 sentences max)
- Include code examples where appropriate
- Use bulleted lists for features, steps, or options
- Use numbered lists for sequential procedures
- Include relevant screenshots with descriptive alt text
Writing Style
- Use clear, concise language
- Address the reader directly ("you" instead of "the user")
- Use present tense ("Click the button" not "You should click the button")
- Be consistent with terminology (e.g., "LLM" vs "language model")
- Spell out acronyms on first use (e.g., "Large Language Model (LLM)")
- Use sentence case for headings (capitalize first word and proper nouns only)
Code Examples
- Use syntax highlighting for code blocks:
public class Example {// Code here}
- Provide explanations before or after code blocks
- Keep examples simple and focused
- Include comments for complex sections
Images
- Use descriptive filenames (e.g.,
git-diff-viewer.pngnotimage1.png) - Provide descriptive alt text for accessibility
- Optimize images for web (compression, appropriate dimensions)
- Use consistent styling for screenshots (size, annotations)
- Place in the
/static/img/directory
Links
- Use descriptive link text ("See Installation Guide" not "Click here")
- Check for broken links before committing changes
- Use relative paths for internal links
- Specify whether external links open in a new tab
Maintaining Documentation
- Review existing documentation regularly
- Update content to reflect the latest features
- Fix broken links and outdated information
- Run the metadata update script periodically:
npm run update-metadata
Automation Tools
We provide a script to help maintain consistent metadata across documentation:
- The
scripts/update-metadata.jscan automatically update front matter - Run using
npm run update-metadata - See
scripts/README.mdfor more details
SEO Best Practices
- Include the term "DevoxxGenie" in titles and headings
- Use descriptive URLs (slugs) that include key terms
- Keep descriptions focused on user value
- Include relevant keywords naturally in content
- Use headings to structure content for readability
By following these standards, we ensure the DevoxxGenie documentation remains high-quality, consistent, and useful for our users.