# Preview & Publish

## Previewing

Use the device toggle in the canvas header: **Desktop** (100%), **Tablet** (768px), **Mobile** (375px).

## Publishing

1. Ensure all sections are **ready** (no spinners)
2. Click **Publish** in the top bar
3. Page goes live on your Shopify store

### What happens

* Sections convert to Shopify Liquid templates
* Page template created in your theme
* Status changes to "published"

### After publishing

* Click **"View live"** to see the page on your store
* Continue editing — changes won't go live until you publish again
* Status shows **"Saved (not published yet)"** for unpublished edits

## Page statuses

| Status                    | Meaning                  |
| ------------------------- | ------------------------ |
| Draft                     | Never published          |
| Generating                | AI building sections     |
| Published                 | Live and up to date      |
| Saved (not published yet) | Edits since last publish |
| Unpublished               | Taken down               |
| Archived                  | Hidden from dashboard    |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.pagefly.io/smart-pages/preview-and-publish.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
