From 76de1339797430c72674a2e1e6a33870b02ab214 Mon Sep 17 00:00:00 2001 From: Samuel Mimram Date: Thu, 16 Nov 2023 10:35:46 +0100 Subject: [PATCH] Fix old doc. --- website/content/doc-2.0.7/language.md | 5 ++++- website/content/doc-2.1.0/language.md | 5 ++++- website/content/doc-2.1.1/language.md | 5 ++++- website/content/doc-2.1.2/language.md | 5 ++++- website/content/doc-2.1.3/language.md | 5 ++++- website/content/doc-2.1.4/language.md | 5 ++++- website/content/doc-2.2.0/language.md | 6 ++++-- website/content/doc-2.2.1/language.md | 6 ++++-- website/content/doc-2.2.2/language.md | 6 ++++-- 9 files changed, 36 insertions(+), 12 deletions(-) diff --git a/website/content/doc-2.0.7/language.md b/website/content/doc-2.0.7/language.md index 88014c70..3a828738 100644 --- a/website/content/doc-2.0.7/language.md +++ b/website/content/doc-2.0.7/language.md @@ -650,7 +650,10 @@ for such arguments, the default value will be used. For instance, if for some reason we tend to generally measure samples over a period of 2.5 seconds, we can make this become the value for the `duration` parameter: -```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0} +```liquidsoap +def samplerate(~samples, ~duration=2.5) = + samples / duration +end ``` In this way, if we do not specify a value for the duration, its value will diff --git a/website/content/doc-2.1.0/language.md b/website/content/doc-2.1.0/language.md index 600c951b..da533040 100644 --- a/website/content/doc-2.1.0/language.md +++ b/website/content/doc-2.1.0/language.md @@ -681,7 +681,10 @@ for such arguments, the default value will be used. For instance, if for some reason we tend to generally measure samples over a period of 2.5 seconds, we can make this become the value for the `duration` parameter: -```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0} +```liquidsoap +def samplerate(~samples, ~duration=2.5) = + samples / duration +end ``` In this way, if we do not specify a value for the duration, its value will diff --git a/website/content/doc-2.1.1/language.md b/website/content/doc-2.1.1/language.md index 600c951b..da533040 100644 --- a/website/content/doc-2.1.1/language.md +++ b/website/content/doc-2.1.1/language.md @@ -681,7 +681,10 @@ for such arguments, the default value will be used. For instance, if for some reason we tend to generally measure samples over a period of 2.5 seconds, we can make this become the value for the `duration` parameter: -```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0} +```liquidsoap +def samplerate(~samples, ~duration=2.5) = + samples / duration +end ``` In this way, if we do not specify a value for the duration, its value will diff --git a/website/content/doc-2.1.2/language.md b/website/content/doc-2.1.2/language.md index 600c951b..da533040 100644 --- a/website/content/doc-2.1.2/language.md +++ b/website/content/doc-2.1.2/language.md @@ -681,7 +681,10 @@ for such arguments, the default value will be used. For instance, if for some reason we tend to generally measure samples over a period of 2.5 seconds, we can make this become the value for the `duration` parameter: -```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0} +```liquidsoap +def samplerate(~samples, ~duration=2.5) = + samples / duration +end ``` In this way, if we do not specify a value for the duration, its value will diff --git a/website/content/doc-2.1.3/language.md b/website/content/doc-2.1.3/language.md index 5e849446..1706b827 100644 --- a/website/content/doc-2.1.3/language.md +++ b/website/content/doc-2.1.3/language.md @@ -681,7 +681,10 @@ for such arguments, the default value will be used. For instance, if for some reason we tend to generally measure samples over a period of 2.5 seconds, we can make this become the value for the `duration` parameter: -```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0} +```liquidsoap +def samplerate(~samples, ~duration=2.5) = + samples / duration +end ``` In this way, if we do not specify a value for the duration, its value will diff --git a/website/content/doc-2.1.4/language.md b/website/content/doc-2.1.4/language.md index 5e849446..1706b827 100644 --- a/website/content/doc-2.1.4/language.md +++ b/website/content/doc-2.1.4/language.md @@ -681,7 +681,10 @@ for such arguments, the default value will be used. For instance, if for some reason we tend to generally measure samples over a period of 2.5 seconds, we can make this become the value for the `duration` parameter: -```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0} +```liquidsoap +def samplerate(~samples, ~duration=2.5) = + samples / duration +end ``` In this way, if we do not specify a value for the duration, its value will diff --git a/website/content/doc-2.2.0/language.md b/website/content/doc-2.2.0/language.md index eefb1676..9cdb6945 100644 --- a/website/content/doc-2.2.0/language.md +++ b/website/content/doc-2.2.0/language.md @@ -699,8 +699,10 @@ for such arguments, the default value will be used. For instance, if for some reason we tend to generally measure samples over a period of 2.5 seconds, we can make this become the value for the `duration` parameter: -```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0} - +```liquidsoap +def samplerate(~samples, ~duration=2.5) = + samples / duration +end ``` In this way, if we do not specify a value for the duration, its value will diff --git a/website/content/doc-2.2.1/language.md b/website/content/doc-2.2.1/language.md index eefb1676..9cdb6945 100644 --- a/website/content/doc-2.2.1/language.md +++ b/website/content/doc-2.2.1/language.md @@ -699,8 +699,10 @@ for such arguments, the default value will be used. For instance, if for some reason we tend to generally measure samples over a period of 2.5 seconds, we can make this become the value for the `duration` parameter: -```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0} - +```liquidsoap +def samplerate(~samples, ~duration=2.5) = + samples / duration +end ``` In this way, if we do not specify a value for the duration, its value will diff --git a/website/content/doc-2.2.2/language.md b/website/content/doc-2.2.2/language.md index eefb1676..9cdb6945 100644 --- a/website/content/doc-2.2.2/language.md +++ b/website/content/doc-2.2.2/language.md @@ -699,8 +699,10 @@ for such arguments, the default value will be used. For instance, if for some reason we tend to generally measure samples over a period of 2.5 seconds, we can make this become the value for the `duration` parameter: -```{.liquidsoap include="liq/samplerate3.liq" from=0 to=0} - +```liquidsoap +def samplerate(~samples, ~duration=2.5) = + samples / duration +end ``` In this way, if we do not specify a value for the duration, its value will