This is the multi-page printable view of this section. .
Docs
- 1: Introduction
- 1.1: Project Overview
- 1.2: Architecture
- 2: Get Started
- 2.1: Requirements
- 2.2: Installation
- 3: Tutorial
- 4: Reference
- 4.1: Configuration
- 4.2: Command Reference
The documentation follows four familiar paths: understand the project, get it running, learn by doing, then consult the reference.
1 - Introduction
Start here when the project is new to you.
1.1 - Project Overview
Replace this page with the shortest useful explanation of your project.
The problem
Describe the problem in the reader’s language. Avoid implementation details until the reader understands why the project matters.
The outcome
Explain what a successful user can do after adopting the project.
A strong overview helps readers decide whether to continue in less than two minutes.
1.2 - Architecture
Document the few components a contributor must understand before making a change.
System map
| Part | Responsibility |
|---|---|
| Interface | Accepts user input and presents results |
| Core | Applies the project’s rules |
| Adapters | Connect external systems |
Boundaries
Name what the project deliberately does not own. Clear boundaries prevent documentation from promising more than the software provides.
2 - Get Started
Move from a clean machine to a working local result.
2.1 - Requirements
Keep prerequisites short, exact, and testable.
Tools
- A supported operating system.
- Git for retrieving the source.
- The runtime version required by your project.
Verify
Give readers one command per prerequisite:
Replace the placeholder command with your own before publishing.
2.2 - Installation
Show the shortest supported installation path first.
Install
Confirm the result
Tell readers exactly what success looks like: a URL to open, a message to see, or a command whose exit status is zero.
Replace every uppercase placeholder before publishing your project documentation.
3 - Tutorial
Follow an end-to-end task instead of reading isolated facts.
3.1 - Make Your First Change
This sample tutorial models a complete task: prepare, change, verify, and review.
Start from a known state
Change one thing
Edit a visible string or a small configuration value. Keep the first task narrow enough that its result is obvious.
Verify
Run the project’s smallest relevant check, then open the changed surface and inspect it yourself.
3.2 - Add a Documentation Page
In OINK, the content tree is the documentation sidebar. A new Markdown file becomes a new page.
Create the file
Save it as content/docs/reference/new-capability.md.
Add translations
Create new-capability.zh.md and new-capability.fr.md beside it. Keep explicit heading IDs aligned across languages.
Preview
Run hugo server, open the new page, and use the language switcher to inspect every translation.
4 - Reference
Use this section when you already know what you need to find.
4.1 - Configuration
Replace this small table with the public configuration surface of your project.
| Key | Type | Default | Meaning |
|---|---|---|---|
listen | string | 127.0.0.1:8080 | Address used by the local server |
log_level | string | info | Minimum emitted log level |
read_only | boolean | false | Disable operations that change state |
Example
Document validation and precedence beside the keys, not in a separate hidden guide.
4.2 - Command Reference
project start
Starts the local service.
project check
Validates configuration without starting the service. Exit status 0 means valid; any non-zero status means the configuration must not be deployed.
Replace these placeholders with commands copied from your real CLI help output.