Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 14, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 14, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 14, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 14, 2025

      I test a lot of AI coding tools, and this stunning new OpenAI release just saved me days of work

      May 14, 2025

      How to use your Android phone as a webcam when your laptop’s default won’t cut it

      May 14, 2025

      The 5 most customizable Linux desktop environments – when you want it your way

      May 14, 2025

      Gen AI use at work saps our motivation even as it boosts productivity, new research shows

      May 14, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025
      Recent

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025

      Perficient’s “What If? So What?” Podcast Wins Gold at the 2025 Hermes Creative Awards

      May 14, 2025

      PIM for Azure Resources

      May 14, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025
      Recent

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025

      You can now share an app/browser window with Copilot Vision to help you with different tasks

      May 14, 2025

      Microsoft will gradually retire SharePoint Alerts over the next two years

      May 14, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»News & Updates»Documentation done right: A developer’s guide

    Documentation done right: A developer’s guide

    May 14, 2025

    With all the work involved in creating and maintaining a project, sometimes writing documentation can slip through the cracks. However, good docs are a huge asset to any project. Consider the benefits:

    • Better collaboration: Clear, consistent documentation ensures everyone’s on the same page, from your immediate team to outside stakeholders. Additionally, docs promote independent problem solving, saving core contributors the time and effort of answering every question.
    • Smoother onboarding: By providing ways to get started, explaining core concepts, and including tutorial-style content, good documentation allows new team members to ramp up quickly.
    • Increased adoption: The easier it is to understand, set up, and run your project, the more likely someone will use it.

    With these benefits in mind, let’s take a look at some important principles of documentation, then dive into how you can quickly create effective docs for your project.

    Key tenets of documentation

    There are three key principles you should follow as you document your project.

    Key tenets of documentation

    Use plain language that’s easy to understand. The goal is to make your documentation as accessible as possible. A good guideline is to ask yourself if there are any acronyms or technical terms in your documentation that some folks in your target audience won’t understand. If that’s the case, either swap them for simpler language, or make sure they’re defined in your document.

    Keep it concise

    Document only necessary information. Trying to cover every possible edge case will overwhelm your readers. Instead, write docs that help the vast majority of readers get started, understand core concepts, and use your project.

    Additionally, keep each document focused on a particular topic or task. If you find yourself including information that isn’t strictly necessary, move it into separate, smaller documents and link to them when it’s helpful.

    Keep it structured

    Consider the structure of each document as you write it to make sure it is easy to scan and understand:

    • Put the most important information first to help readers quickly understand if a document is relevant to them.
    • Use headings and a table of contents to tell your readers where to find specific information. We suggest using documentation templates with common headings to quickly and consistently create structured content.
    • Use text highlighting like boldface and formatting elements like bulleted lists to help readers scan content. Aim for 10% or less text highlighting to make sure emphasized text stands out.
    • Be consistent with your styling. For example, if you put important terminology in bold in one document, do the same in your other content.

    Organizing your documentation

    Just as there are principles to follow when writing individual documents, you should also follow a framework for organizing documents in your repo. 

    There are many approaches to organizing documentation in your repo, but one that we’ve used for several projects and recommend is the Diátaxis framework. This is a systematic approach to organizing all the documents relevant to your project. 

    Applying a systematic approach to documenting your repositories can make it easier for users to know where to go to find the information that they need. This reduces frustration and gets folks contributing to your project faster. 

    Diátaxis divides documents based on their purpose into four categories: 

    • Tutorials: Learning-oriented documents
    • How-to guides: Goal-oriented instructions for specific tasks
    • Explanation: Discussions providing understanding of the project
    • Reference: Technical specifications and information

    Each document in your repository should fit into one of these categories. This helps users quickly find the appropriate resource for their current situation, whether they need to learn a new concept, solve a specific problem, understand underlying principles, or look up technical details.

    This can also be a helpful guide to identify which documentation your repository is missing. Is there a tool your repository uses that doesn’t have a reference document? Are there enough tutorials for contributors to get started with your repository? Are there how-to guides to explain some of the common tasks that need to be accomplished within your repository? 

    Organizing your documentation according to this framework helps ensure you’re taking a holistic approach to building and maintaining key content for your project.

    Documenting your project

    Want to test out this framework and guidelines for yourself? Check out this example repository with a docs folder structure and documentation templates that you can copy into your own project.

    The post Documentation done right: A developer’s guide appeared first on The GitHub Blog.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleBlackbody is a thermogram viewer
    Next Article CVE-2025-47436 – Apache ORC Heap-based Buffer Overflow Vulnerability

    Related Posts

    News & Updates

    I test a lot of AI coding tools, and this stunning new OpenAI release just saved me days of work

    May 14, 2025
    News & Updates

    How to use your Android phone as a webcam when your laptop’s default won’t cut it

    May 14, 2025
    Leave A Reply Cancel Reply

    Hostinger

    Continue Reading

    How I Speed Up My Old Laptop Without Upgrading: A Complete Guide

    Artificial Intelligence

    Prime Day 2024: Amazon finally confirms a start date, but some early deals are already live — Here’s everything you need to know

    Development

    The Minecraft movie makes an appearance at Minecraft Live with exclusive footage

    News & Updates

    Permanent Record Deletion with Laravel’s forceDestroy

    Development

    Highlights

    Appium, clicks on buttons sometimes has a very long delay (on some views)

    June 7, 2024

    While testing by Appium (using Python), it clicks on some buttons with a very long delay on some views in my Android app.
    The method I am using:
    def click_element(self, element, time=wait_time):
    WebDriverWait(self.driver, time).until(
    EC.presence_of_element_located(element)
    )
    WebDriverWait(self.driver, time).until(
    EC.element_to_be_clickable(element)
    )
    self.driver.find_element(*element).click()

    Does anyone have any idea?

    Microsoft just fixed this Windows 11 bug, but I bet you wish it hadn’t

    March 19, 2025

    Understanding the 27 Unique Challenges in Large Language Model Development: An Empirical Study of Over 29,000 Developer Forum Posts and 54% Unresolved Issues

    August 19, 2024

    Microsoft Launches Dragon Copilot – A dedicated AI voice assistant for the Healthcare Industry

    March 20, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.