-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4965eed
commit 359624c
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,27 @@ | ||
name: asciidoctor-ghpages | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master, main ] | ||
pull_request: | ||
branches: [ master, main ] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: asciidoctor-ghpages | ||
uses: manoelcampos/asciidoctor-ghpages-action@v2 | ||
with: | ||
asciidoctor_params: --attribute=nofooter | ||
pdf_build: true |
This file contains 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,11 @@ | ||
= Chapter Title | ||
|
||
A paragraph with *bold* and _italic_ text. | ||
|
||
.Image title | ||
image::an-image.jpg[align=center] | ||
|
||
The `xref` macro is used for source-to-source links, like xref:a-book.adoc[]. | ||
An external link to https://eclipse.org[Eclipse]. | ||
|
||
NOTE: One of five built-in admonition block types. |
This file contains 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,14 @@ | ||
= Another Chapter Title | ||
|
||
Text indented by one space is preformatted. | ||
|
||
The following source code block contains a Ruby function named `hello` that prints "`Hello, World!`". | ||
|
||
[%linenums,ruby] | ||
---- | ||
def hello name = 'World' | ||
puts "Hello, #{name}!" | ||
end | ||
---- | ||
|
||
That's all she wrote! |
This file contains 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,14 @@ | ||
= Book Title | ||
Doc Writer <doc@example.org> | ||
v2.0.1, 2022-01-15 | ||
:doctype: book | ||
:front-cover-image: cover.png[,1050,1600] | ||
|
||
[preface] | ||
== Preface | ||
|
||
The story behind the story. | ||
|
||
include::chapter-1.adoc[leveloffset=1] | ||
|
||
include::chapter-2.adoc[leveloffset=1] |