Sha256: b81ce8bf4ef85964e3a8cafad8f6479356996c9efbfbe451843031416bff282c

Contents?: true

Size: 796 Bytes

Versions: 20

Compression:

Stored size: 796 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, prometheus, role="noclip"]
----
.Gist title
gist::git_address[] <1>
----
<1> For `git_address`, {github-gist-home}[, window="_blank"] is prepended automatically

.Example of a gist block
[source, prometheus, role="noclip"]
----
.Guard setup to live preview AsciiDoc output
gist::mojavelinux/5546622[]
----

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
j1-template-2021.0.16 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.15 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.14 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.13 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.12 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.11 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.10 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.9 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.8 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.7 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.6 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.5 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.4 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.3 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.2 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.1 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2021.0.0 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.25 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.24 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2020.0.22 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc