Documentation menu

Documentation › Set up (developers)

Hand a site over to an editor

A checklist for the developer or agency setting Galley up for someone else — names and labels, the live address, where publishes go, what the assistant may touch, and how they will run it.

This page is for the developer or agency who builds a site and then hands it to the people who edit it. Everything below is optional — Galley works on a folder with no configuration — but each item removes a question your editor would otherwise ask you.

Link to this section: 1. Check what detection found

sh
$ galley doctor ~/sites/client-site

Read the collection lines as your editor will see them: is Blog posts called what they call it, are the counts right, is a folder of partials showing up as a collection? Then run galley init to get a galley.config.json that lists each collection's id, label and URL pattern, and correct only what is wrong. Configuration explains the file; it is committed with the site.

Link to this section: 2. Name things in their words

In galley.config.json, per collection: label (plural, Journal), singular (post), and per field: label, description (help text under the field, also given to the assistant), options for a fixed list, hidden for keys nobody should touch.

json
{
  "name": "Harbour Bakery",
  "collections": [
    {
      "id": "blog",
      "label": "Journal",
      "singular": "post",
      "fields": [
        { "key": "description", "label": "Summary", "description": "One or two sentences for search results and link previews." },
        { "key": "legacyId", "hidden": true }
      ]
    }
  ]
}

Link to this section: 3. Give it the live address

Set urls.production (and urls.staging if there is one) so the proof can show the proposed page beside the deployed one. On an Astro site, the site: value in astro.config.* is read automatically — unless it is a placeholder such as https://www.example.com, which is ignored on purpose.

Link to this section: 4. Decide where a publish goes

  • Commit and push (the default) to the branch that is checked out. Make sure the machine or server Galley runs on can push: Galley uses git's own credentials and never asks for a password.
  • Pull-request mode ("publish": { "mode": "pull-request" }) puts each publish on a new galley/… branch and hands back the pull request, for teams that review before going live. With the GitHub CLI (gh) signed in, Galley opens the pull request; without it, it gives the compare link.

Publishing has the details.

Link to this section: 5. Decide what the assistant may touch

Content mode — content and media — is the default for every conversation. Build mode adds source files and the site's build, which is powerful in an editor's hands. To keep the assistant to content only on this site, turn build mode off:

json
{
  "ai": { "allowBuild": false, "instructions": ["CONTENT-GUIDE.md"] }
}

This switch governs the assistant. It is not an access control: anyone who can sign in to Galley can still change source files through the HTTP API (PUT …/file with "mode": "build"). ai.instructions lists files the assistant reads before each conversation — a style guide, a voice document. Galley picks up STYLE.md, BRAND.md, VOICE.md, brand/voice.md and a few other common names on its own; list yours if it is called something else. See Modes and the write surface.

Link to this section: 6. Move copy out of components

Words written into an .astro component can't be edited in content mode, and click-to-edit says so (This text isn't in any content file.). Put interface text — button labels, footer lines, menu items — in a data file under src/data/ and read it in the component. Making an Astro site easy to edit shows the pattern the starter uses.

Link to this section: 7. Choose how they will run it

They…Give themRead
work on their own computer and don't use a terminalthe desktop app (unsigned builds today)Desktop app
are a team, or shouldn't install anythinga hosted Galley behind a password, on HTTPSHosting for a team
are comfortable with a terminalthe command line, galley in the site's folderCommand line

On every machine, set the author identity in App settings › You (it starts from this computer's git user.name and user.email): publishes are committed as that person.

Link to this section: 8. Do one round trip together

Change a heading, open the proof, publish, find it in Version history, and undo it. That is the whole loop your editor needs, and it proves the credentials, the branch and the live address are right before you leave.

Link to this section: Next