README vs Wiki: What to Keep in Each (With a Docmost Example)
Learn what goes in a README and what belongs in a wiki for internal projects, with a README template and a sample set of Docmost wiki pages it links to.
TL;DR
- The README answers "what is this and how do I start it?" And the wiki answers everything after that.
- Use the 15-minute test: if a new teammate needs something in their first 15 minutes to get the project running, it goes in the README. If it can wait until later, it goes in the wiki.
- Write each fact in one place only. The README links to the wiki and never copies it.
- Below you'll find a README template for internal projects, plus a sample set of Docmost wiki pages that the README links to.
- A small script with one owner can skip the wiki.
Your project's README started as a few lines. Now it has setup steps, a diagram, a list of who to ask, and a section on why you picked that database. Meanwhile someone wrote half of it again in the wiki, and the two no longer agree.
Yes, "Keep the README short and put the long material in the wiki" is good advice, but it doesn't tell you which documentation goes where when a new hire is waiting.
This post gives you a one-page README for an internal project and the exact wiki pages it should point to, written out as a page tree (a list of pages, grouped by topic) you can copy into Docmost. It also gives you one rule that keeps the two in sync: each fact is written in one place only, and the README links to it instead of copying it.
What Is a README, and What Is a Wiki?
A README is a text file that tells people what a project is, what it can do, and how to use it. It's usually kept in the top folder of the project's code. Code hosts (websites that store your code) show it when you open the project, which is why it's the first thing most people read.
A wiki is a set of linked pages that a group writes and edits together in a web browser. It's where the longer material goes, like how the project works, why it was built that way, and what to do when something goes wrong. In Docmost, the pages are grouped into spaces, one for each team, project, or department.
README vs Wiki: The Short Answer
|
Topic |
README |
Wiki |
|
Length |
About one screen |
As long as the topic needs |
|
Job |
Say what the project is and how to start it |
Explain how it works, why, and how to keep it going day to day |
|
Who can edit |
Anyone who can change the project's files |
Anyone you give an editor role, including people who don't use Git (a free tool that tracks changes to code) |
|
How changes are reviewed |
Through a pull request (some tools call it a merge request), where teammates look over a proposed change before it's added |
Depends on the wiki. In Docmost, page history lets you look back at earlier versions and restore one |
|
Staying in sync with the code |
Easy, because it's stored with the code and can change in the same pull request |
Only if someone remembers to update it |
|
Finding things |
One page, searched with your browser |
Pages placed under other pages in a sidebar, plus search across spaces. Some wikis, including the paid edition of Docmost, also have AI search that understands what you mean even when you don't type the exact words |
|
Best for |
Getting the project running |
Everything a teammate needs to understand the project and keep it running |
The README wins two rows: review and staying in sync with the code. That's because the README is stored right next to the code. So if something changes whenever the code changes, like the start command, keep it in the README.
What Goes in the README
The README covers what a new teammate needs in their first 15 minutes:
- A one-line purpose
- The owner and chat channel
- How to start the project on your own computer
- How to run the tests
- The names of the settings it needs
- Links to the wiki
Everything else goes in the wiki.
The 15-Minute Test
Ask one question about everything you want to put in the README: does a new teammate need it in their first 15 minutes to get the project running? If yes, it goes in the README. If it can wait until later, it goes in the wiki.
The command that starts the project passes the test, because nobody can get going without it. The reasoning behind your choice of database doesn't pass, because nobody needs to know "the why" just to get started. That reasoning still matters, which is why it gets a page of its own in the wiki and a link from the README.
What to Leave Out
For a project that has a wiki, keep these out of the README, even if they only take a sentence or two right now:
- Design reasoning, like why you chose one tool over another
- Step-by-step setup for every operating system
- Steps for whoever is on call (the person ready to respond) when something goes wrong
- Onboarding checklists
- Anything that changes without the code changing, such as who to ask for access
All five grow over time, and a README that keeps growing is one nobody finishes reading.
What Goes in the Wiki
The wiki covers everything a teammate needs to understand the project and keep it running. The table below shows whether each kind of content belongs in the README, the wiki, or the project's code.
|
Content |
Where It Goes |
Why |
|
One-line purpose and owner |
README |
It's the first thing anyone reads |
|
Start command and test command |
README |
Needed in the first 15 minutes |
|
Setting names (no values) |
README |
Needed to start the project |
|
Setup in detail, by operating system |
Wiki |
Only some readers need each version |
|
How to get access and where the values are kept |
Wiki |
It changes without the code changing |
|
Architecture overview |
Wiki |
Needs diagrams and room to grow |
|
Why we chose X |
Wiki |
The reasoning gets long and gets revisited |
|
Runbook (written steps for fixing a known problem) and on-call steps |
Wiki |
Needs fast search when something goes wrong |
|
Onboarding checklist |
Wiki |
Often edited by people who don't use Git |
|
Changelog (a list of the notable changes in each version) |
In the project's code |
It changes with every release |
If you want a format for the "why we chose X" pages, see how to write a software design document.
A README Template for Internal Projects
Copy this into a new project and fill in the brackets. It's short enough to fit on one screen, which is the point.
[Project Name]
[One sentence: what it does and who uses it.]
Owner:[Team name] ([chat channel])
Status: [In production / In development / Retiring]
Run It Locally
1. [Install step, with the exact version]
2. [Get the code and set up]
3. [Start command]
Run the Tests
[One command.]
Settings
| Setting | What It Does | Where to Get the Value |
|---|---|---|
| [NAME] | [Short description] | [Where the team keeps it] |
Names only. Never put the values here.
Where to Go Next
- [Setup in detail]([wiki page link])
- [How it works]([wiki page link])
- [Why we built it this way]([wiki page link])
- [Runbook: what to do when something goes wrong]([wiki page link])
- [New to the team? Start here]([wiki page link])
Fill in the owner and chat channel first, because that's what someone looks for when something goes wrong with the project. In the settings table, write only the name of each setting, and say where the team keeps its value, like a password manager. But never paste the value itself.
The Wiki Page Tree the README Links To
Say the project is a service called Invoice Sync (an invented example). In Docmost, it gets one space, and the pages inside match the links in "Where to Go Next."
Each space is a section of the workspace and has its own permissions. Pages can be placed under other pages in the sidebar and dragged into order, so the tree below is what your team would see.
Invoice Sync (space)
├── Overview
├── Getting Started
│ ├── Local Setup in Detail
│ └── Access and Settings
├── Architecture
│ ├── System Overview
│ └── Data Flow
├── Decisions
│ └── Why We Chose [Technology]
├── Operations
│ ├── Runbook
│ ├── On-Call Notes
│ └── Release Process
└── Onboarding
└── First Week Checklist
Each link in the README opens one page in the tree:
|
README Link |
Wiki Page |
|
Setup in detail |
Getting Started > Local Setup in Detail |
|
How it works |
Architecture > System Overview |
|
Why we built it this way |
Decisions > Why We Chose [Technology] |
|
Runbook |
Operations > Runbook |
|
New to the team? |
Onboarding > First Week Checklist |
A page without a link in the README is still easy to find. You'll see it in the sidebar, and you can find it by typing words from the page into search.
To set up the space itself, see how to organize project documentation in Docmost and how to set up a project wiki. When the pages need to lead to each other, our guide on how to link wiki pages together will help you organize that.
How to Keep the README and Wiki in Sync
The README and the wiki go out of sync when the same fact is written in both places. We fix it with this rule: write each fact in one place only, and link to it from anywhere else it's needed. These four habits help too:
- Link, never copy: If the same information appears in both the README and the wiki, one of them will end up wrong, and you won't know which until someone follows the wrong one.
- Name an owner in the README and at the top of each wiki page: A page with a named owner has someone to ask when it's out of date.
- When a code change affects how to start or test the project, update the README in the same pull request (or merge request), so the reviewer sees both changes together.
- Add a "last checked" line on wiki pages that go out of date quickly, like the runbook, and put a recurring slot in your calendar to check them. Docmost doesn't send a reminder when a page is due for review, not even in the paid edition, which does have page verification (a way to confirm a page is still correct) with review dates.
Page history is your safety net if a page gets changed by mistake. Docmost keeps a version history for each page, so you can look back at earlier versions and restore one.
When Is a README Enough?
A small script, a single-purpose tool, or a project with one owner can skip the wiki. A README can cover everything those projects need.
Move something out of the README when you see one of these:
- A section is longer than one screen.
- A section only some readers need.
- The content changes without the code changing.
- People who don't use Git need to edit it.
Until then, leave it where it is. Moving content early gives you two places to keep up to date.
Why Use a Separate Wiki Instead of the One in Your Code Host?
Many code hosts come with a built-in wiki for each project. It's convenient and stays close to the code. By default, though, only people with write access to the project can edit it. Your plan can matter too, because some hosts limit wikis on private projects.
A separate wiki like Docmost gives your team a space for each project, with its own permissions. Search covers all the spaces you have access to, so one search finds a runbook from any project you can open. Someone with the "Can Edit" role in a space can update its pages, and they don't need access to your code to do it. If you're still choosing a tool, see the best documentation tools for engineering teams.
Frequently Asked Questions
- Do I Need Both a README and a Wiki?
Not for a small script. Use both once the README grows past one screen or other teams start depending on the project.
- How Long Should an Internal README Be?
About one screen. If a section gets longer, move it to the wiki and link to it from the README.
- What Is the Difference Between README.md, README.txt, and README.rst?
The ending tells you the format. A .md file uses Markdown, a simple way to format text with symbols, like # for a heading. A .txt file is plain text with no formatting. A .rst file uses reStructuredText, another formatting style, and you'll often see it in Python projects. Pick Markdown unless your team already uses another.
- Where Do People See a README?
A README is a file in the project's code. Code hosts show it when you open the project, so it's usually the first thing a new teammate reads.
- Can a README Replace Onboarding Docs?
No. A README gets a teammate started. The first-week checklist belongs in the wiki, with a link to it from the README.
- How Do I Link From a README to a Wiki Page?
Use the page's full address, group the links under one heading near the bottom, and name each link after the page it opens, like "Runbook: what to do when something goes wrong."
Set Up a Wiki Space for Your Next Project
Create one space for the project, copy the page tree above, and link each page from the README. When you're ready to try it in Docmost, get a free trial license or contact sales.