Skip to content

Commit

Permalink
fix asciidoc example
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueck committed Nov 25, 2021
1 parent 9919594 commit 0cf863d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/docs/demo/asciidoc.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,18 @@
:jbake-type: page_toc
:jbake-status: published

== AsciiDoc Demo
////
Big ol' comment
sittin' right 'tween this here title 'n header metadata
////
= AsciiDoc Demo
Dan Allen <[email protected]>
:description: A demo of Asciidoctor. This document +
exercises numerous features of AsciiDoc +
to test Asciidoctor compliance.

:description: A demo of Asciidoctor. This document exercises numerous features of AsciiDoc to test Asciidoctor compliance.

:library: Asciidoctor
ifdef::asciidoctor[]
:source-highlighter: coderay
endif::asciidoctor[]
:idprefix:
:stylesheet: asciidoc.css
:imagesdir: images
:imagesdir: ../images
//:backend: docbook45
//:backend: html5
//:doctype: book
Expand Down Expand Up @@ -142,7 +137,7 @@ Do you feel safer with the tiger in a box?
.Tiger in a box
image::tiger.png[]

include::include.asciidoc.txt[]
include::asciidoc/include.txt[]

.Asciidoctor usage example, should contain 3 lines
[source, ruby]
Expand Down
11 changes: 11 additions & 0 deletions src/docs/demo/asciidoc/include.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
== Included Section

Look, I came from out of the [blue]#blue#!

--
I'm keepin' it open.

An 'open block', like this one, can contain other blocks.

It can also act as any other block. (TODO)
--
Binary file added src/docs/images/tiger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0cf863d

Please sign in to comment.