Git repo commits not syncing to gitbook (Monorepo) #329
Unanswered
strazto
asked this question in
3. Git Sync
Replies: 1 comment
-
Hello @strazto, I'm sorry to hear you're having trouble! It's possible your issue was a temporary one, now that your space is successfully synced. However, if your repo commits are still not syncing to GitBook, we'd have to inspect logs for any errors. Could you please share your space ID? You can email us at [email protected]. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Related: #285
Problem:
In a space configured to sync with GitHub under the monorepo configuration, commits to the relevant branch + project root in GitHub are not being reflected back in GitBook
Configuration
I connected GitBook to a GitHub repo, using the "Monorepo" feature to specify a subfolder as the content root.
I chose GitHub -> GitBook for my initial sync strategy (I forget the specific wording of this initialization option)
My intended usage of GitBook is to host a combination of manually written documents, as well as one or more collections of statically generated API docs that can be generated and committed manually, or perhaps as part of some CI.
Current Behaviour:
Change History
The initial github -> GitBook import worked, however subsequent updates / pushes to
./docs/userdocs
have not been reflected in GitBook.I've been able to make a CR from gitbook which wrote to the repo with the stale state that gitbook could see - gitbook is able to see this change in the history, however it can't see prior or subsequent changes (besides the initial sync) from GitHub -> GitBook
Document State
The content / state of documents seen in GitBook does not reflect changes made in GitHub.
In the following example, I realized that GitBook doesn't give
yaml
frontmatter special treatment and renders it as if it were markdown, so I removed the frontmatterGitBook - Still contains now removed
yaml
frontmatter:GitHub - Preview no longer contains removed
yaml
frontmatter:Expected Behaviour
The current state of documents in GitBook matches that seen in the same document on GitHub
The commit history displayed in GitBook is equivalent to the commit history seen in that directory in GitHub.
Background
This issue is actually documented in #285 ,
However that discussion was resolved prematurely by the author with a workaround that doesn't constitute a viable solution:
Beta Was this translation helpful? Give feedback.
All reactions