Skip to content

docs(gitbook): add gitbook-docs.yaml for Site Git Sync - #23

Merged
Oyinkans0la12 merged 1 commit into
mainfrom
docs/gitbook-sync
Sep 16, 2026
Merged

Oyinkans0la12 merged 1 commit into
mainfrom
docs/gitbook-sync

Conversation

@Oyinkans0la12

Copy link
Copy Markdown
Collaborator

Prepares this repo for GitBook Site Git Sync by adding gitbook-docs.yaml at the repository root, validated against https://api.gitbook.com/gitbook-docs.yaml.

Content

One space, no sections:

site:
  title: SplitStream Actions
  structure:
    - type: space
      key: space-docs
      title: Documentation
      path: docs
      default: true
      content:
        directory: ./docs
        language: en

docs/ is the only documentation directory in the repo, and the schema does not allow a site that has sections to also list spaces at the top level — a single content directory does not justify a nav layer above it. default: true satisfies the "exactly one default" rule for a section-less site.

Schema rules checked

  • Every key unique across the file — one node, one key.
  • Section-less site marks exactly one top-level space default: true.
  • Space carries type, key, title, path, content.
  • content.directory: ./docs resolves against the project directory (the repo root, where this file lives) and that directory exists.

Deliberately not mapped

  • Root-level README.md, CONTRIBUTING.md, SECURITY.md — spaces point at directories, not individual files. A space at ./ would also sweep in docs/, duplicating it.
  • .github/, assets/, schemas/, src/, test/, dist/ — templates, a banner SVG, and code; none is site content.

…space

The synced site had no site config, so GitBook had nothing to derive
navigation from. Point one space at docs/ — the only documentation directory in
the repo — and mark it default. No sections: a site with sections cannot also
list spaces at the top level, and a single content directory does not justify a
nav layer above it.

Generated with Codebuff 🤖

Co-Authored-By: Codebuff <noreply@codebuff.com>
@Oyinkans0la12
Oyinkans0la12 merged commit 02dae56 into main Sep 16, 2026
1 check passed
@Oyinkans0la12
Oyinkans0la12 deleted the docs/gitbook-sync branch September 16, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant