-
-
Notifications
You must be signed in to change notification settings - Fork 523
Update ibis gha #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update ibis gha #187
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
There are no files selected for viewing
36 changes: 22 additions & 14 deletions
.github/workflows/ibis.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
Oops, something went wrong.
1 change: 1 addition & 0 deletions
ebook/en/assets/highlight.codeblock.min.css
Oops, something went wrong.
166 changes: 166 additions & 0 deletions
ebook/en/assets/style.css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.