{"id":3979,"date":"2024-11-18T07:00:00","date_gmt":"2024-11-18T05:00:00","guid":{"rendered":"https:\/\/www.my-it-brain.de\/wordpress\/?p=3979"},"modified":"2024-11-18T00:28:58","modified_gmt":"2024-11-17T22:28:58","slug":"wie-kann-ich-die-dokumentation-von-docs-redhat-com-am-einfachsten-als-pdf-herunterladen","status":"publish","type":"post","link":"https:\/\/www.my-it-brain.de\/wordpress\/wie-kann-ich-die-dokumentation-von-docs-redhat-com-am-einfachsten-als-pdf-herunterladen\/","title":{"rendered":"Wie kann ich die Dokumentation von docs.redhat.com am einfachsten als PDF herunterladen?"},"content":{"rendered":"\n<p>Unter &#8218;<a href=\"http:\/\/docs.redhat.com\">http:\/\/docs.redhat.com<\/a>&#8218; findet man gesammelt und sortiert Red Hats Dokumentation, z.B. zu <a href=\"https:\/\/docs.redhat.com\/en\/documentation\/red_hat_ansible_automation_platform\/2.5\">Ansible Automation Platform<\/a>, <a href=\"https:\/\/docs.redhat.com\/en\/documentation\/openshift_container_platform\/4.17\">OpenShift<\/a>, <a href=\"https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/9\">RHEL<\/a>, <a href=\"https:\/\/docs.redhat.com\/en\/documentation\/red_hat_virtualization\/4.4\">RHV<\/a>, <a href=\"https:\/\/docs.redhat.com\/en\/documentation\/red_hat_satellite\/6.15\">Satellite<\/a>, etc.<\/p>\n\n\n\n<p>Neben der Online-Version im Single- und Multi-Page-Format kann man die einzelnen Texte auch als PDF herunterladen. Dies manuell zu tun, ist allerdings m\u00fchselig. Deutlich leichter geht es mit dem <a href=\"https:\/\/gist.github.com\/moriwaka\/55ff6cb8b43655708e99283f6aa886ac\">PDF Document Downloader<\/a> von <a href=\"https:\/\/gist.github.com\/moriwaka\">Kazuo Moriwaka<\/a>. Es handelt sich dabei um ein Bash-Skript, bestehend aus <code>awk<\/code>, <code>curl<\/code>, <code>grep<\/code>, und <code>parallel<\/code>, welches als Argument die Basis-URL f\u00fcr eine Produktkategorie \u00fcbernimmt und anschlie\u00dfend alle PDF-Dateien ermittelt und herunterl\u00e4dt.<\/p>\n\n\n\n<p>Klingt gut? So bekommt ihr das Skript:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Ladet euch die aktuelle Version als Zip-Datei aus dem <a href=\"https:\/\/gist.github.com\/moriwaka\/55ff6cb8b43655708e99283f6aa886ac\">Gist<\/a> herunter<\/li>\n\n\n\n<li>Entpackt das Zip-Archiv in ein Verzeichnis eurer Wahl, z.B. nach <code>~\/bin\/<\/code><\/li>\n\n\n\n<li>Macht das Skript ausf\u00fchrbar: <code>chmod u+x ~\/bin\/fetchdoc.sh<\/code><\/li>\n<\/ol>\n\n\n\n<p>Folgender Code-Block zeigt einige Beispiele, mit denen ich mir einen Teil der Dokumentation auf mein Laptop gezogen habe:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ~\/bin\/fetchdoc.sh https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/7\n\n$ ~\/bin\/fetchdoc.sh https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/8\n\n$ ~\/bin\/fetchdoc.sh https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/9\n\n$ ~\/bin\/fetchdoc.sh https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/10-beta\n\n$ ~\/bin\/fetchdoc.sh https:\/\/docs.redhat.com\/en\/documentation\/red_hat_ansible_automation_platform\/2.5\n\n$ ~\/bin\/fetchdoc.sh https:\/\/docs.redhat.com\/en\/documentation\/red_hat_satellite\/6.15\n\n$ ~\/bin\/fetchdoc.sh https:\/\/docs.redhat.com\/en\/documentation\/red_hat_satellite\/6.16\n\n$ ~\/bin\/fetchdoc.sh https:\/\/docs.redhat.com\/en\/documentation\/red_hat_virtualization\/4.4<\/code><\/pre>\n\n\n\n<p>Thank you Kazuo Moriwaka for this awesome little helper!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unter &#8218;http:\/\/docs.redhat.com&#8218; findet man gesammelt und sortiert Red Hats Dokumentation, z.B. zu Ansible Automation Platform, OpenShift, RHEL, RHV, Satellite, etc. Neben der Online-Version im Single- und Multi-Page-Format kann man die einzelnen Texte auch als PDF herunterladen. Dies manuell zu tun, ist allerdings m\u00fchselig. Deutlich leichter geht es mit dem PDF Document Downloader von Kazuo Moriwaka.<span class=\"continue-reading\"> <a href=\"https:\/\/www.my-it-brain.de\/wordpress\/wie-kann-ich-die-dokumentation-von-docs-redhat-com-am-einfachsten-als-pdf-herunterladen\/\">[Weiterlesen&#8230;]<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_metis_text_type":"","_metis_text_length":0,"_post_count":0,"footnotes":""},"categories":[448],"tags":[6,714,430,854,305,46],"class_list":["post-3979","post","type-post","status-publish","format-standard","hentry","category-fragen-und-antworten","tag-anleitung","tag-dokumentation","tag-osbn","tag-pdf","tag-planet","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts\/3979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/comments?post=3979"}],"version-history":[{"count":1,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts\/3979\/revisions"}],"predecessor-version":[{"id":3980,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/posts\/3979\/revisions\/3980"}],"wp:attachment":[{"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/media?parent=3979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/categories?post=3979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.my-it-brain.de\/wordpress\/wp-json\/wp\/v2\/tags?post=3979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}