Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 22 additions & 14 deletions .github/workflows/ibis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
name: Ibis eBook Generation
name: Build eBooks

on:
push:
branches:
- main
branches: [main]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: '0'
- name: Build Ibis Export Files
uses: bobbyiliev/ibis-build-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
IBIS_PATH: './ebook/en/'
IBIS_BRANCH: 'main'
EMAIL: 'bobby@bobbyiliev.com'
COMMIT_MESSAGE: 'Updated Ibis Exorted Files'
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build eBooks with Ibis Next
uses: bobbyiliev/ibis-build-action@v2.0.0
with:
ibis_path: "./ebook/en"
ibis_branch: "main"
email: "bobby@bobbyiliev.com"
commit_message: "📚 Updated eBook files"
php_version: "8.2"
formats: "pdf,pdf-dark,epub,sample,sample-dark"
skip_push: "false"
25 changes: 0 additions & 25 deletions .github/workflows/pandoc.yml

This file was deleted.

1 change: 1 addition & 0 deletions ebook/en/assets/highlight.codeblock.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

166 changes: 166 additions & 0 deletions ebook/en/assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
/* EPUB Styles for 101 Linux Commands eBook */

body {
font-family: 'Times New Roman', Times, serif;
font-size: 16px;
line-height: 1.6;
margin: 0;
padding: 20px;
color: #333;
}

h1 {
font-size: 32px;
font-weight: bold;
margin-top: 40px;
margin-bottom: 20px;
page-break-before: always;
border-bottom: 2px solid #1a1c3e;
padding-bottom: 10px;
color: #1a1c3e;
}

h2 {
font-size: 28px;
font-weight: bold;
margin-top: 30px;
margin-bottom: 15px;
page-break-before: always;
color: #1a1c3e;
}

h3 {
font-size: 24px;
font-weight: bold;
margin-top: 25px;
margin-bottom: 10px;
color: #333;
}

h4, h5, h6 {
font-size: 20px;
font-weight: bold;
margin-top: 20px;
margin-bottom: 8px;
color: #333;
}

p {
margin-bottom: 15px;
text-align: justify;
}

ul, ol {
margin-bottom: 15px;
padding-left: 30px;
}

li {
margin-bottom: 5px;
}

pre {
background-color: #f5f5f5;
border: 1px solid #ddd;
border-radius: 4px;
padding: 15px;
margin: 20px 0;
overflow-x: auto;
font-family: 'Courier New', Courier, monospace;
font-size: 14px;
line-height: 1.4;
}

code {
font-family: 'Courier New', Courier, monospace;
font-size: 14px;
background-color: #f5f5f5;
padding: 2px 4px;
border-radius: 3px;
color: #A5215D;
}

pre code {
background: none;
padding: 0;
color: #2d2d2d;
}

blockquote {
margin: 20px 0;
padding: 15px 20px;
border-left: 4px solid #ccc;
background-color: #f9f9f9;
font-style: italic;
}

table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}

th, td {
border: 1px solid #ddd;
padding: 8px 12px;
text-align: left;
}

th {
background-color: #f5f5f5;
font-weight: bold;
}

a {
color: #1a1c3e;
text-decoration: underline;
}

a:hover {
color: #333;
}

img {
max-width: 100%;
height: auto;
display: block;
margin: 20px auto;
}

/* Special styles for aside blocks */
.aside {
margin: 20px 0;
padding: 15px;
border-radius: 5px;
border-left: 4px solid;
}

.aside.note {
background-color: #e3f2fd;
border-left-color: #2196f3;
}

.aside.tip {
background-color: #e8f5e8;
border-left-color: #4caf50;
}

.aside.warning {
background-color: #fff3e0;
border-left-color: #ff9800;
}

.aside.danger {
background-color: #ffebee;
border-left-color: #f44336;
}

/* Styling for command tables */
.command-table th {
background-color: #1a1c3e;
color: white;
}

.command-table td {
font-family: 'Courier New', Courier, monospace;
}
14 changes: 0 additions & 14 deletions ebook/en/epub.yml

This file was deleted.

15 changes: 15 additions & 0 deletions ebook/en/ibis.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@
*/
'author' => 'Bobby Iliev',

/**
* CSS inline style for the page header.
* If you want to skip header, comment the line
*/
'header' => 'font-style: italic; text-align: right; border-bottom: solid 1px #808080;',

/**
* Cover page image configuration.
*/
'cover' => [
'position' => 'position: absolute; left:0; right: 0; top: -.2; bottom: 0;',
'dimensions' => 'width: 210mm; height: 297mm; margin: 0;',
'image' => 'cover.jpg',
],

/**
* The list of fonts to be used in the different themes.
*/
Expand Down