Skip to content
Install on Shopify

Keep your files fresh

Outcome: you know when your files refresh on their own, how to approve those refreshes, and how to rebuild a file yourself when you can’t wait.

  • This guide is about stores with the ShopMD app installed. For files generated from a URL on shopmd.ai, catalog.md may be refreshed nightly; the other files are a snapshot until you run the generator again (see Generate files for any store).

ShopMD listens for changes in your Shopify store and rebuilds the file each change affects:

When you… ShopMD rebuilds
Update or delete a product, or update a collection catalog.md
Change your store settings store.md
Publish a theme design.md and shop.md
Approve a refreshed store.md, brand.md, policies.md or catalog.md shop.md, so it quotes the new version
Nothing (every night) catalog.md and shop.md

Changes made close together share one rebuild. A bulk import of a hundred products triggers one catalog.md refresh, not a hundred.

When you publish a theme, ShopMD compares the new design with the current design.md. If almost nothing changed, it keeps the current file instead of offering a new one.

Product and collection files are the exception: they’re rewritten only when you press Write the files. See Write product and collection files with templates.

A refresh nobody asked for doesn’t replace a published file. It waits beside it as a draft, and agents keep reading the published version until you decide.

  1. See what’s waiting. Overview shows a banner such as “2 changes are waiting for your approval” and names the files. On Documents, those files have a Draft badge.

  2. Open the draft. On Documents, pick the file and press Review draft.

  3. Approve or discard. Approve and publish makes the draft live. Discard draft deletes it and leaves the published file as it was.

Approving one of store.md, brand.md, policies.md or catalog.md rebuilds shop.md, and that rebuild is a refresh too: expect a shop.md draft shortly after.

Your section edits and gap answers are applied to whichever version is live, so approving a refresh never loses them. More in Review, edit and approve your files.

  1. Open Overview in the app.
  2. Under Your files, press Regenerate next to the file. A file that was never built has Generate instead.
  3. Wait for the button to finish. The file’s badge changes to Today.

A file you regenerate yourself goes live straight away, without a draft. Only one file regenerates at a time.

Each row under Your files shows when the file was last built: Just now, Today, Yesterday or “N days ago”. The card says “Rebuilt nightly. A file older than a week means the schedule stopped.” A file more than a week old gets a highlighted badge.

policies.md also flags its own staleness. A statement whose date has passed, such as a holiday returns window, is moved under “Expired / seasonal — still published by store”, and wording like “COVID” or “holiday season” is marked [possibly-outdated]. Update the policy in Shopify to clear them.

What you see What to do
A badge shows more than a week Check for a draft waiting for approval first. Otherwise press Regenerate on that file. If it keeps going stale, contact us.
“Nothing is waiting for that document any more” The draft was decided elsewhere or replaced by a newer one. Reload the page.
A change you made in Shopify isn’t in a file Check Overview and Documents for a draft waiting for approval. Or press Regenerate.
Regenerate fails with a message on Overview Read the message, dismiss it and try again. If your storefront has a password, see Password-protected stores.