Writing Pages
Master the Cirth page editor with formatting, code blocks, and markdown support.
The Cirth editor combines the simplicity of markdown with the power of a rich text editor. This guide covers everything you need to write great documentation.
The Editor Interface
The page editor consists of:
Toolbar - Formatting buttons for common actions
Content Area - Where you write your documentation
Sidebar - Page settings and metadata
Text Formatting
Basic Formatting
Format | Toolbar | Markdown | Result |
|---|---|---|---|
Bold | B button |
| bold text |
Italic | I button |
| italic text |
Strikethrough |
|
|
|
Code |
|
|
|
Headings
Use headings to structure your content:
markdown
# Heading 1 (Page Title)
## Heading 2 (Major Sections)
### Heading 3 (Subsections)
#### Heading 4 (Minor Sections)Tip: Start with H2 for sections since H1 is used for the page title.
Code Blocks
Code blocks are essential for technical documentation.
Creating Code Blocks
Use triple backticks with a language identifier:
markdown
```javascript
function greet(name) {
return `Hello, ${name}!`;
}
```Supported Languages
Cirth supports syntax highlighting for 100+ languages including:
JavaScript, TypeScript, JSX, TSX
Python, Ruby, Go, Rust
HTML, CSS, SCSS, Tailwind
JSON, YAML, TOML, XML
Bash, Shell, PowerShell
SQL, GraphQL
And many more!
Code Block Features
Copy button - One-click copy for readers
Line numbers - Automatic numbering
Language label - Shows the language name
Lists
Unordered Lists
markdown
- First item
- Second item
- Nested item
- Another nested item
- Third itemOrdered Lists
markdown
1. First step
2. Second step
3. Third stepTask Lists
markdown
- [x] Completed task
- [ ] Pending task
- [ ] Another taskLinks and Images
External Links
markdown
[Link Text](https://example.com)Internal Links
Link to other pages in your documentation:
markdown
[See the Quick Start Guide](/docs/your-project/quick-start)Images
markdown
Blockquotes
Use blockquotes for important callouts:
markdown
> **Note**: This is an important note that readers should pay attention to.Renders as:
Note: This is an important note that readers should pay attention to.
Tables
Create tables with markdown syntax:
markdown
| Column 1 | Column 2 | Column 3 |
|----------|----------|----------|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |Page Settings
Title and Slug
Title: The main heading shown at the top of the page
Slug: URL-friendly identifier (auto-generated, but editable)
Description
Write a brief description for:
SEO meta description
Social sharing previews
Search result snippets
Page Status
Draft: Only visible to you in the editor
Published: Visible to all viewers (if project is public)
Page Order
Control the sequence of pages in navigation:
Lower numbers appear first
Use increments of 10 for easy reordering (10, 20, 30...)
Parent Page
Create hierarchical documentation by selecting a parent:
Leave empty for top-level pages
Select a page to nest underneath it
Page History
Cirth automatically saves your page history:
Click History in the toolbar
View previous versions with timestamps
Preview any version
Click Restore to revert changes
History uses smart compression to store changes efficiently.
Keyboard Shortcuts
Speed up your writing with shortcuts:
Action | Windows/Linux | Mac |
|---|---|---|
Bold | Ctrl+B | Cmd+B |
Italic | Ctrl+I | Cmd+I |
Save | Ctrl+S | Cmd+S |
Undo | Ctrl+Z | Cmd+Z |
Redo | Ctrl+Shift+Z | Cmd+Shift+Z |
Writing Tips
Lead with value - Start pages with the most important information
Use examples - Show, don't just tell
Be concise - Respect your readers' time
Test code - Verify all code examples work
Update regularly - Keep documentation in sync with your product