Similar question here

I had this question because I don't understand github pages, the underlying steps involve

  1. build the _book folder, this is the static content that will be served

  2. create gh-pages branch copy the _book folder content into gh-pages

  3. github will then serve the content

    the command gitbook publish will finish all 3 steps. but I am not familiar with grunt as well , as npm install . is a pre-step.

Answer from zinking on Stack Overflow
🌐
Reddit
reddit.com › r/gitlab › how can i have a private page of my gitbook on gitlab?
r/gitlab on Reddit: How can I have a private page of my gitbook on gitlab?
January 4, 2022 -

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.

Gitlab pages stuck in Private? Sep 29, 2024
r/gitlab
last yr.
Configuring GitLab Pages Help! Jan 8, 2025
r/gitlab
last yr.
How to create a gitlab page? May 19, 2025
r/gitlab
last yr.
Self hosted Gitlab CE how to get Pages? Jan 8, 2026
r/gitlab
8mo ago
More results from reddit.com
🌐
Medium
medium.com › @richdayandnight › simple-tutorial-on-hosting-your-gitbook-documentation-on-github-pages-bonus-with-gitbook-editor-f27f60d5d408
Simple tutorial on hosting your Gitbook documentation on Github pages (bonus: with Gitbook Editor) | by Rich Yap | Medium
June 9, 2020 - Simple tutorial on hosting your Gitbook documentation on Github pages (bonus: with Gitbook Editor) In this article, you’ll be able to publish your own Gitbook using Github pages in less than 5 …
Discussions

authentication - How can one manage the access of a book created using GitBook? - Stack Overflow
I have created a book using GitBook. I want only specific set of people to be able to read my book. These set of people should be able to access it by logging in somewhere or by any other method. How shall I achieve this? Even if the link is public, how shall I restrict the users who see it? (I don't want to add them in the collaborators list) ... So in your case, providing your book is private (private GitHub ... More on stackoverflow.com
🌐 stackoverflow.com
Public Git Pages on a private repo?
https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. You could, however, use a static site deployment using Cloudflare Pages or Digital Ocean Apps for free by linking a private repo. More on reddit.com
🌐 r/github
4
3
January 10, 2022
How to create a Github pages website with private access? - Stack Overflow
I have a Github organization, and I am going to create a private or internal repo in that organization. That repo is going to host a Github Pages site. But I want the site to be private and not More on stackoverflow.com
🌐 stackoverflow.com
Private GitHub Pages
Something I've been wanting to see for some time now is being able to host private sites that can only be viewed internally ie: members of an organization or team or even just collaborators to ... More on github.com
🌐 github.com
68
June 23, 2016
🌐
GitHub
github.com › GitbookIO › gitbook
GitHub - GitbookIO/gitbook: The open source frontend for GitBook doc sites · GitHub
This repository contains the open source code used to render GitBook's published content. ... To run a local version of this project, please follow these simple steps. ... Clone the repo into a public GitHub repository. If you plan to distribute the code, keep the source code public to comply with GNU GPLv3. To clone in a private repository, acquire a commercial license.
Author: GitbookIO
🌐
GitBook
docs.gitbook.com › publishing-documentation › publish-a-docs-site › share-links
Private publishing with share links | GitBook Documentation
This feature is available on Premium and Ultimate site plans. You can share you content privately with customers or partners without needing to invite them to your organization by using share links.
🌐
GitHub
github.com › orgs › GitbookIO › discussions › 769
🔒 Hidden Pages · GitbookIO · Discussion #769
Group-level controls: Manage access at both individual page and group levels for better content security. 👉 Try it out and see how it works for you! Have any feedback or suggestions? Join the discussion or leave your thoughts—we’re eager to hear from you! 📖 https://docs.gitbook.com/content-editor/editor/content-structure/content-in-a-space#hide-a-page-from-the-table-of-contents
🌐
GitHub
gist.github.com › hdsenevi › fceb19ea02ff0aaf5efb102425a0393b
Publishing Gitbook documentation on Github pages · GitHub
Publishing Gitbook documentation on Github pages · Raw · publish-gitbook-docs-to-github-pages.md · Create git repo · Clone git repo · Install gitbook-cli if not setup already npm install -g gitbook-cli · gitbook help to verify · Go inside repo folder ·
Find elsewhere
🌐
Thomas Suedbroecker
suedbroecker.net › 2020 › 05 › 14 › get-started-with-gitbook-and-github-a-small-guide
Get started with GitBook and GitHub a small guide – Thomas Suedbroecker's Blog
December 1, 2021 - That’s just a short guide, how to create an own GitBook page and integrate that page with a private GitHub project.
🌐
Stack Overflow
stackoverflow.com › questions › 44310434 › how-can-one-manage-the-access-of-a-book-created-using-gitbook
authentication - How can one manage the access of a book created using GitBook? - Stack Overflow
I have created a book using GitBook. I want only specific set of people to be able to read my book. These set of people should be able to access it by logging in somewhere or by any other method. How shall I achieve this? Even if the link is public, how shall I restrict the users who see it? (I don't want to add them in the collaborators list) ... So in your case, providing your book is private (private GitHub repo), an access key is a solution, but you cannot easily control the set of people using it; ie: you can only control the set you are giving the token to.
🌐
StackShare
stackshare.io › stackups › gitbook-vs-github-pages
GitHub Pages vs Gitbook | What are the differences? | StackShare
GitHub Pages - Public webpages hosted directly from your GitHub repository. Just edit, push, and your changes are live. Gitbook - It is a modern documentation platform where teams can document everything from products, to APIs and internal knowledge-bases. It is a place to think and track ideas for you & your team.
🌐
HackerNoon
hackernoon.com › how-to-publish-a-book-with-gitbook-cli-and-github-pages-in-7-minutes-i61w3wjn
How to Publish a Book with GitBook CLI and GitHub Pages in 7 Minutes | HackerNoon
October 21, 2020 - writing#documentation#github-pages#gitbook#digital-publishing#gitlab#github#self-publishing#hackernoon-top-story#web-monetization
🌐
GitHub
gist.github.com › kinsidar › c14e9977a3cbe971a17b9b928d0583ce
Setting up gitbook and hosting on github pages · GitHub
This is a documentation of setting up the basic requirements for your gitbook and hosting onto github pages, refer to gitbook toolchain documentation for details on how to structure and write your gitbook
🌐
Cjvanlissa
cjvanlissa.github.io › gitbook-demo › getgitbook.html
Chapter 3 Get your GitBook | A GitBook Example for Teaching
On the Settings page, scroll all the way down until you reach a section called GitHub Pages. There, under the “Source” heading, click the word None, and select master branch /docs folder. When you select it, the page will update, and if you scroll back down to the GitHub Pages section, ...
🌐
Jinlaixu
blog.jinlaixu.net › books › gitbook-documentation › book › visibility.html
Visibility | GitBook Documentation
Public books are visible to everybody but only collaborators can update it. Private books are visible only by the collaborators. You can switch your book from public to private and the inverse. Paid books can only be public. Home and Explore pages only list books that are already successfully built.
🌐
GitHub
github.com › isaacs › github › issues › 699
Private GitHub Pages · Issue #699 · isaacs/github
June 23, 2016 - Something I've been wanting to see for some time now is being able to host private sites that can only be viewed internally ie: members of an organization or team or even just collaborators to a single repository. The main use case I see for this is internal documentation. ... I've seen Jekyll Auth, but it would be much better to have the site hosted with GitHub Pages instead of hosting elsewhere.
Author: isaacs
🌐
GitBook
docs.gitbook.com › published-documentation › share › space-publishing
Share a space | GitBook Documentation
March 20, 2024 - Page links · Reusable content blocks (beta) Broken links · Searching content · GitBook AI · Search & Quick find · Version control · Published Documentation · Overview · Publish a docs site · Public publishing · Private publishing with share links ·