Skip to main content

opencx.toml

Project-level configuration. Created by opencx content init.
opencx.toml
# Content provider (default: "help-center")
provider = "help-center"

# Your help center ID (set during auth login or manually)
help_center_id = "your-help-center-uuid"

# Directory containing your content files
content_dir = "docs"

# API URL (default: https://api.open.cx)
api_url = "https://api.open.cx"

# Dashboard URL for browser auth flow (optional)
dashboard_url = "https://platform.open.cx"

category.toml

Per-topic metadata. Place in each topic directory. Optional — if omitted, the topic name is derived from the directory name (e.g., getting-startedGetting Started).
category.toml
name = "Getting Started"
description = "Learn the basics of our product"
icon = "rocket"
FieldRequiredDescription
nameNoDisplay name (defaults to slug → title case)
descriptionNoTopic description
iconNoIcon identifier

Article frontmatter

YAML frontmatter at the top of each .md file.
---
title: Welcome to OpenCX
meta_title: Welcome | OpenCX Help Center
meta_description: Get started with OpenCX in minutes
---
FieldRequiredDescription
titleYesArticle title
descriptionNoArticle description
meta_titleNoSEO title (falls back to title)
meta_descriptionNoSEO description (max 160 characters)
Slug is derived from the filename: welcome.mdwelcome.

Lock file

opencx-content-lock.json tracks sync state between local and remote content.
Commit this file to version control. Do not edit it manually — it is managed by the CLI.
FieldDescription
last_pull_atISO timestamp of last pull
last_push_atISO timestamp of last push
content_hashSHA-256 hash of canonical content
entriesPer-file hashes for change detection

Directory structure

Example of a complete project:
my-help-center/
├── opencx.toml
├── opencx-content-lock.json
└── docs/
    ├── getting-started/
    │   ├── category.toml
    │   ├── welcome.md
    │   └── quick-start.md
    ├── billing/
    │   ├── category.toml
    │   ├── plans.md
    │   └── invoices.md
    └── troubleshooting/
        ├── category.toml
        └── common-issues.md