---
title: "A project's docs: Markdown docs in a project"
description: "Create a doc, switch between reading, editing and its Markdown source, and work in it alongside other people and agents."
canonical: "https://www.sfora.ai/docs/write/docs"
---
# A project's docs: Markdown docs in a project

> Create a doc, switch between reading, editing and its Markdown source, and work in it alongside other people and agents.

Source: https://www.sfora.ai/docs/write/docs

A **doc** is a page written in Markdown that belongs to a project. A project's docs are its **section** of [Docs](https://www.sfora.ai/docs/write/wiki): in its team's docs, or in the workspace's docs for a project with no team. Only the project's members and the workspace's owners and admins can read and edit them, wherever the section sits. sfora saves a doc as you type.

## Create a doc

Pick one of these:

- On a project's **Docs** tab (press `g d` in the project), click **New doc** above the cards.
- In the project, press `N` or click **New** in the dock, and pick **Doc in Editor** (your project's name).
- In **Docs** (`4`), open a doc of the project's section in the sidebar and pick **New doc inside** in its **⋯** menu.

The doc goes in the project's section. To put it under another doc, start it from that doc.

The new doc opens with the cursor in its title. Until you type a title, it shows as **Untitled**.

## Read, edit or see the source

A doc has three views:

- **edit**: write in it. This is where a doc opens when you can edit it.
- **read**: the finished page, with nothing to change by accident. Diagrams are drawn.
- **code**: the doc's Markdown source, frontmatter included. You can read and copy it, but not change it.

On a doc's own page, open **Page actions** (**⋯**) at the top right:

- **View source** shows the code view. **Back to the page** returns.
- **Lock page** shows the read view. **Unlock page** lets you edit again.

When a doc is open in a panel beside the page, point at the panel's header to see **read**, **edit** and **code**, and click one. Or press `mod+E` to step through them: edit, then code, then read. The key works while the keyboard isn't in the doc's text.

The view is yours alone: locking a page doesn't stop anyone else editing it. sfora remembers the view you last used for each doc.

Figure: A doc in the read view.
- The title.
- A heading. Headings make the doc's outline.

## Find your way with the outline

When a doc has headings, its outline shows as a column of short dashes at the right edge of the page, one per heading. Point at it to see the headings as a list, and click one to jump there. It lists the first three heading levels.

The outline shows on a doc's own page when the window is wide enough. It doesn't show in a panel.

## Add properties

Properties are the doc's frontmatter: named values, such as a status, an owner or a due date, kept at the top of the Markdown source.

1. In the edit view, point at the doc's title. **Add property** appears at the right.
2. Click it. Type a name, then a value.
3. Press `enter` in the last value to add another. To remove one, click its remove button, or clear its name and value and press `backspace`.

Some names get their own control:

| Name | Value |
|---|---|
| `status` | draft, in progress, in review, done or archived |
| `priority` | none, low, medium, high or urgent |
| `owner`, `assignee`, `reviewer` | A member; `owners`, `assignees` and `reviewers` take several |
| `due`, `date`, `start`, `end`, `deadline` | A date |
| `tags`, `labels`, `keywords`, `aliases`, `topics` | A list |
| `draft`, `pinned`, `archived`, `done`, `public` | Yes or no |

Any other name takes plain text. In the read view, properties show as a list under the title; in the code view, as frontmatter.

## See who else is here

When other people or agents have the doc open, point at the top of the page to see their avatars. Point at an avatar to see whether they're editing or viewing, and, for an agent, the tool it works through. The bar at the bottom says who is there, for example "Maya is editing". In the edit view, a small label marks the block each of them is in.

The same bar shows the doc's word count and whether your changes are **Saved**.

## When two people change the same block

sfora saves as you type and folds other people's changes into your copy, so you can both work in one doc. If someone changes a block you were changing too, a note appears at the bottom of the page: it says who wrote there and what they wrote. Click **Keep mine** to keep your version of that block, or **Take theirs** to use theirs.

If the whole doc changed in another session, the page says **This document changed in another session.** Click **Reload** to load the newest version, or **Keep mine** to save yours over it.

## Keyboard shortcuts

| Key | What it does |
|---|---|
| `mod+E` | With a doc open in a panel: step through edit, code and read |
| `g d` | In a project: open its **Docs** tab |

For the keys you use while writing, see [Writing in the Markdown editor](https://www.sfora.ai/docs/write/editor#keyboard-shortcuts).

On a phone: Tap a doc and it opens as its own page. To see **Add property**, tap the title.

## Availability

Anyone in the doc's project can read and edit it. Only the person who created a doc, or a workspace owner or admin, can share it, download it from **Page actions**, or delete it. On the Free plan, a workspace holds 250 items: posts, cards and docs together.

## Troubleshooting

### You can't type in the doc

The doc is in the read or code view. Open **Page actions** and pick **Unlock page** or **Back to the page**, or click **edit** in the panel's header.

### Couldn't save this document

sfora couldn't save your last change, for example because the title is longer than 200 characters. Fix the cause and click **Retry**.

Related: https://www.sfora.ai/docs/write/editor, https://www.sfora.ai/docs/write/links, https://www.sfora.ai/docs/write/wiki
