Skip to content

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:

KindPurposeExample
TutorialTakes a newcomer through a complete task, step by stepYour first workflow
GuideSolves one practical problem, in 7.guidesSend Discord notifications
ConceptExplains how something works and whyUpload intake
ReferenceLists settings, inputs, outputs and limits preciselyStep 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

content/4.connections/1.index.md
---
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
---
  • title is the page heading, in sentence case. Don't repeat it as a # heading in the body.
  • description is one sentence shown under the title, in search results and in link previews.
  • navigation.title is 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 Tessra, 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:
  tessra:
    image: ghcr.io/brostro/tessra:0.1
```

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"
---
::
  1. File uploaded (trigger)
  2. ConditionWidth is greater than 1920
    • True
      1. Add tagslarge
    • FalseNothing runs

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 alt text that says what the image shows; use caption for 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:

SectionWhat it holds
Introduction and diagramThe problem in a sentence or two, the workflow kind, and a ::workflow-diagram of the finished workflow
What you'll buildA real input and what it turns into
Before you startA 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 itHow to run it with the test workspace, and what each switch does
Turn it onPublishing, and what happens on the next upload
What to expectThe outputs of a real run
TroubleshootingA table of error codes and symptoms with their cause and fix
Make it your ownVariations, each built only from what Tessra does today
Privacy, cost and reliabilityWhat 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="tessra.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 Tessra 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 Tessra.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-links. The link check fails on links to missing pages or anchors, and on links to old URLs listed in redirects.ts. CI runs the same checks.