Skip to content

Commit

Permalink
use simple example
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddyFunk committed Jul 26, 2023
1 parent 4965eed commit 359624c
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/asciidoc-ghpages.yml
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
11 changes: 11 additions & 0 deletions asciidoc/chapter-1.adoc
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.
14 changes: 14 additions & 0 deletions asciidoc/chapter-2.adoc
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!
14 changes: 14 additions & 0 deletions asciidoc/home.adoc
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]

0 comments on commit 359624c

Please sign in to comment.