Mercurial > hg > nginx-site
diff xml/en/docs/njs/index.xml @ 2244:467aef18bf12
Renamed the "About njs" page.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 24 Sep 2018 19:10:17 +0300 |
parents | xml/en/docs/njs_about.xml@f134633cff5c |
children | 87a0e2c73a25 |
line wrap: on
line diff
copy from xml/en/docs/njs_about.xml copy to xml/en/docs/njs/index.xml --- a/xml/en/docs/njs_about.xml +++ b/xml/en/docs/njs/index.xml @@ -4,20 +4,20 @@ Copyright (C) Nginx, Inc. --> -<!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> +<!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> -<article name="About njs" - link="/en/docs/njs_about.html" +<article name="njs scripting language" + link="/en/docs/njs/index.html" lang="en" - rev="22"> + rev="23"> <section id="summary"> <para> njs is a subset of the JavaScript language that allows implementing location and variable handlers in -<link doc="http/ngx_http_js_module.xml">http</link> and -<link doc="stream/ngx_stream_js_module.xml">stream</link>. +<link doc="../http/ngx_http_js_module.xml">http</link> and +<link doc="../stream/ngx_stream_js_module.xml">stream</link>. njs is created in compliance with <link url="http://www.ecma-international.org/ecma-262/5.1/">ECMAScript 5.1</link> (strict mode) with some @@ -247,7 +247,7 @@ non-integer fractions (<literal>.235</li <para> The complete list of njs changes is available -<link doc="njs/njs_changes.xml">here</link>. +<link doc="njs_changes.xml">here</link>. </para> </section> @@ -256,7 +256,7 @@ The complete list of njs changes is avai <para> njs API reference is available -<link doc="njs/njs_api.xml">here</link>. +<link doc="njs_api.xml">here</link>. </para> </section> @@ -268,11 +268,11 @@ njs is available in two modules: <list type="bullet"> <listitem> -<link doc="http/ngx_http_js_module.xml">ngx_http_js_module</link> +<link doc="../http/ngx_http_js_module.xml">ngx_http_js_module</link> </listitem> <listitem> -<link doc="stream/ngx_stream_js_module.xml">ngx_stream_js_module</link> +<link doc="../stream/ngx_stream_js_module.xml">ngx_stream_js_module</link> </listitem> </list> @@ -287,12 +287,12 @@ njs command-line <link id="cli">utility< <section id="install_package" name="Installing as a Linux package"> <para> For Linux, njs modules -<link doc="../linux_packages.xml" id="dynmodules">packages</link> can be used: +<link doc="../../linux_packages.xml" id="dynmodules">packages</link> can be used: <list type="bullet"> <listitem> <literal>nginx-module-njs</literal> — njs -<link doc="ngx_core_module.xml" id="load_module">dynamic</link> modules +<link doc="../ngx_core_module.xml" id="load_module">dynamic</link> modules </listitem> <listitem> @@ -321,7 +321,7 @@ Then the modules should be compiled usin ./configure --add-module=<value>path-to-njs</value>/nginx </example> The modules can also be built as -<link doc="ngx_core_module.xml" id="load_module">dynamic</link>: +<link doc="../ngx_core_module.xml" id="load_module">dynamic</link>: <example> ./configure --add-dynamic-module=<value>path-to-njs</value>/nginx </example> @@ -349,8 +349,8 @@ the Linux <link id="install_package">pac or after building from the <link id="install_sources">sources</link>. Compared to njs running inside nginx, nginx objects -(<link doc="njs/njs_api.xml" id="http">HTTP</link> and -<link doc="njs/njs_api.xml" id="stream">Stream</link>) +(<link doc="njs_api.xml" id="http">HTTP</link> and +<link doc="njs_api.xml" id="stream">Stream</link>) are not available in the utility. <example> $ echo "2**3" | njs -