I’d like to learn OPENRNDR while on the train without internet.
Is there a way to download the guide for offline reading?
I know there are the examples , but they don’t have any supporting text in them.
I remember there used to be a Chrome extension which might have worked offline, but I can’t find that anymore. I could also save every page one by one but that would be pretty tedious.
I realized the sources for the guide can be cloned from its repo:
https://github.com/openrndr/openrndr-guide
It’s not as good as having the readable version offline, but markdown is not too bad either.
abe
June 16, 2022, 10:45am
3
Hello and welcome to the forum
I wrote this bash script to create a PDF version of the guide:
justTheDocsToPDF.bash
#!/usr/bin/bash
mkdir /tmp/manual
cd /tmp/manual
# curl downloads the index page of the website
# grep extracts the <nav> ... </nav> section
# sed(1) injects a line break in front of every https://guide URL
# sed(2) deletes from each line the " character and everything that follows, leaving the clean URL
# tail deletes the first line, which contains a lonely <nav> tag
This file has been truncated. show original
I’ll ask where the PDF file can be hosted and share the link.
1 Like
abe
June 17, 2022, 5:22am
4
Here my first attempt at creating an offline version of the
1 Like
abe
January 24, 2024, 1:22pm
5
I updated the bash script above and generated a new PDF
Not book publishing quality but at least something you can read on the train
Note to myself or to anyone who wants to make the PDF look better: to improve the design we can:
define a @media print
block at the bottom of custom.scss with any CSS customizations we want while printing / creating the PDF.
generate the guide with the new CSS and push it to GitHub.
call wkhtmltopdf --print-media-type
in the bash script above to make sure the print block is used while generating the PDF.
1 Like