Technische Documentatie Stijlen
Perfecte instellingen voor code en API-documentatie
Overzicht
Technische documentatie heeft unieke eisen: duidelijke codeblokpresentatie, syntaxiskleuring en monospace-lettertypen die code onderscheiden van proza.
Velvet MD blinkt uit in het weergeven van README-bestanden, API-documentatie en tutorials met veel code.
Voorbeeld Technische Documentatie
Bekijk hoe het sjabloon Terminal een installatiehandleiding weergeeft:
# Installation Guide
## Prerequisites
- Node.js 18+
- npm or yarn
## Quick Start
```bash
npm install @mylib/core
```
## Basic Usage
```javascript
import { Client } from '@mylib/core';
const client = new Client({
apiKey: process.env.API_KEY
});
const result = await client.query('data');
console.log(result);
```
> **Note:** Always use environment variables for API keys.
Installation Guide
Prerequisites
- Node.js 18+
- npm or yarn
Quick Start
npm install @mylib/core
Basic Usage
import { Client } from '@mylib/core';
const client = new Client({
apiKey: process.env.API_KEY
});
const result = await client.query('data');
console.log(result);
Note: Always use environment variables for API keys.
Waarom het er Technisch Uitziet
Het sjabloon Terminal creëert een ontwikkelaarsvriendelijke uitstraling door specifieke ontwerpkeuzes:
- Monospace-lettertypen — Code wordt weergegeven met een consistente tekenbreedte voor gemakkelijk lezen
- Syntaxiskleuring — Sleutelwoorden, strings en commentaar zijn kleurgecodeerd voor snel scannen
- Donkere achtergrond — Past bij de terminal/IDE-omgeving die ontwikkelaars kennen
- Compacte spatiëring — Er past meer inhoud op het scherm, waardoor u minder hoeft te scrollen
Aanbevolen Sjablonen
Deze sjablonen zijn geoptimaliseerd voor technische inhoud:
syntax highlight.Markdown-tips voor Documentatie
Deze markdown-functies zijn essentieel voor technisch schrijven:
Voeg de taalnaam toe voor syntaxiskleuring. Ondersteunt meer dan 100 talen.
```javascript
const config = { debug: true };
```
Zet variabelenamen, functies of commando's tussen backticks voor nadruk.
Run `npm install` to install dependencies.
Gebruik blokcitaten met vetgedrukte labels voor waarschuwingen, opmerkingen en tips.
> **Warning:** This action is irreversible. > **Note:** See the API reference for details.
Documenteer API-parameters met vetgedrukte namen en inline code voor types.
**Parameters:** - `apiKey` (string) - Your API key - `timeout` (number) - Request timeout in ms
Codeblokfuncties
Velvet MD biedt uitstekende codepresentatie:
- Automatische syntaxiskleuring voor meer dan 100 talen
- Instelbaar codelettertype (Fira Code, JetBrains Mono, etc.)
- Optie voor afgeronde of scherpe codeblokhoeken
JavaScript, TypeScript, Python, Bash, JSON, HTML, CSS, SQL, Go, Rust, Java, C#, PHP, Ruby, Swift, Kotlin, and more.
Documentatie Exporteren
Kies op basis van hoe de documentatie wordt gebruikt:
- HTML — Het beste voor hosting op websites of intranetten
- DOCX — Behoudt syntaxiskleuringskleuren in Word
Klaar om uw Documentatie te Stijlen?
Begin met het sjabloon Terminal voor een ontwikkelaarsvriendelijke uitstraling.
Terminal-sjabloon Proberen