Repository navigation
v0.13.0
This version adds the live preview: the real page of the website beside the
form, with the drafts in it, in the local and in the self-hosted editor. The
editor also saves by itself.
Added
- The live preview. The editor shows the page of an entry beside its form,
with the drafts in it, about a second after you stop typing. A click on a
text, a paragraph, an image, a date or an option in the page opens its field,
and a related entry, such as the author of an article, opens over the current
form. Unpublished changes have an outline. AddmicaPreview()from
@micacms/astro/previewtoastro.config; the templates do not change. mica start --previewstarts the editor and the website's
astro devwith one command, also on Windows. The dev server stops with the
editor.- The live preview in the self-hosted editor. The image
ghcr.io/micacms/previewruns the website's dev server on the drafts of
Mica's clone, in a container of its own. Mica lets only signed-in editors in,
on the namepreview.<the editor's name>.MICA_PREVIEW_UPSTREAMturns it
on. See "Add the live preview" in the self-hosting guide. - The editor saves by itself: after a short pause in typing, when you leave
a field, and when a form closes. A new entry has a Create button. A new URL
waits for Change URL, which can also update the links in other entries.
Changed
@micacms/astrohas a new peer dependency,@astrojs/compiler-rs, which
Astro 7 installs. The preview uses it to find dates, numbers and options in
the templates.- The sidebar and the page header stay in place while the page scrolls.
Settings show their description below the title. - The editor's Content-Security-Policy allows frames from the origins of the
live preview, and from no other.
Fixed
- The local editor finds the dev server also when Astro takes another port,
withmicaPreview(). The dev server deletes its note for the editor also on
Ctrl+C. - A content root that cannot be written, such as the one of the self-hosted
preview, gets a warning for the index of a reference set, and the site builds.