Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing site using GitBook #153

Open
AlexanderSaydakov opened this issue Dec 6, 2023 · 13 comments
Open

Publishing site using GitBook #153

AlexanderSaydakov opened this issue Dec 6, 2023 · 13 comments

Comments

@AlexanderSaydakov
Copy link
Contributor

As a part of migration to GitBook we need to understand how do we go from the source code to published ASF site

@leerho
Copy link
Contributor

leerho commented Dec 6, 2023

According to INFRA:
Is it possible to use GitBook as our website?

Is it a static website? If so, then yes, you could set up a github action or similar ci job to build it, then publish via .asf.yaml.

According to GitBook:
Can a website created with GitBook be exported as a static website to another website server?

Yes, a website created with GitBook can be exported as a static website and hosted on another website server. GitBook provides an option to export your content in HTML format, which can then be uploaded to any web server for hosting.

@leerho
Copy link
Contributor

leerho commented Dec 6, 2023

According to GitBook:
How do I export a GitBook website as HTML?

To export a GitBook website as HTML, you can use the "Export as HTML" feature in GitBook. Here are the steps to do it:

  1. Open your GitBook website in the GitBook editor.

  2. Click on the "Share" button in the top-right corner of the editor.

  3. In the share modal, click on the "Export as HTML" option.

  4. Wait for the export process to complete.

  5. Once the export is finished, you will be able to download a ZIP file containing the HTML version of your GitBook website.

Please note that this feature may not be available on all GitBook plans. Make sure to check if your plan includes the "Export as HTML" feature.

@jmalkin
Copy link
Contributor

jmalkin commented Dec 6, 2023

Does our account allow that export? With the test repo right now, I think I only see export as PDF.

@leerho
Copy link
Contributor

leerho commented Dec 6, 2023

I'm trying to figure that out. But I can't find the "share" button.

@leerho
Copy link
Contributor

leerho commented Dec 7, 2023

GitBook requires a "Pro" or "Enterprise" account to be able to export HTML.
GitBook is dead.

@c-dickens
Copy link
Contributor

@leerho where did you find this information about Gitbook? I have looked online but can't find any documentation of the above.

@leerho
Copy link
Contributor

leerho commented Dec 7, 2023

I did the following query:
What plans allow exporting GitBook to HTML?

The Pro and Enterprise plans allow exporting GitBook to HTML.

However, none of the 5 sources mention HTML, so this answer is not reliable.

@leerho
Copy link
Contributor

leerho commented Dec 7, 2023

So I went and examined the Pinot website source. link
At the top of the website source README.md is:

This website is built using Docusaurus 2, a modern static website generator.

NOTE: You need to install YARN

So it is not GitBooks.

@leerho
Copy link
Contributor

leerho commented Dec 7, 2023

The yarn link above is old, the new one is yarnpkg.com
It is a JavaScript / Node.js package manager used to manage dependencies in JavaScript projects.

@leerho
Copy link
Contributor

leerho commented Dec 7, 2023

Here is one account of how and why Redux decided to move from GitBooks to Docusaurus
Redux issues 3161

@leerho
Copy link
Contributor

leerho commented Dec 7, 2023

Apparently GitBooks started out as purely open-source, but has now moved towards a commercial product. And from what I have read, this move has made it more problematic for open-source sites.

@davecromberge
Copy link
Member

Hi Lee and team,
I've spoken to one of the Pinot team, Xiang Fu, and asked for some clarification on their setup.

The pinot website is not on gitbook, only the docs are hosted on gitbook. In other words:
https://pinot.apache.org/ is hosted by https://github.com/apache/pinot-site
https://docs.pinot.apache.org/ is by gitbook and backed by https://github.com/pinot-contrib/pinot-docs

Xiang is happy to take questions from Charlie and myself if you would like more detail and are still interested in this option.

@leerho
Copy link
Contributor

leerho commented Dec 9, 2023

The architecture we are thinking about is something similar.

  • Our website front-page would be hosted by apache.org, but we haven't decided on the static-website-generator to use. I see that Pinot is using Docusaurus 2. We would appreciate some feedback about how pleased they are with Docusaurus (pros/cons) and if they considered any other static generators and reasons for choosing Docusaurus.
  • Our code docs (Javadocs, Doxygen, Pydoc, etc) will be git-hub pages specific to each language which are separated in their own repos. This seems to work pretty well and can be automated.
  • We are looking hard at GitBooks for all the other documentation (Getting started, tutorials, references, etc.). So any feedback on their experience (pros/cons) with GitBooks would also be appreciated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants