Software Documentation Structure
We encourage software development teams to apply this documentation structure across all projects. This way the reader could learn it from a single software project and then quickly navigate through a familiar structure across the whole wiki. It also gives you a starting point to start writing documentation, and it makes it easier to maintain the wiki in general.
This structure is based on the Diataxis framework by Daniele Procida. As the author describes it:
The Diátaxis framework aims to solve the problem of structure in technical documentation. It adopts a systematic approach to understanding the needs of documentation users in their cycle of interaction with a product.
Diátaxis identifies four modes of documentation - tutorials, how-to guides, technical reference and explanation. It derives its structure from the relationship between them.
In Diátaxis, each of these modes (or types) answers to a different user need, fulfils a different purpose and requires a different approach to its creation.
The documentation should be split in the following folders: Getting Started, How Tos, Tutorials, Explanations, and Reference and the following files: Welcome, Troubleshooting, and Contribute. You do not have to use all of these sections.
The Welcome article is the first page of your project documentation. Tell the reader what your project is about and provide links to the GitHub repository and additional resources like roadmaps, educational materials, or research specifications.
The Getting Started folder should be the first section in your documentation. It should give the user a high-level overview of the project, required prior knowledge, prerequisites, and ideally a quick setup guide, or "hello world".
The Tutorials folder should contain articles which guide the user step by step through a series of how-tos with the relevant explanations to achieve a project or real world use case. Tutorials are learning-oriented.
The Troubleshooting file should contain instructions or links to where users can post questions, or create issues if necessary.
The Contribute file should encourage users to contribute to the project and contain directions for that.