# Troubleshooting

Fixes for the most common Git Sync problems.

The site's Git Sync settings show each space's folder, its status and, when something went wrong, the
error. A space's own settings show its last synced commit too.

<details>

<summary>"No pages found"</summary>

The folder has no `SUMMARY.md` and no Markdown files. Check the **directory** in the settings and the
`root` in `.docsheaf.yaml` — together they must lead to the Markdown files.

</details>

<details>

<summary>"Another space already syncs this folder"</summary>

Each folder of a branch belongs to one space, and folders can't be inside one another — a space at
the repository root can't share its branch with other spaces. Give each space a sibling folder, like
`docs/guides` next to `docs/api`.

</details>

<details>

<summary>A space says it isn't syncing</summary>

Its folder — its URL slug inside the site's folder — would share files with another space's folder,
for example when another space syncs the repository root. Choose **Choose a folder** next to it in the
site's Git Sync settings and give it a folder of its own.

</details>

<details>

<summary>A push opened a change request instead of publishing</summary>

That's expected when the space changed in Docsheaf since the last sync, or when the space requires
review. Review and merge the change request; later pushes update it. Exports wait until it's merged
(the result, Git's changes included, is exported) or archived (the space's content wins and is exported
over Git's changes).

</details>

<details>

<summary>A page lost its custom file name</summary>

Pages keep their file while their slug and parent stay the same. Renaming the slug or moving the page
in Docsheaf gives it the export's natural path, `<parent>/<slug>.md`.

</details>

<details>

<summary>An image didn't come through</summary>

Images must be referenced with a relative path that exists in the repository, and be at most 25 MB.
Images on other hosts are kept as links.

</details>

<details>

<summary>A page's icon disappeared</summary>

Only emoji icons are imported. GitBook icon names (like `rocket`) are dropped — set an emoji instead.

</details>

<details>

<summary>The connection says it failed</summary>

The GitHub App was uninstalled, the repository was removed or renamed, the branch was deleted, or (on
GitLab) your authorization expired. Disconnect and connect again from the site's Git Sync settings.

</details>

<details>

<summary>Nothing happens after a push</summary>

Check that the push was to the synced branch and touched the synced folder. Missed webhooks are caught
by a sweep every 15 minutes, or choose **Sync now**.

</details>
