Similar question here
I had this question because I don't understand github pages, the underlying steps involve
build the _book folder, this is the static content that will be served
create gh-pages branch copy the _book folder content into gh-pages
github will then serve the content
the command
gitbook publishwill finish all 3 steps. but I am not familiar withgruntas well , asnpm install .is a pre-step.
I have used gitbook template to create a gitbook on gitlab, everything is fine.
I can see the content on my desktop with local server by using command:
gitbook serve
And the page can be visited at http://localhost:4000
My question is:
How can I make the page be hosted on gitlab and only visited by myself or people granted by me? Is that possible? Cause github explicitly stated the repository have to be public to use the function of page. How about gitlab? Thanks.
authentication - How can one manage the access of a book created using GitBook? - Stack Overflow
Public Git Pages on a private repo?
How to create a Github pages website with private access? - Stack Overflow
Private GitHub Pages
Is it possible to have a public Git Page for a private repo, where only the resulting webpage can be publicly seen, but the code in repo is still private.
Welcome to Gitbook. This service might help you. https://docs.gitbook.com/integrations/github/import-of-github-wikis
This service as far I read doesnt support github wiki directly.
However because github stores wiki as a seperate repository with reponame.wiki.git, you should be able to import this github repo into gitbook.
We wanted to do the same thing and sync our Gitlab-based wiki associated with a project to Gitbook to allow non technical team members without Gitlab access to also view and edit. To do this we:
Created a new Gitbook project/space for the wiki info and synchronized with with a new, empty Gitlab repo (since Gitbook does not allow sync directly with the wiki).
Added this new Gitlab repo as a second remote origin to the existing wiki repo and then pushed to this origin.
Now all we hav to do to keep things updated is to pull the latest from both possible remote sources and then merge and push them.