Sha256: f5bcafe07818616fb9facee7331d0328bf7d8bf5db4589c789616d35d80faf07

Contents?: true

Size: 796 Bytes

Versions: 144

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

144 entries across 130 versions & 1 rubygems

Version Path
j1-template-2023.2.7 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.2.6 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.2.5 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.2.4 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.2.3 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.2.2 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.2.1 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.2.0 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.1.0 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.17 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.16 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.15 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.14 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.13 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.12 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.11 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.10 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.9 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.8 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc
j1-template-2023.0.7 lib/starter_web/pages/public/learn/roundtrip/_includes/documents/100_gistblock.asciidoc