# Changelog

All notable changes to Black Bean Docs are documented here.

## [0.9.9] — 2026-07-18

### Changed

- Table of contents: more padding, no numbered markers, clearer link hit targets

## [0.9.8] — 2026-07-18

### Fixed

- Auto-rebuild docs whose stored `rendered_html` was stripped to plain text (requires Black Bean Tables ≥ 4.64.2 so HTML is preserved on save)

## [0.9.7] — 2026-07-18

### Changed

- Richer markdown rendering: task-list checkboxes, table wraps, Note/Tip/Warning callouts, codeblock titles (`lang:path`), and tighter prose/TOC styling

## [0.9.6] — 2026-07-18

### Changed

- Front-end docs UI focuses on title + category orientation: breadcrumbs, mono category nav, slim heroes/cards, related docs in-category, and category-scoped prev/next

## [0.9.5] — 2026-07-18

### Added

- Expand/collapse toggles on the admin category tree, plus Expand all / Collapse all

## [0.9.4] — 2026-07-18

### Changed

- Admin categories list and edit-doc checkboxes render as a hierarchy tree (indent + child badge) instead of a flat table

## [0.9.3] — 2026-07-17

### Fixed

- `/bb-docs-sitemap.xml` returned 404 when Rank Math is active: its generic `*-sitemap.xml` rewrite intercepted the URL before the plugin's own rule. The sitemap is now served through a native Rank Math provider (`bb-docs` type), which also adds it to `sitemap_index.xml` with `lastmod`
- Rank Math's sitemap file cache is invalidated when docs are created, updated, or deleted

## [0.9.2] — 2026-07-16

### Added

- **Sync from plugins** — import markdown from `{plugin}/docs/**/*.md`, `CHANGELOG.md`, and `README.md`
- Admin page **Docs → Sync** (dry-run, force, per-plugin filter)
- WP-CLI: `wp bb-docs sync [--plugin=…] [--dry-run] [--force]`
- Auto category tree per plugin: Guides, Features, Release notes, Reference, Internal
- Shared `BB_Docs_Content_Service` for render + attachment (admin save + sync)
- Distribution bootstrap for license/updates on customer copies

### Changed

- Docs discovered under plugin folders map to stable slugs (`{plugin}--docs-…`)

## [0.9.0] — Initial

### Added

- Markdown docs stored in Black Bean Tables (`docs`, `doc_categories`)
- Admin: Getting started, All docs, Categories, Edit doc
- Front-end `/docs/`, `/docs/{slug}/`, `/docs/category/{slug}/`
- REST: list, categories, single doc
- GFM rendering (built-in + optional League CommonMark)
- Live markdown preview, re-render from Media attachment
- XML sitemap `/bb-docs-sitemap.xml`
