Skip to main content

wit journal

Create and manage rich documentation pages for your repository. Journal provides a Notion-like experience for writing docs, READMEs, architecture decisions, onboarding guides, and more.

Basic Usage

# List all pages
wit journal

# Create a new page
wit journal create "Getting Started"

# View a page
wit journal view getting-started

# Show page hierarchy
wit journal tree

Commands

List Pages

# List root-level pages
wit journal

# List pages by status
wit journal list --status published
wit journal list --status draft
wit journal list --status archived

Create Pages

# Create a basic page
wit journal create "Getting Started"

# Create with content
wit journal create "API Guide" --content "# API Documentation\n\nWelcome..."

# Create with icon
wit journal create "Architecture" --icon "๐Ÿ—๏ธ"

# Create nested page (under a parent)
wit journal create "Authentication" --parent getting-started

View Pages

# View by slug
wit journal view getting-started

# Shortcut: just use the slug
wit journal getting-started

Edit Pages

# Update content
wit journal edit getting-started --content "# Updated Content"

# Update title
wit journal edit getting-started --title "New Title"

# Update icon
wit journal edit getting-started --icon "๐Ÿ“š"

Organize Pages

# Show page hierarchy as a tree
wit journal tree

# Move a page to a new parent
wit journal move api-guide --parent getting-started

# Move to root level
wit journal move api-guide --parent root

Page Lifecycle

# Publish a draft
wit journal publish getting-started

# Revert to draft
wit journal unpublish getting-started

# Archive a page
wit journal archive old-docs

Version History

# View page history
wit journal history getting-started

# Restore to a previous version
wit journal restore getting-started 3
# Search by title or content
wit journal search "authentication"

# Search within a status
wit journal search "api" --status published

Delete Pages

# Delete a page (requires --force)
wit journal delete old-page --force
Warning: Deleting a page also deletes all its children.

Page Status

StatusIconDescription
draftโ—‹Work in progress, not visible publicly
publishedโ—Visible to repository collaborators
archivedโ—ŒHidden from listings but preserved

Options

OptionShortDescription
--content-cPage content (markdown)
--icon-iPage icon (emoji)
--parent-pParent page slug
--status-sFilter by status
--forceConfirm destructive operations
--help-hShow help

Examples

Create Documentation Structure

# Create main sections
wit journal create "Getting Started" --icon "๐Ÿš€"
wit journal create "Architecture" --icon "๐Ÿ—๏ธ"
wit journal create "API Reference" --icon "๐Ÿ“ก"
wit journal create "Contributing" --icon "๐Ÿค"

# Create nested pages
wit journal create "Installation" --parent getting-started
wit journal create "Quick Start" --parent getting-started
wit journal create "Configuration" --parent getting-started

# Publish the main pages
wit journal publish getting-started
wit journal publish architecture

View Page Tree

wit journal tree
Output:
Journal Tree:

โ”œโ”€โ”€ โ— ๐Ÿš€ Getting Started (getting-started)
โ”‚   โ”œโ”€โ”€ โ— ๐Ÿ“ฅ Installation (installation)
โ”‚   โ”œโ”€โ”€ โ— โšก Quick Start (quick-start)
โ”‚   โ””โ”€โ”€ โ—‹ โš™๏ธ Configuration (configuration)
โ”œโ”€โ”€ โ— ๐Ÿ—๏ธ Architecture (architecture)
โ”‚   โ””โ”€โ”€ โ— ๐Ÿ“Š Database Schema (database-schema)
โ”œโ”€โ”€ โ— ๐Ÿ“ก API Reference (api-reference)
โ””โ”€โ”€ โ—‹ ๐Ÿค Contributing (contributing)

View a Page

wit journal view getting-started
Output:
๐Ÿš€ Getting Started
โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

Status:    โ— published
Author:    John Doe
Created:   Dec 1, 2024
Updated:   Dec 15, 2024
Published: Dec 5, 2024

โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

# Getting Started

Welcome to our project! This guide will help you get up and
running quickly.

## Prerequisites

- Node.js 18+
- npm or yarn
...

Search Documentation

wit journal search "database"
Output:
Search results for "database":

  โ— published  ๐Ÿ“Š Database Schema
      database-schema
      Our database uses PostgreSQL with the following schema...

  โ—‹ draft  ๐Ÿ”ง Database Migrations
      database-migrations
      How to create and run database migrations...

Restore Previous Version

# View history
wit journal history getting-started

# Output:
# Page History:
#
#   v3 ยท Dec 15, 2024
#       Updated installation instructions
#       by johndoe
#
#   v2 ยท Dec 10, 2024
#       Added quick start section
#       by johndoe
#
#   v1 ยท Dec 1, 2024
#       Initial creation
#       by johndoe

# Restore to version 2
wit journal restore getting-started 2

Web Interface

Journal pages are also accessible through the web interface at:
https://your-server/owner/repo/journal/page-slug

Tips

  • Use emojis as icons to make pages visually distinct
  • Create a clear hierarchy with parent pages
  • Keep pages focused on single topics
  • Use version history to track changes
  • Archive rather than delete to preserve history

See Also