diff options
| author | Sarah White <graphitefriction@gmail.com> | 2020-12-18 16:56:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-18 16:56:51 -0700 |
| commit | fffa2ed16cd1be9f7f6bb7356e1eda83d47fc972 (patch) | |
| tree | 0dda9ef8df40bbe8087b66bfadaee5cf948d1571 /docs/modules/html-backend/examples | |
| parent | 47c5bf28ee16f598bff7f31901437c3a193ee685 (diff) | |
| parent | 717a1cbd6b7c9af192325b76d96ae5e86aeeb595 (diff) | |
merge PR #3880
resolves #3861 import Asciidoctor docs from asciidoctor.org/docs
Diffstat (limited to 'docs/modules/html-backend/examples')
| -rw-r--r-- | docs/modules/html-backend/examples/my-document.adoc | 19 | ||||
| -rw-r--r-- | docs/modules/html-backend/examples/wrap.adoc | 17 |
2 files changed, 36 insertions, 0 deletions
diff --git a/docs/modules/html-backend/examples/my-document.adoc b/docs/modules/html-backend/examples/my-document.adoc new file mode 100644 index 00000000..e2a0abd5 --- /dev/null +++ b/docs/modules/html-backend/examples/my-document.adoc @@ -0,0 +1,19 @@ +// tag::title[] += The Dangers of Wolpertingers +:url-wolpertinger: https://en.wikipedia.org/wiki/Wolpertinger +// end::title[] +// tag::body[] + +Don't worry about gumberoos or splintercats. +Something far more fearsome plagues the days, nights, and inbetweens. +Wolpertingers. + +== Origins + +Wolpertingers are {url-wolpertinger}[ravenous beasts]. +// end::body[] +// tag::image[] +[.left.text-center] +image:wolpertinger.jpg[Wolpertinger,100,,link="https://commons.wikimedia.org/wiki/File:Wolpertinger.jpg"] +They may look cute and cuddly, but don't be fooled. +// end::image[] diff --git a/docs/modules/html-backend/examples/wrap.adoc b/docs/modules/html-backend/examples/wrap.adoc new file mode 100644 index 00000000..3f877d7d --- /dev/null +++ b/docs/modules/html-backend/examples/wrap.adoc @@ -0,0 +1,17 @@ +// tag::nowrap[] +[source%nowrap,java] +---- +public class ApplicationConfigurationProvider extends HttpConfigurationProvider +{ + @Override + public Configuration getConfiguration(ServletContext context) + { + return ConfigurationBuilder.begin() + .addRule() + .when(Direction.isInbound().and(Path.matches("/{path}"))) + .perform(Log.message(Level.INFO, "Client requested path: {path}")) + .where("path").matches(".*"); + } +} +---- +// end::nowrap[] |
