chore: source formatting and spec allignment
This commit is contained in:
@@ -23,6 +23,7 @@ surface PreviewControlSurface {
|
||||
provides:
|
||||
StartPreviewRequested(project)
|
||||
StopPreviewRequested(server)
|
||||
OpenPreviewInBrowserRequested(project)
|
||||
}
|
||||
|
||||
surface PreviewHttpSurface {
|
||||
@@ -48,6 +49,14 @@ rule StopPreview {
|
||||
ensures: server.is_running = false
|
||||
}
|
||||
|
||||
rule OpenPreviewInBrowser {
|
||||
when: OpenPreviewInBrowserRequested(project)
|
||||
-- Starts or reuses the project's localhost preview server, then opens its
|
||||
-- base URL in the external system browser. This is separate from the
|
||||
-- post editor's internal preview pane (editor_post.allium EditorModes).
|
||||
ensures: ExternalBrowserOpened(url: preview_base_url(project))
|
||||
}
|
||||
|
||||
-- Route resolution
|
||||
-- Preview renders all posts (published + draft) on-demand via Liquid templates.
|
||||
-- Content priority: DB content (draft edits) over published .md file content.
|
||||
|
||||
Reference in New Issue
Block a user