Comment on page
Content configuration
If you’d like to configure GitSync further, you can add a
.gitbook.yaml
file at the root of your repository to tell GitBook how to parse your Git repository.Here’s an example:
.gitbook.yaml
root: ./
structure:
readme: README.md
summary: SUMMARY.md
redirects:
previous/page: new-folder/page.md
The path to lookup for your documentation defaults to the root directory of the repository. Here’s how you can tell GitBook to look into a
./docs
folder:.gitbook.yaml
root: ./docs/
All other options that specify paths will be relative to this root folder. So if you define root as
./docs/
and then structure.summary
as ./product/SUMMARY.md
, GitBook will actually look for a file in ./docs/product/SUMMARY.md
.