shahryarjb

shahryarjb

Mishka Document is the documentation extension for Mishka CMS, written with Elixir, Phoenix LiveView and Ash. A site publishes documentation as documents with several versions, pages that nest to any depth, and notes inside the pages. It is Apache 2.0 and part of the Mishka CMS open-source and free release.

What is in it

  • Versions with the statuses draft, alpha, beta, rc, stable and archived. A version can be cloned from an earlier one, the clone history is recorded, and readers switch versions.
  • A two-stage review. A change to a page or a note is a draft, and it reaches the live record only after both a content review and a technical review approve it.
  • 15 Ash resources, with soft deletes through AshArchival. Documents and pages can be translated, and the translations are linked as one.
  • Issues on a page or note (typo, broken link, suggestion), bookmarks, follows and unique view counts per page.
  • Per page SEO: its own head, TechArticle and breadcrumb JSON-LD, a canonical address, sitemap entries and share cards.
  • A JSON:API for admins and one for readers, described in the CMS’s OpenAPI spec.

How it plugs in

The extension fires named events through Mishka Installer, so a plugin can hook in without touching it. For example, a plugin that adds its own button to a workspace in the admin:

defmodule MyApp.Plugins.WorkspaceButton do
  use MishkaInstaller.Event.Hook, event: "document:workspace:admin_actions"

  def call(state), do: {:reply, state}
end

Other events cover the page head (document:page:seo), extra facts and tabs on a page (document:page:extras) and a cloned version (document:version:cloned). Mishka CMS installs the extension from its wizard, and a host app can add {:mishka_document, "~> 0.0.2"} from Hex.


More: the full write-up on the blog, the Mishka Document documentation and the package on Hex.

Blog post

Where Next? Top

Trending in Announcing Top

mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
danschultzer
I’ve moved the strategies out of PowAssent and created a multi-provider framework for Elixir. This way the strategies can be used in any ...
New
gtcode
Aloha gang, There’s a new class of AI model out from TypeSafe. Jev is their flagship model. You can learn about it here: ...
New
danschultzer
I needed something like premailer for rails, and after searching, I decided to make an easy-to-use library to handle inline styles and co...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
AstonJ
With advancements in AI gathering pace and set to increasingly accelerate, perhaps it’s worth having an annual thread on the topic - feel...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews