diff --git a/.github/workflows/ibis.yml b/.github/workflows/ibis.yml index e2b169513..f5446f0a5 100644 --- a/.github/workflows/ibis.yml +++ b/.github/workflows/ibis.yml @@ -53,6 +53,9 @@ jobs: - name: Generate HTML run: composer run html + - name: Generate Sample PDF (Light Theme) + run: composer run sample && composer run sample-dark + - name: Check for changes id: verify-changed-files run: | diff --git a/composer.json b/composer.json index 923fdbe16..d6769ea98 100644 --- a/composer.json +++ b/composer.json @@ -17,6 +17,8 @@ "pdf": "vendor/bin/ibis-next pdf -c ebook/en/content -d ebook/en", "pdf-dark": "vendor/bin/ibis-next pdf dark -c ebook/en/content -d ebook/en", "epub": "vendor/bin/ibis-next epub -c ebook/en/content -d ebook/en", - "html": "vendor/bin/ibis-next html -c ebook/en/content -d ebook/en" + "html": "vendor/bin/ibis-next html -c ebook/en/content -d ebook/en", + "sample": "vendor/bin/ibis-next sample -c ebook/en/content -d ebook/en", + "sample-dark": "vendor/bin/ibis-next sample dark -c ebook/en/content -d ebook/en" } } diff --git a/docs/download.md b/docs/download.md index 0dcb5be4a..cceb984cb 100644 --- a/docs/download.md +++ b/docs/download.md @@ -1,18 +1,17 @@ ---- +# Download This Book as a PDF -pdf: - parent_folder: "ebook/en/export" - dark: - filename: "101-linux-commands-ebook-dark.pdf" - light: - filename: "101-linux-commands-ebook-light.pdf" +The 101 Linux Commands eBook is available in multiple formats: ---- +## PDF Downloads -{% import 'macros/all.j2' as macros %} +- **[📄 Light Mode PDF](https://github.com/bobbyiliev/101-linux-commands-ebook/releases/latest/download/101-linux-commands-ebook-light.pdf)** - Optimized for printing and light theme readers +- **[🌙 Dark Mode PDF](https://github.com/bobbyiliev/101-linux-commands-ebook/releases/latest/download/101-linux-commands-ebook-dark.pdf)** - Perfect for dark theme readers and reduced eye strain -# Download This Book as a PDF +## Other Formats + +- **[📚 EPUB](https://github.com/bobbyiliev/101-linux-commands-ebook/releases/latest/download/101-linux-commands-ebook.epub)** - For e-readers (Kindle, Apple Books, etc.) +- **[🌐 HTML](https://github.com/bobbyiliev/101-linux-commands-ebook/releases/latest/download/101-linux-commands-ebook.html)** - Single-page web version -- **Dark** mode {{ macros.common.link_to_pdf(pdf.parent_folder ~ '/' ~ pdf.dark.filename, message="PDF", icon="fas fa-file-pdf") }} +## Release Notes -- **Light** mode {{ macros.common.link_to_pdf(pdf.parent_folder ~ '/' ~ pdf.light.filename, message="PDF", icon="fas fa-file-pdf") }} +All downloads are automatically generated from the latest content using our [GitHub Actions workflow](https://github.com/bobbyiliev/101-linux-commands-ebook/actions). Check the [releases page](https://github.com/bobbyiliev/101-linux-commands-ebook/releases) for version history and detailed release notes. diff --git a/ebook/en/export/sample-.101-linux-commands-ebook-light.pdf b/ebook/en/export/sample-101-linux-commands-ebook-dark.pdf similarity index 92% rename from ebook/en/export/sample-.101-linux-commands-ebook-light.pdf rename to ebook/en/export/sample-101-linux-commands-ebook-dark.pdf index fcc0d641b..8041fe595 100644 Binary files a/ebook/en/export/sample-.101-linux-commands-ebook-light.pdf and b/ebook/en/export/sample-101-linux-commands-ebook-dark.pdf differ diff --git a/ebook/en/export/sample-.101-linux-commands-ebook-dark.pdf b/ebook/en/export/sample-101-linux-commands-ebook-light.pdf similarity index 92% rename from ebook/en/export/sample-.101-linux-commands-ebook-dark.pdf rename to ebook/en/export/sample-101-linux-commands-ebook-light.pdf index 845af4a65..e25c6ca4b 100644 Binary files a/ebook/en/export/sample-.101-linux-commands-ebook-dark.pdf and b/ebook/en/export/sample-101-linux-commands-ebook-light.pdf differ