Repository navigation
docs(gitbook): add gitbook-docs.yaml for Site Git Sync - #23
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepares this repo for GitBook Site Git Sync by adding
gitbook-docs.yamlat the repository root, validated against https://api.gitbook.com/gitbook-docs.yaml.Content
One space, no sections:
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: truesatisfies the "exactly one default" rule for a section-less site.Schema rules checked
keyunique across the file — one node, one key.default: true.type,key,title,path,content.content.directory: ./docsresolves against the project directory (the repo root, where this file lives) and that directory exists.Deliberately not mapped
README.md,CONTRIBUTING.md,SECURITY.md— spaces point at directories, not individual files. A space at./would also sweep indocs/, duplicating it..github/,assets/,schemas/,src/,test/,dist/— templates, a banner SVG, and code; none is site content.