Writing documentation
How pages in this site are organized and written, and the components available in Markdown.
These docs are Markdown files in docs-site/content, rendered with Nuxt Content and Nuxt UI. Everything here can be written without touching Vue.
Where a page goes
Folders are the sidebar sections, and the number prefixes on folders and files set their order. URLs drop the prefixes: content/3.automations/05.branching.md is /automations/branching. Each folder's .navigation.yml sets the section title and icon. Only sections have icons.
Pick the section by what a reader is doing, not by when a feature was built:
| Kind | Purpose | Example |
|---|---|---|
| Tutorial | Takes a newcomer through a complete task, step by step | Your first workflow |
| Guide | Solves one practical problem, in 7.guides | Send Discord notifications |
| Concept | Explains how something works and why | Upload intake |
| Reference | Lists settings, inputs, outputs and limits precisely | Step reference |
Keep each page to one kind and link to the others instead of repeating them. Document only what's released; if something is experimental, say so on the page.
When a page moves, add its old URL to docs-site/redirects.ts, and update links to it from the app (docs(...) and AppDocsLink in frontend/, DocsPath in connection presets).
Frontmatter
---
title: Connections
description: Connect workflows to outside services such as webhooks and Discord, keep their secrets safe, and limit how much they're used.
navigation:
title: Overview
---
titleis the page heading, in sentence case. Don't repeat it as a#heading in the body.descriptionis one sentence shown under the title, in search results and in link previews. Wrap it in double quotes if it contains a colon followed by a space; otherwise YAML reads it as a nested object and the page shows[object Object].navigation.titleis optional: a shorter name for the sidebar, such as Overview for a section's index page.
Headings
Start at ##. Use ### below it, and avoid going deeper: the table of contents shows ## and ###. Headings become anchors (## Failure policies is #failure-policies), and the app and other pages link to them, so rename a heading only when you have to and update the links that use it.
Writing style
- Write for someone using Avenvail, in plain words and the second person. Name controls as they appear in the app, in bold: Settings › ShareX, Add connection.
- Say what the reader can do and what will happen, then how. Lead with the common case.
- Prefer short paragraphs, lists for options, and tables for settings with several attributes.
- Link the first mention of another feature to its page.
Callouts
Use a callout only for something the reader would regret missing, not for ordinary explanation.
::note
A restored file is private.
::
::tip
Use a library workflow when the upload should be available right away.
::
::important
An intake workflow must save the upload.
::
::warning
Revoking a link can't recall copies already downloaded.
::
Code
Fence code with its language. Add a filename in brackets when it helps, and use bash for commands, yaml for Compose files and dotenv for environment files.
```yaml [compose.yaml]
services:
avenvail:
image: ghcr.io/avenvail/avenvail:0.7
```
Every block gets a copy button. Long lines scroll inside the block.
Steps
For a tutorial, wrap its numbered sections in ::steps, with level set to the heading level the steps use:
::steps{level="2"}
## Create the workflow
…
## Publish it
…
::
Workflow diagrams
Show the shape of a workflow with ::workflow-diagram. Each step has a name, an optional summary and icon, and trigger: true for the first step. A step with branches splits; a branch without steps shows that nothing runs there.
::workflow-diagram
---
steps:
- name: File uploaded
trigger: true
- name: Condition
summary: Width is greater than 1920
icon: i-lucide-split
branches:
- label: "True"
steps:
- name: Add tags
summary: large
- label: "False"
---
::
- File uploaded (trigger)
- ConditionWidth is greater than 1920
- True
- Add tagslarge
- FalseNothing runs
- True
Screenshots
Put screenshots in docs-site/public/screenshots/ as a pair of WebP files, <name>-light.webp and <name>-dark.webp, and show them with ::screenshot. The page shows the one that matches the reader's color mode, and readers can open a larger view with the mouse or keyboard.
::screenshot{name="editor-condition" alt="The editor canvas with a Condition selected" caption="Select a step to edit its settings." width="1216" height="900"}
::
width and height are the image's size in CSS pixels (half its pixel size at 2× scale), so the page doesn't jump while it loads. For a single image without a dark version, use src="/screenshots/<file>" instead of name.
- Take them from a demo instance with sample files and connections, never your own library. Remove names, addresses, tokens and anything personal.
- Leave out the app's sidebar unless it's what you're explaining, and crop to the part that matters.
- Write
alttext that says what the image shows; usecaptionfor what to notice. - Keep files small: 2× scale, WebP, and under about 300 KB each.
Guides
Every guide follows the same outline, so readers know where to look. Copy an existing one, such as Name screenshots with AI, and keep these sections in this order:
| Section | What it holds |
|---|---|
| Introduction and diagram | The problem in a sentence or two, the workflow kind, and a ::workflow-diagram of the finished workflow |
| What you'll build | A real input and what it turns into |
| Before you start | A table with Difficulty, Time, Workflow kind, Connections, Models, Folders, fields, Tags and Sample file |
| Build the workflow | ::steps with every control named as it appears and every value to enter |
| Test it | How to run it with the test workspace, and what each switch does |
| Turn it on | Publishing, and what happens on the next upload |
| What to expect | The outputs of a real run |
| Troubleshooting | A table of error codes and symptoms with their cause and fix |
| Make it your own | Variations, each built only from what Avenvail does today |
| Privacy, cost and reliability | What leaves the server, what it costs, and what happens when a service fails |
Mark results so readers know what to trust. Verified means you ran the workflow and copied the result. Illustrative means an AI model's wording, which differs between models and runs. Never present an AI answer as verified.
Put sample files in docs-site/public/samples/ and link them as /samples/<file>. Make them yourself: no real people, accounts, receipts or screenshots.
Keyboard keys
Write keys with :kbd{value="Enter"}. meta shows as ⌘ on a Mac and Ctrl elsewhere.
Settings and outputs
Reference pages list settings with ::field-group and :::field, giving the name, type and whether it's required:
::field-group
:::field{name="Expires after" type="duration"}
An ISO 8601 duration such as `P7D`. Empty means never.
:::
::
End each step's section in the step reference with its facts: where it works, what it changes, what it sends out, its connection, retries and time limit.
::step-facts{type="avenvail.core.create-share"}
::
The facts come from docs-site/data/steps.json, a copy of what each step declares about itself. A backend test compares that file with the steps Avenvail registers, so adding a step or changing how one behaves fails the tests until the docs catch up. Update the file from backend/ with:
UPDATE_DOCS_STEPS=1 dotnet test Avenvail.Tests --filter DocsStepCatalogTests
Then add or update the step's section, including its settings and outputs.
Checking your changes
Run pnpm dev in docs-site/ to preview, then pnpm generate && pnpm check. The check fails on links to missing pages or anchors, on links to old URLs listed in redirects.ts, and on pages that render [object Object], undefined or an empty title or description. CI runs the same checks.