From d891b2b1198ae42883f2ee64f8a684b9ad4d8731 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Mon, 2 Oct 2017 15:12:35 +0200 Subject: [PATCH] docs: shortcode for links to the cmd/sampleconf directory fixes #11 --- docs/content/configuration/jobs.md | 2 +- docs/content/configuration/logging.md | 2 +- docs/layouts/shortcodes/sampleconflink.html | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 docs/layouts/shortcodes/sampleconflink.html diff --git a/docs/content/configuration/jobs.md b/docs/content/configuration/jobs.md index 710e645..6b0b48a 100644 --- a/docs/content/configuration/jobs.md +++ b/docs/content/configuration/jobs.md @@ -5,7 +5,7 @@ weight = 10 {{% alert theme="warning" %}}Under Construction{{% /alert %}} -See `sampleconf/*/*.yml` for examples. +See {{< sampleconflink >}} for examples. ## Source diff --git a/docs/content/configuration/logging.md b/docs/content/configuration/logging.md index d391bf1..ecd81a4 100644 --- a/docs/content/configuration/logging.md +++ b/docs/content/configuration/logging.md @@ -5,4 +5,4 @@ weight = 90 {{% alert theme="warning" %}}Under Construction{{% /alert %}} -See `cmd/sampleconf/random/logging.yml`. +See {{< sampleconflink "random/logging.yml" >}}. diff --git a/docs/layouts/shortcodes/sampleconflink.html b/docs/layouts/shortcodes/sampleconflink.html new file mode 100644 index 0000000..8935860 --- /dev/null +++ b/docs/layouts/shortcodes/sampleconflink.html @@ -0,0 +1 @@ +cmd/sampleconf/{{ .Get 0}}