Documentation Style Guide
This style guide outlines the standards and conventions for writing documentation for the Lemline project. Following these guidelines ensures that our documentation remains consistent, clear, and accessible to all users.
Table of Contents
Documentation Principles
Our documentation follows these core principles:
User-Centered - Focus on what users need to know, not what's easy to document
Clear and Concise - Use simple language and avoid unnecessary words
Comprehensive - Cover all features and use cases, but without overwhelming detail
Maintainable - Structure documentation for easy updates
Accessible - Ensure documentation is accessible to users with different abilities
Example-Rich - Provide practical, realistic examples
Documentation Structure
Lemline documentation follows the Diátaxis framework, organizing content into four types:
Tutorials - Learning-oriented lessons that guide users through a series of steps
How-to Guides - Problem-oriented guides that show how to solve specific problems
Reference - Information-oriented technical descriptions of the system
Explanation - Understanding-oriented discussions of concepts
For more details on this structure, see our Diátaxis Guide.
File Organization
Documentation files should follow this organization:
File names should use kebab-case:
file-name.mdUse a prefix to indicate the document type:
lemline-tutorial-for tutorialslemline-howto-for how-to guideslemline-ref-for reference documentationlemline-explain-for explanationslemline-example-for examples
Supporting files (images, etc.) should use the same naming conventions
Document Structure
Each document should include:
Title - Clear, descriptive H1 title
Introduction - Brief overview of what the document covers
Main Content - Organized with clear headings
Conclusion - Summary of key points (when appropriate)
Related Resources - Links to related documentation
Writing Style
Voice and Tone
Use a friendly, professional tone
Write in a conversational style, but avoid slang
Address the reader directly using "you"
Use active voice instead of passive voice
Be positive and supportive, not condescending
Language Guidelines
Use simple, clear language
Avoid jargon when possible; when necessary, explain it
Use consistent terminology throughout all documentation
Write in present tense when possible
Use gender-neutral language
Examples:
Instead of: "The configuration file must be created by the user."
Write: "Create a configuration file."
Instead of: "It is recommended that you back up your data."
Write: "Back up your data."
Formatting and Syntax
Markdown Usage
Lemline documentation uses Markdown with these conventions:
Headers
Use ATX-style headers with a space after the hash signs:
## HeadingUse sentence case for headings: "Creating a new workflow" not "Creating a New Workflow"
Maintain hierarchical structure (H1 > H2 > H3)
Don't skip levels (e.g., don't go from H2 to H4)
Lists
Use unordered lists for items without sequence
Use ordered lists for sequential steps
Indent sublists with 2 spaces
End each list item with a period if it's a complete sentence
Text Formatting
Use bold for emphasis:
**bold**Use italics for definitions or to introduce new terms:
*italics*Use
code formattingfor code, file names, and technical terms:`code`Use blockquotes for notes or quotes:
> Note: This is important.
Links
Use descriptive link text:
[Creating a workflow](workflow-creation.md)instead of[click here](workflow-creation.md)For external links, indicate when they open outside the documentation
Use relative links for internal documentation
Tables
Use tables for structured data
Include header row and column separators
Align columns for readability
Code Examples
Code Blocks
Always specify the language for syntax highlighting
Use fenced code blocks with three backticks
Keep examples concise and focused
Include comments where necessary
Include workflow examples from a complete YAML or JSON file under snippets/workflows/ so the pull request checks can validate the same definition Writerside displays.
Command Line Examples
Include the command prompt symbol (
$for regular user,#for root)Separate command from output
Use backslashes for line continuation
Example Best Practices
Provide complete, working examples
Use realistic data and scenarios
Show both simple cases and advanced usage
Include error handling in examples
Test all examples to ensure they work as documented
Images and Diagrams
Image Guidelines
Use images to clarify complex concepts, not to replace text
Include alt text for all images
Keep images at reasonable dimensions (max width 800px)
Use SVG for diagrams when possible
Use consistent styling across all diagrams
Image Formatting
Diagram Types
Workflow Diagrams - Show the flow of execution
Architecture Diagrams - Show system components and their relationships
Concept Diagrams - Illustrate abstract concepts
Screenshots - Show UI elements (when applicable)
Terminology and Glossary
Consistent Terminology
Maintain consistency with these key terms:
Workflow - A complete definition of a process
Instance - A single execution of a workflow
Node - An individual step within a workflow
Token - A marker representing execution position
Task - A unit of work within a workflow
Abbreviations and Acronyms
Define abbreviations and acronyms on first use
Include the full term followed by the abbreviation in parentheses
For commonly known abbreviations (HTTP, API), definition is not necessary
Example: "The JavaScript Object Notation (JSON) format is used for configuration."
Documentation Testing
Review Checklist
Before submitting documentation, check for:
Technical accuracy - All information is correct
Completeness - All necessary information is included
Clarity - Information is easy to understand
Consistency - Style and terminology are consistent
Links - All links work correctly
Code examples - All code examples work as expected
Spelling and grammar - No errors
Testing Process
Run the documentation locally with:
./gradlew :lemline-docs:runDocSiteReview the generated site at http://localhost:8080
Verify all links work correctly
Test all code examples to ensure they function as expected
Localization Guidelines
Writing for Translation
Use simple sentence structures
Avoid idioms, colloquialisms, and culture-specific references
Provide context for translators where necessary
Keep sentences relatively short (< 25 words when possible)
Localized Examples
For localized documentation, ensure examples work in the target language
Consider cultural differences when creating examples
Avoid culturally specific references
SEO Considerations
To improve documentation discoverability:
Use descriptive, keyword-rich titles
Include relevant keywords naturally in the content
Create descriptive URLs
Use semantic HTML elements (headings, lists, etc.)
Include descriptive alt text for images
Create a comprehensive table of contents
Before You Submit
Before submitting documentation, ask yourself:
Would this make sense to someone new to Lemline?
Have I provided all necessary context?
Are there clear examples?
Have I eliminated all unnecessary words and explanations?
Is the formatting consistent with our guidelines?
Have I tested all examples and verified all links?
Additional Resources
For more information on Lemline documentation, see: