From 5a28a7f0aae8355c252bd5fdeda5723c7949ec31 Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Thu, 9 Nov 2023 08:38:52 +0100 Subject: [PATCH] added macroses and srl icon (#115) --- docs/blog/posts/2023/srlgpt.md | 1 + docs/images/srl-icong-1.svg | 5 +++++ macros/macros.html | 30 ++++++++++++++++++++++++++---- 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 docs/images/srl-icong-1.svg diff --git a/docs/blog/posts/2023/srlgpt.md b/docs/blog/posts/2023/srlgpt.md index b6f09cab..084c9286 100644 --- a/docs/blog/posts/2023/srlgpt.md +++ b/docs/blog/posts/2023/srlgpt.md @@ -77,6 +77,7 @@ Additionally, in today's release we only support using OpenAI's LLM and you must [[[% import 'macros.html' as macros %]]] [[[ macros.srl_version('23.7.1') ]]] +[[[ macros.clab_version('0.47.2') ]]] OK, so to demonstrate SR Linux GPT app we will use Containerlab (min version 0.47.1) and spin up a very simple single node SR Linux topology: diff --git a/docs/images/srl-icong-1.svg b/docs/images/srl-icong-1.svg new file mode 100644 index 00000000..fa26a865 --- /dev/null +++ b/docs/images/srl-icong-1.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/macros/macros.html b/macros/macros.html index e961aae8..28af9682 100644 --- a/macros/macros.html +++ b/macros/macros.html @@ -1,9 +1,31 @@ -[[[% macro srl_version(version) -%]]] - +[[[% macro srl_version(version, title='Minimum SR Linux version') -%]]] + + + + [[[version]]] +[[[%- endmacro %]]] + +[[[% macro version(version, title='Minimum version', href='#') -%]]] + + [[[version]]] +[[[%- endmacro %]]] + +[[[% macro clab_version(version, title='Minimum Containerlab version') -%]]] + + + + [[[version]]] + href="https://containerlab.dev/rn/[[[version.split('.')[0:2] | join('.')]]]/" + title="[[[title]]]">[[[version]]] [[[%- endmacro %]]] \ No newline at end of file