Skip to content

Commit

Permalink
stop packaging samples into gem (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus authored Jan 17, 2024
1 parent 394ec4c commit 9672494
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ This command should be available on your PATH if you installed the `asciidoctor-
Otherwise, you can find the command in the [path]_bin_ folder of the project.
We also recommend specifying an output directory using the `-D` option flag.

$ asciidoctor-epub3 -D output data/samples/sample-book.adoc
$ asciidoctor-epub3 -D output samples/sample-book.adoc

When the script completes, you'll see the file [file]_sample-book.epub_ appear in the [path]_output_ directory.
Open that file with an EPUB reader (aka e-reader) to view the result.
Expand Down Expand Up @@ -316,7 +316,7 @@ TIP: As another example, point `asciidoctor-epub3` at the {uri-github-guides-for
Next, let's validate the EPUB3 archive to ensure it built correctly.

.EPUB3 with validation
$ asciidoctor-epub3 -D output -a ebook-validate data/samples/sample-book.adoc
$ asciidoctor-epub3 -D output -a ebook-validate samples/sample-book.adoc

.Validation success
[.output]
Expand Down Expand Up @@ -348,7 +348,7 @@ EPUBCheck parses and validates the file against the EPUB schema.
If you want to browse the contents of the EPUB3 file that is generated, or preview the XHTML files in a regular web browser, add the `-a ebook-extract` flag to the `asciidoctor-epub3` command.
The EPUB3 file will be extracted to a directory adjacent to the generated file, but without the file extension.

$ asciidoctor-epub3 -D output -a ebook-extract data/samples/sample-book.adoc
$ asciidoctor-epub3 -D output -a ebook-extract samples/sample-book.adoc

In this example, the contents of the EPUB3 will be extracted to the [path]_output/sample-book_ directory.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def fixture_file *path
end

def examples_dir
Pathname.new(__dir__).join '..', 'data', 'samples'
Pathname.new(__dir__).join '..', 'samples'
end

def example_file *path
Expand Down

0 comments on commit 9672494

Please sign in to comment.