API Reference PhoenixKitPublishing v#0.1.6

Copy Markdown View Source

Modules

Publishing module for managing content groups and their posts.

Centralized constants for the Publishing module.

Database storage layer for the Publishing module.

Mapper: converts DB records to the map format expected by Publishing's web layer (LiveViews, templates, controllers).

Central mapping from error atoms (returned by the Publishing module's public API) to translated human-readable strings.

Group management functions for the Publishing module.

Pure language utility functions for the Publishing module.

Caches publishing group listing metadata in :persistent_term for sub-millisecond reads.

Content metadata helpers for the Publishing module.

Rendering pipeline for PHK (PhoenixKit) page content.

Parses PHK (PhoenixKit) XML-style markup into an AST.

Renders AST nodes to HTML by delegating to component modules.

Post CRUD operations for the Publishing module.

Presence tracking for collaborative post editing.

Helper functions for collaborative post editing with Phoenix.Presence.

PubSub integration for real-time publishing updates.

Schema for publishing content — one row per language per version.

Schema for publishing groups (blog, faq, legal, etc.).

Schema for publishing posts within a group.

Schema for publishing post versions.

Renders publishing post markdown to HTML with caching support.

Shared helper functions used across publishing submodules.

Slug validation and generation for the Publishing module.

Fixes stale or invalid values on publishing records.

Language and translation management for the Publishing module.

Version management functions for the Publishing module.

Version switcher component for publishing posts.

Public post display controller.

404 fallback handling for the publishing controller.

Language detection and resolution for the publishing controller.

Group listing functionality for the publishing controller.

Post fetching functionality for the publishing controller.

Post rendering functionality for the publishing controller.

URL path parsing and routing helpers for the publishing controller.

URL slug resolution for the publishing controller.

Translation link building for the publishing controller.

LiveView for editing publishing group metadata such as display name and slug.

Markdown editor for publishing posts.

Collaborative editing functionality for the publishing editor.

Form building and management for the publishing editor.

Shared helper functions for the publishing editor.

Post persistence operations for the publishing editor.

Preview functionality for the publishing editor.

AI translation functionality for the publishing editor.

Version management functionality for the publishing editor.

HTML rendering functions for Publishing.Web.Controller.

Publishing module overview dashboard. Provides high-level stats, quick actions, and guidance for administrators.

Lists posts for a publishing group and provides creation actions.

LiveView for creating a new publishing group.

Post overview page showing metadata, versions, languages, and actions.

Preview rendering for publishing posts.

Admin configuration for publishing groups.

Oban worker for translating publishing posts to multiple languages using AI.

Publishing module routes.