diff xml/en/docs/http/ngx_http_js_module.xml @ 2882:986e1f930e3b

Documented server, location, if contexts for some js directives.
author Yaroslav Zhuravlev <yar@nginx.com>
date Thu, 18 Aug 2022 15:44:39 +0100
parents a3aee2697d4e
children 9719a0184a67
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_js_module.xml
+++ b/xml/en/docs/http/ngx_http_js_module.xml
@@ -9,7 +9,7 @@
 <module name="Module ngx_http_js_module"
         link="/en/docs/http/ngx_http_js_module.html"
         lang="en"
-        rev="35">
+        rev="36">
 
 <section id="summary">
 
@@ -152,6 +152,7 @@ export default {foo, summary, baz, hello
 [<value>buffer_type</value>=<value>string</value> | <value>buffer</value>]</syntax>
 <default/>
 <context>location</context>
+<context>if in location</context>
 <context>limit_except</context>
 <appeared-in>0.5.2</appeared-in>
 
@@ -226,6 +227,14 @@ are not supported.
 </note>
 </para>
 
+<para>
+<note>
+The directive can be specified inside the
+<link doc="../http/ngx_http_rewrite_module.xml" id="if">if</link> block
+since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>.
+</note>
+</para>
+
 </directive>
 
 
@@ -233,6 +242,7 @@ are not supported.
 <syntax><value>function</value> | <value>module.function</value></syntax>
 <default/>
 <context>location</context>
+<context>if in location</context>
 <context>limit_except</context>
 
 <para>
@@ -241,6 +251,14 @@ Since <link doc="../njs/changes.xml" id=
 a module function can be referenced.
 </para>
 
+<para>
+<note>
+The directive can be specified inside the
+<link doc="../http/ngx_http_rewrite_module.xml" id="if">if</link> block
+since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>.
+</note>
+</para>
+
 </directive>
 
 
@@ -393,6 +411,7 @@ with <link doc="../njs/reference.xml" id
 <syntax><value>function</value> | <value>module.function</value></syntax>
 <default/>
 <context>location</context>
+<context>if in location</context>
 <context>limit_except</context>
 <appeared-in>0.5.1</appeared-in>
 
@@ -414,6 +433,14 @@ are not supported.
 </note>
 </para>
 
+<para>
+<note>
+The directive can be specified inside the
+<link doc="../http/ngx_http_rewrite_module.xml" id="if">if</link> block
+since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>.
+</note>
+</para>
+
 </directive>
 
 
@@ -422,6 +449,8 @@ are not supported.
 <value>export_name from module.js</value></syntax>
 <default/>
 <context>http</context>
+<context>server</context>
+<context>location</context>
 <appeared-in>0.4.0</appeared-in>
 
 <para>
@@ -443,6 +472,14 @@ If the imported module exports <literal>
 Several <literal>js_import</literal> directives can be specified.
 </para>
 
+<para>
+<note>
+The directive can be specified on the
+<literal>server</literal> and <literal>location</literal> level
+since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>.
+</note>
+</para>
+
 </directive>
 
 
@@ -483,12 +520,22 @@ The <link id="js_import"/> directive sho
 <value>path</value></syntax>
 <default/>
 <context>http</context>
+<context>server</context>
+<context>location</context>
 <appeared-in>0.3.0</appeared-in>
 
 <para>
 Sets an additional path for njs modules.
 </para>
 
+<para>
+<note>
+The directive can be specified on the
+<literal>server</literal> and <literal>location</literal> level
+since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>.
+</note>
+</para>
+
 </directive>
 
 
@@ -498,6 +545,8 @@ Sets an additional path for njs modules.
 <value>module.function</value></syntax>
 <default/>
 <context>http</context>
+<context>server</context>
+<context>location</context>
 
 <para>
 Sets an njs <literal>function</literal>
@@ -534,6 +583,14 @@ are not supported.
 </note>
 </para>
 
+<para>
+<note>
+The directive can be specified on the
+<literal>server</literal> and <literal>location</literal> level
+since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>.
+</note>
+</para>
+
 </directive>
 
 
@@ -541,6 +598,8 @@ are not supported.
 <syntax><value>$variable</value> [<value>value</value>]</syntax>
 <default/>
 <context>http</context>
+<context>server</context>
+<context>location</context>
 <appeared-in>0.5.3</appeared-in>
 
 <para>
@@ -553,6 +612,14 @@ unlike variables created with the
 <link doc="ngx_http_rewrite_module.xml" id="set"/> directive.
 </para>
 
+<para>
+<note>
+The directive can be specified on the
+<literal>server</literal> and <literal>location</literal> level
+since <link doc="../njs/changes.xml" id="njs0.7.7">0.7.7</link>.
+</note>
+</para>
+
 </directive>
 
 </section>