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

move away from GitBook for default rendering #346

Open
afeld opened this issue Jun 5, 2019 · 3 comments
Open

move away from GitBook for default rendering #346

afeld opened this issue Jun 5, 2019 · 3 comments

Comments

@afeld
Copy link
Member

afeld commented Jun 5, 2019

It appears that GitBook has moved to a SaaS model:

We have moved away from the static site generator model ... you can no longer host a GitBook generated documentation yourself.

https://docs.gitbook.com/v2-changes/important-differences#cli-toolchain

This is therefore not a great default option for OpenControl content rendering. Seems that a static site generator might be preferable. Options:

Tool Pros Cons
Jekyll Flexible; works on GitHub Pages; proofs of concept exist Requires Ruby, though this could possibly be worked around
Hugo Easy to install on different operating systems; super fast Less widely used; doesn't work on GitHub Pages
hyperGRC Provides a nice UI Requires Python/Docker
Gatsby Very flexible input format (Still) requires Node.js
@mogul
Copy link
Contributor

mogul commented Jun 6, 2019 via email

@biggsean
Copy link

@mogul you can do that with hugo as well...

@afeld I agree, but you can still use the old gitbook-cli for the time being... the relevant parts of my dockerfile:

# Install gitbook
ARG NODE_VERSION=v6.3.0
ARG NODE=node-$NODE_VERSION-linux-x64
ARG GITBOOK_VERSION=2.6.7
ENV PATH=/usr/local/lib/nodejs/$NODE/bin:$PATH
RUN yum install -y tar xz && \
    mkdir -p /usr/local/lib/nodejs && \
    curl https://nodejs.org/dist/$NODE_VERSION/$NODE.tar.xz | \
      tar xJvf - -C /usr/local/lib/nodejs && \
    npm install -g gitbook-cli && \
    gitbook fetch $GITBOOK_VERSION

@aegershman
Copy link
Contributor

If it means anything, hugo does indeed work with github pages, e.g. can produce compiled output into a folder, like /docs or whatever the case may be, and github pages will render it. It's gotten better with time.

In any case, it'd be nice to continue the current practice of having a default compiled output, to help prevent too much quibbling and fiddling with zillions of configuration options. Even though it's pretty outdated at this point, I do love the simple and clean aesthetics of gitbooks. Not saying it couldn't be extended, but it is nice to have an opinionated standardized default which covers both human readability (github pages) and can generate content which is portable for auditors (e.g. being able to produce a pdf output)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants