# The editor

The editor is where a hosted site's pages change. Pages stay Markdown and MDX, and text you do not touch is written back exactly as it was.

## Open a page

Open the site's **Content** tab, choose a page or **New page**, and the editor opens. Drafts are saved as you type. If the live page changes while you have a draft open, the editor tells you.

## Write with blocks

<img src="/images/platform/editor.webp" alt="Block editor with the page on the left and the live preview on the right" width={900} height={563} />

Type `/` on an empty line to insert a block:

| Group | Blocks |
| --- | --- |
| Basic | Text, three heading levels, bulleted, numbered and task lists, quote, code block, table, divider |
| Media | Image, video, embed, frame |
| Layout | Card, card group, accordion, accordion group, tabs, columns |
| Docs | Diagram, chart, file tree, code tabs, package install, callout, steps, API operation, footnote, HTML, update |

<video src="https://public.cdn.rimfe.com/assets/videos/clip-editor-slash-bc393e8f.mp4" poster="https://public.cdn.rimfe.com/assets/videos/clip-editor-slash-ea557681.webp" controls />

A diagram, a chart and a file tree are code blocks in the `mermaid` or `tree` language. The site draws them when it builds, and the preview shows the result as you type. [Components](https://docs.rimfe.com/platform/components) lists every block with the text that makes it.

A block that takes an [icon](https://docs.rimfe.com/platform/components#icons), such as a card, step, tab or callout, has a square icon button in its controls. It opens a search over Lucide, Tabler and Font Awesome; pick an icon, or **Remove icon**. The same button in the text toolbar adds an icon inside a line, and clicking that icon sets its size, colour and label.

Code blocks use a code editor, with the language, title, highlighted lines, line numbers, wrap and collapse above it. Choose **Source** in the top bar to edit the page's MDX directly, and the preview beside the page shows how it renders.

## Page settings

Choose **Settings** in the top bar to set a page's title, description, address, canonical address and social image, a sidebar icon and [badge](#badges), and whether to hide it from the navigation. Visibility has four options:

| Visibility | Meaning |
| --- | --- |
| **Everywhere** | Listed, searchable and in the sitemap. |
| **Unlisted** | Reachable by link, kept out of navigation and search. |
| **Hidden** | Not published. |
| **AI only** | Hidden from readers, available to the AI features. |

A page with a different canonical address is not in the sitemap. A page set to `noindex` stays out of search results but its links are still followed. A private site is closed to search engines entirely.

You can also limit a page to [reader groups](https://docs.rimfe.com/platform/private-docs#groups), on a public or a private site.

Turn off **Show Previous and Next** to drop the links to the neighbouring pages from the bottom of a page. In frontmatter it is `pager: false`.

### Search keywords

**Search keywords** are words readers may search for that the page does not use, such as an old product name or a common misspelling. Type one and press Enter; a page takes up to 20, each up to 40 characters. Search ranks a keyword match just below a title match, and keywords never show on the page. In frontmatter it is `keywords`:

```yaml
---
title: Rate limits
keywords: [quota, throttling]
---
```

### Page layout

**Layout** sets how the page uses the width:

| Layout | What the page shows |
| --- | --- |
| **Default** | Sidebar, page and the column of sections. |
| **Wide, no table of contents** | Sidebar and a wider page. The sections move to the bar at the top. |
| **Full width** | The page across the whole width. The sidebar opens from the menu button. |
| **Centered column** | One centered column. The sidebar opens from the menu button. |

**Same as folder** takes the layout of the page's folder. To set one for a whole folder, open the folder's menu in **Navigation** and pick **Page layout**. In a `meta.json` it is `layout`, and a page's own frontmatter wins:

```yaml
---
title: API overview
layout: wide
---
```

### Related pages

A page can list up to four related pages under its text. Name them in the frontmatter by path, as you would link to them:

```yaml
---
title: Webhooks
related:
  - /guides/retries
  - ../reference/events.mdx
---
```

A path that matches no page, or a page not every reader of this one may open, is left out, and the build shows a warning with its line. To have Rimfe pick them, open **Settings**, then **Site**, and turn on **Suggest related pages**. It picks listed pages that share words in their titles, headings and `keywords`, preferring the same folder, and never suggests hidden, unlisted or group-only pages. A page's own list wins, and `related: false` shows none.

## Annotate images

Choose **Annotate** on an image block: arrows, rectangles, numbered markers, text and highlights. **Blur** and **Pixelate** hide sensitive parts. Readers see a single flattened image. Arrows, rectangles, markers, text and highlights stay editable when you reopen **Annotate**, but the pixels under **Blur** and **Pixelate** are removed for good and no original is kept. It works on images uploaded to the site, not on images from another address.

## History, moving and deleting

<img src="/images/platform/history.webp" alt="Page history comparing two versions in the unified view" width={900} height={563} />

Each page has a menu on the **Content** tab and in the editor:

- **History** lists every version of the page, who published it and how (by hand, from a pull request, imported, from an agent). Pick one to see what changed since. **Restore this version** turns it into your draft, which you review and publish like any edit.
- **Move or rename** asks for the new path. The old address redirects to the new one, and the folder's navigation follows.
- **Delete page** takes it off the site with the next build. You can send its readers to another page. Pages you delete stay under **Recently deleted** on the **Content** tab for 30 days; **Restore** brings one back as a draft.

A page someone has a draft of can't be moved or deleted until the draft is published or discarded.

## Preview your drafts

Open **Preview** from the site and turn on **My drafts** to see the site as it would look with your drafts published. From a review, **Preview site** shows the same for the pages you are reviewing, including a change from a pull request.

## Sections

Sections split a site into tabs above the sidebar, such as **Docs**, **API Reference** and **Changelog**. Each tab shows only its own pages in the sidebar, and **Previous** and **Next** stay inside it.

Open **Settings**, then **Navigation**, and choose **Add sections**. Give each section a name and choose where it sits:

| Place | What the section holds |
| --- | --- |
| A top-level folder | Every page in that folder, for example `/api-reference`. |
| An API reference | The pages generated from that OpenAPI spec. |
| **Everything else** | Every page no other section holds. One section must be this. |

The button before a section's name picks an icon for its tab. Arrange the rows in tab order and **Save sections**. A site needs two to eight sections, or none. A section with no pages yet gets no tab until it has some. Sites imported from Mintlify keep their tabs as sections.

## Sidebar

Open **Settings**, then **Navigation**, to arrange the sidebar. Folders, headings and links each take an icon from the button before their name; a page's icon is set in its own settings, or as `icon` in its front matter. Sidebar icons are muted until their page is open, and a heading's icon takes the accent colour.

### Pinned links

**Pinned links** sit at the top of the sidebar, above the first group, in every section and in the phone menu. Use them for pages readers need from anywhere, such as a changelog or a status page. A site can pin up to 6. Each takes an optional icon, a name and an address: `https://`, a path starting with `/`, or `mailto:`. A link to another site shows an arrow.

### Badges

A badge is a short label after a page's name in the sidebar and after its title, such as **New** or **Beta**. Set it under **Icon and badge** in the page's settings, up to 16 characters. In the page's frontmatter it is `tag`, the same key Mintlify uses:

```yaml
---
title: Webhooks
tag: New
---
```

A folder in **Navigation** has a **Badge** field too. A folder's `meta.json` takes the same `tag` key.

### Listing a folder's pages

A folder that opens a page of its own can list its pages under that page's text. In **Navigation**, open the folder's menu and pick **List pages on folder page**: **Cards** shows each page's title and description in a grid, **List** shows them one under another. It is off until you turn it on. In a `meta.json`, set `listChildren` to `cards` or `list`:

```json
{ "title": "SDKs", "listChildren": "cards" }
```

The list follows the sidebar: hidden and unlisted pages stay out, and a page for some readers shows its title with a lock but not its description.

## Redirects

Open **Settings**, then **Navigation**, to see and edit the site's redirects: the old address, where it goes, and whether it is permanent. Moving a page or changing its address adds one for you. A redirect loop or a second redirect from the same address is refused.

## Review and publish

When you are done, open the review page. It lists every changed page with a unified or split diff. Then [publish](https://docs.rimfe.com/platform/publishing-and-builds). To throw a draft away, choose **Discard draft**.
