Skip to content
Snippets Groups Projects
Commit ad55df05 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

hugo: read examples from static/py/auto

parent b568c1aa
No related branches found
No related tags found
2 merge requests!1528changes from r20.0,!1526hugo: get example scripts from static/py/auto
Pipeline #93901 passed
...@@ -36,4 +36,5 @@ cover/ ...@@ -36,4 +36,5 @@ cover/
hugo/public hugo/public
hugo/resources hugo/resources
hugo/static/img/auto hugo/static/img/auto
hugo/static/py/auto
hugo/.* hugo/.*
\ No newline at end of file
...@@ -7,7 +7,7 @@ Argument 1 = File path below /src/ ...@@ -7,7 +7,7 @@ Argument 1 = File path below /src/
{{- $lang := .Get "language" | default ("python") }} {{- $lang := .Get "language" | default ("python") }}
{{- $opt := .Get "opt" | default ("linenos=table") }} {{- $opt := .Get "opt" | default ("linenos=table") }}
{{ $path := (printf "/src/%s" $src) }} {{ $path := (printf "/py/auto/%s" $src) }}
{{ $file := $path | readFile }} {{ $file := $path | readFile }}
{{ highlight (print $file) $lang $opt}} {{ highlight (print $file) $lang $opt}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment