Sha256: da49e429099f809dfbb422bb2ad2fc1958a67f4756e655646a611e20054be220

Contents?: true

Size: 741 Bytes

Versions: 71

Compression:

Stored size: 741 Bytes

Contents

== Github Gist

Code snippets may helpful to support your readers for existing code examples.
An excellent place for code snippets is Gist at Github. To embed an existing
gist into your documents, the Asciidoc extention *Gist block* provides the
block macro `gist::` to do so.

The following gist snippet is taken from {asciidoc-extensions-gist-example}[this example, window="_blank"]:

//[source, adoc]
----
.Gist title
gist::git_address[] <1>
----
<1> For `git_address`, {github-gist-home}[, window="_blank"] is prepended automatically

.Example of a gist block
----
.Guard setup to live preview AsciiDoc output
gist::mojavelinux/5546622[]
----

[.result]
====
.Guard setup to live preview AsciiDoc output
gist::mojavelinux/5546622[]
====

Version data entries

71 entries across 42 versions & 3 rubygems

Version Path
j1-template-2020.0.25 lib/starter_web/pages/public/test_pages/_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.25 lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.24 lib/starter_web/pages/public/test_pages/_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.24 lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.22 lib/starter_web/pages/public/test_pages/vtutorials/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.22 lib/starter_web/pages/public/test_pages/_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.21 lib/starter_web/pages/public/learn/roundtrip/includes/documents/100_gistblock.asciidoc
j1-template-2020.0.21 lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.21 lib/starter_web/pages/public/test_pages/includes/documents/100_gistblock.asciidoc
j1-template-2020.0.20 lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.20 lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.19 lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.19 lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.18 lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.18 lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.17 lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.17 lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.16 lib/starter_web/pages/public/learn/vtutorials/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.16 lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.15 lib/starter_web/pages/public/learn/roundtrip/000_includes/documents/100_gistblock.asciidoc