# Wiki-Links

Connect documentation with `[[double-bracket]]` links — portable, Obsidian-style syntax that builds a backlink graph as you write.

## Linking

- `[[Getting Started]]` links to the doc titled *Getting Started*.
- `[[Getting Started|the quickstart]]` shows *the quickstart* as the link text.
- In the editor, typing `[[` opens an autocomplete over existing docs; a finished `[[...]]` becomes a link chip as you type.

Targets resolve by **title** (case-insensitive). A target containing `/` resolves by path instead. When nothing matches, the chip renders muted with a dashed underline — it starts resolving the moment a doc with that title exists, so you can link ahead of writing.

## Backlinks

Every doc page shows a **Referenced by** section listing the published docs that link to it. Backlinks survive renames and moves — links track the document, not its title — so reorganizing a doc tree never breaks the graph.

## Stored as plain markdown

Wiki-links live in the markdown as literal `[[...]]` text. Nothing proprietary: the raw content round-trips through any markdown tool, and agents can read and write links with ordinary text edits.

## Raw markdown renders

Every doc also has an agent-friendly raw render — add `.md` to its URL:

```
https://www.monofile.ai/docs/getting-started.md
```

The full index of published docs lives at `https://www.monofile.ai/docs.md` (also served at `/docs/llms.txt`). Fetching a `.md` URL returns the stored markdown verbatim, wiki-links included.

## In your own files

Wiki-links work in your own markdown files too — the same syntax, fully live: type `[[` in the [[Files & Editors]] experience to autocomplete over your file tree, chips resolve by file name (`[[Note]]` matches `Note.md`) or path and click-open the target, and every file shows a **Referenced by** strip. Links resolve within your workspace and survive renames and moves.

Agents are equal citizens in the graph: markdown written through the [[Tools API]] — `write`, `edit`, even `bash` — is indexed on every save, so agent-authored links appear in your backlinks exactly like your own. Backlinks are also readable programmatically; the agent skill file documents how.
