# Changelog

All notable changes to @gately/cli will be documented in this file.

## [0.6.16] - 2026-03-27

### Changed
- Patch release with bug fixes and improvements

## [0.6.15] - 2026-03-27

### Changed
- Patch release with bug fixes and improvements

## [0.6.14] - 2026-03-27

### Changed
- Patch release with bug fixes and improvements

## [0.6.13] - 2026-03-27

### Changed
- Patch release with bug fixes and improvements

## [0.6.12] - 2026-03-27

### Changed
- Patch release with bug fixes and improvements

## [0.6.11] - 2026-03-27

### Changed
- Patch release with bug fixes and improvements

## [0.6.10] - 2026-03-27

### Changed
- Patch release with bug fixes and improvements

## [0.6.9] - 2026-03-27

### Changed
- Patch release with bug fixes and improvements

## [0.6.8] - 2026-03-27

### Added
- Enhanced `gately pull` command to download complete article metadata including SEO fields, icons, sidebar titles, and API documentation fields
- Automatic config file updates when pulling articles - adds proper navigation structure with folders, categories, and subcategories
- Support for pulling all article fields: `icon`, `sidebar_title`, `meta_title`, `meta_description`, `og_image_url`, `keywords`, `api_parameters`, `api_auth_required`, `is_published`
- `--no-update-config` flag to skip automatic config updates
- `sidebar_title` support for folders, categories, and subcategories in config - allows custom sidebar labels for all navigation items

### Fixed
- TypeScript errors in pull command with proper type guards for optional parameters
- YAML escaping for special characters in frontmatter generation

## [0.6.7] - 2026-03-27

### Changed
- Patch release with bug fixes and improvements

## [0.6.6] - 2026-03-27

### Changed
- Patch release with bug fixes and improvements

## [0.6.5] - 2026-03-26

### Changed
- Patch release with bug fixes and improvements

## [0.6.4] - 2026-03-26

### Changed
- Patch release with bug fixes and improvements

## [0.6.3] - 2026-03-26

### Changed
- Patch release with bug fixes and improvements

## [0.6.2] - 2026-03-26

### Changed
- Patch release with bug fixes and improvements

## [0.6.1] - 2026-03-26

### Added
- **`gately sync --generate-config`** - Generate suggested config from database structure
  - Analyzes your help center and creates a config template
  - Includes proper folder/category/subcategory hierarchy
  - Shows article counts and slugs for each section
  - Saves to `gately.config.suggested.json` for review

### Fixed
- TypeScript error: Added `description` property to `RemoteCategory` type
- Improved config generation with proper formatting

## [0.6.0] - 2026-03-26

### Added
- **`gately sync` command** - Pull navigation structure from help center to local repo
  - Syncs folders, categories, subcategories, and articles
  - Generates `.gately-navigation.json` with complete structure
  - Helps keep local config in sync with database state
- **Delete articles** - Add `delete: ["slug1", "slug2"]` to config to remove articles
- **Uncategorize articles** - Add `uncategorized: ["slug1"]` to move articles out of navigation
- Better article lifecycle management

### Changed
- Improved cleanup logic to handle article deletion and uncategorization
- Enhanced navigation structure tracking

## [0.5.13] - 2026-03-26

### Added
- Automatic cleanup of unused categories and subcategories after push
- Categories with no articles are automatically removed if not in config
- Better category management to keep help center clean

### Fixed
- Prevents orphaned categories from accumulating in database
- Improved category hierarchy tracking

## [0.5.12] - 2026-03-26

### Changed
- Patch release with bug fixes and improvements

## [0.5.11] - 2026-03-26

### Changed
- Patch release with bug fixes and improvements

## [0.5.10] - 2026-03-26

### Changed
- Patch release with bug fixes and improvements

## [0.5.10] - 2026-03-26

### Added
- `gately format` command to clean and normalize markdown/MDX files
- `gately format --check` to verify formatting in CI without modifying files
- Automatic content formatting: normalizes whitespace, line endings, and spacing
- Better content consistency before pushing to help center

### Fixed
- Improved error messages and logging
- Better handling of malformed content
