Skip to content

Commit a3b4cb6

Browse files
authored
Switch to ibis-next (#186)
1 parent fd4870a commit a3b4cb6

File tree

5 files changed

+189
-53
lines changed

5 files changed

+189
-53
lines changed

.github/workflows/ibis.yml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
1-
name: Ibis eBook Generation
1+
name: Build eBooks
2+
23
on:
34
push:
4-
branches:
5-
- main
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
69

710
jobs:
811
build:
912
runs-on: ubuntu-latest
1013
steps:
11-
- uses: actions/checkout@main
12-
with:
13-
fetch-depth: '0'
14-
- name: Build Ibis Export Files
15-
uses: bobbyiliev/ibis-build-action@main
16-
env:
17-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
IBIS_PATH: './ebook/en/'
19-
IBIS_BRANCH: 'main'
20-
EMAIL: 'bobby@bobbyiliev.com'
21-
COMMIT_MESSAGE: 'Updated Ibis Exorted Files'
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- name: Build eBooks with Ibis Next
21+
uses: bobbyiliev/ibis-build-action@v2.0.0
22+
with:
23+
ibis_path: "./ebook/en"
24+
ibis_branch: "main"
25+
email: "bobby@bobbyiliev.com"
26+
commit_message: "📚 Updated eBook files"
27+
php_version: "8.2"
28+
formats: "pdf,pdf-dark,epub,sample,sample-dark"
29+
skip_push: "false"

.github/workflows/pandoc.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

ebook/en/assets/highlight.codeblock.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ebook/en/assets/style.css

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
/* EPUB Styles for 101 Linux Commands eBook */
2+
3+
body {
4+
font-family: 'Times New Roman', Times, serif;
5+
font-size: 16px;
6+
line-height: 1.6;
7+
margin: 0;
8+
padding: 20px;
9+
color: #333;
10+
}
11+
12+
h1 {
13+
font-size: 32px;
14+
font-weight: bold;
15+
margin-top: 40px;
16+
margin-bottom: 20px;
17+
page-break-before: always;
18+
border-bottom: 2px solid #1a1c3e;
19+
padding-bottom: 10px;
20+
color: #1a1c3e;
21+
}
22+
23+
h2 {
24+
font-size: 28px;
25+
font-weight: bold;
26+
margin-top: 30px;
27+
margin-bottom: 15px;
28+
page-break-before: always;
29+
color: #1a1c3e;
30+
}
31+
32+
h3 {
33+
font-size: 24px;
34+
font-weight: bold;
35+
margin-top: 25px;
36+
margin-bottom: 10px;
37+
color: #333;
38+
}
39+
40+
h4, h5, h6 {
41+
font-size: 20px;
42+
font-weight: bold;
43+
margin-top: 20px;
44+
margin-bottom: 8px;
45+
color: #333;
46+
}
47+
48+
p {
49+
margin-bottom: 15px;
50+
text-align: justify;
51+
}
52+
53+
ul, ol {
54+
margin-bottom: 15px;
55+
padding-left: 30px;
56+
}
57+
58+
li {
59+
margin-bottom: 5px;
60+
}
61+
62+
pre {
63+
background-color: #f5f5f5;
64+
border: 1px solid #ddd;
65+
border-radius: 4px;
66+
padding: 15px;
67+
margin: 20px 0;
68+
overflow-x: auto;
69+
font-family: 'Courier New', Courier, monospace;
70+
font-size: 14px;
71+
line-height: 1.4;
72+
}
73+
74+
code {
75+
font-family: 'Courier New', Courier, monospace;
76+
font-size: 14px;
77+
background-color: #f5f5f5;
78+
padding: 2px 4px;
79+
border-radius: 3px;
80+
color: #A5215D;
81+
}
82+
83+
pre code {
84+
background: none;
85+
padding: 0;
86+
color: #2d2d2d;
87+
}
88+
89+
blockquote {
90+
margin: 20px 0;
91+
padding: 15px 20px;
92+
border-left: 4px solid #ccc;
93+
background-color: #f9f9f9;
94+
font-style: italic;
95+
}
96+
97+
table {
98+
width: 100%;
99+
border-collapse: collapse;
100+
margin: 20px 0;
101+
}
102+
103+
th, td {
104+
border: 1px solid #ddd;
105+
padding: 8px 12px;
106+
text-align: left;
107+
}
108+
109+
th {
110+
background-color: #f5f5f5;
111+
font-weight: bold;
112+
}
113+
114+
a {
115+
color: #1a1c3e;
116+
text-decoration: underline;
117+
}
118+
119+
a:hover {
120+
color: #333;
121+
}
122+
123+
img {
124+
max-width: 100%;
125+
height: auto;
126+
display: block;
127+
margin: 20px auto;
128+
}
129+
130+
/* Special styles for aside blocks */
131+
.aside {
132+
margin: 20px 0;
133+
padding: 15px;
134+
border-radius: 5px;
135+
border-left: 4px solid;
136+
}
137+
138+
.aside.note {
139+
background-color: #e3f2fd;
140+
border-left-color: #2196f3;
141+
}
142+
143+
.aside.tip {
144+
background-color: #e8f5e8;
145+
border-left-color: #4caf50;
146+
}
147+
148+
.aside.warning {
149+
background-color: #fff3e0;
150+
border-left-color: #ff9800;
151+
}
152+
153+
.aside.danger {
154+
background-color: #ffebee;
155+
border-left-color: #f44336;
156+
}
157+
158+
/* Styling for command tables */
159+
.command-table th {
160+
background-color: #1a1c3e;
161+
color: white;
162+
}
163+
164+
.command-table td {
165+
font-family: 'Courier New', Courier, monospace;
166+
}

ebook/en/epub.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)