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

Offline Tutorial #1164

Open
txorav opened this issue Oct 23, 2022 · 3 comments
Open

Offline Tutorial #1164

txorav opened this issue Oct 23, 2022 · 3 comments

Comments

@txorav
Copy link

txorav commented Oct 23, 2022

hello guys
i need an offline version of this tutorial if there is i would likr to have it and thank you

@bjorn3
Copy link
Contributor

bjorn3 commented Oct 23, 2022

There are two options:

You could clone this repo and build it yourself. See

- name: 'Download Zola'
run: curl -sL https://github.com/getzola/zola/releases/download/v0.16.1/zola-v0.16.1-x86_64-unknown-linux-gnu.tar.gz | tar zxv
- name: 'Install Python Libraries'
run: python -m pip install --user -r requirements.txt
working-directory: "blog"
- name: "Run before_build.py script"
run: python before_build.py
working-directory: "blog"
- name: "Build Site"
run: ../zola build
working-directory: "blog"
for the steps necessary for building it. You can then find the pages in blog/public.

Alternatively you can take the official build from CI. For example as of writing this https://github.com/phil-opp/blog_os/actions/runs/3274928653 is the last CI run. In the artifacts section there is the generated_site artifact which is a zip file containing the entire site.

@mcandre
Copy link

mcandre commented Jan 1, 2023

Second this feature request, as a way to grow readership.

I don't imagine the ZIP is an ePUB, right? Just a siterip, requiring a full Web browser.

What if we received the articles as a Git Book, which would provide a server generated offline ebook, in suitable formats for popular ereader applications?

@phil-opp
Copy link
Owner

phil-opp commented Jan 2, 2023

Yes, the zip is the website in HTML format, so you need a web browser to view it.

Unfortunately, we don't have EPUB support right now (see also #1070). I think it should be possible to use calibre and its ebook-convert CLI tool to create a book from the HTML website, but we probably need to do some layout adjustments before doing the conversion.

Switching to GitBook is not planned because I like to keep the blog format.

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