Mercurial > hg > nginx-site
changeset 110:40eec261c2a6
Added proper support for anonymous sections, notably for the summary.
Changed DTD to always require section IDs.
line wrap: on
line diff
--- a/dtd/module.dtd Thu Oct 20 09:15:04 2011 +0000 +++ b/dtd/module.dtd Thu Oct 20 09:19:41 2011 +0000 @@ -8,8 +8,8 @@ <!ELEMENT section (directive | para)+ > <!ATTLIST section - name CDATA #REQUIRED - id ID #IMPLIED + id ID #REQUIRED + name CDATA #IMPLIED > <!ELEMENT directive (syntax+, default+, context*, para+) >
--- a/xml/en/docs/http/ngx_http_mp4_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/en/docs/http/ngx_http_mp4_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/en/docs/http/ngx_http_mp4_module.html" lang="en"> -<section name="Summary"> +<section id="summary"> <para> The module <code>ngx_http_mp4_module</code> provides pseudo-streaming
--- a/xml/ru/docs/http/ngx_http_access_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_access_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -7,7 +7,7 @@ lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_access_module позволяет закрыть доступ для определённых
--- a/xml/ru/docs/http/ngx_http_addition_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_addition_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_addition_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_addition_module — это фильтр,
--- a/xml/ru/docs/http/ngx_http_auth_basic_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_auth_basic_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_auth_basic_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_auth_basic_module позволяет закрыть доступ с проверкой
--- a/xml/ru/docs/http/ngx_http_autoindex_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_autoindex_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_autoindex_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_autoindex_module выдаёт листинг каталога.
--- a/xml/ru/docs/http/ngx_http_browser_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_browser_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_browser_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_browser_module создаёт переменные, значение которых
--- a/xml/ru/docs/http/ngx_http_charset_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_charset_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_charset_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_charset_module добавляет указанную кодировку
--- a/xml/ru/docs/http/ngx_http_dav_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_dav_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_dav_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_dav_module обрабатывает HTTP- и WebDAV-методы
--- a/xml/ru/docs/http/ngx_http_empty_gif_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_empty_gif_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_empty_gif_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_empty_gif_module выдаёт одно-пиксельный прозрачный GIF.
--- a/xml/ru/docs/http/ngx_http_fastcgi_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_fastcgi_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_fastcgi_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_fastcgi_module позволяет передавать запросы
--- a/xml/ru/docs/http/ngx_http_flv_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_flv_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_flv_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_flv_module делает специальную обработку передаваемых файлов:
--- a/xml/ru/docs/http/ngx_http_geo_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_geo_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_geo_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_geo_module создаёт переменные, значения которых
--- a/xml/ru/docs/http/ngx_http_geoip_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_geoip_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_geoip_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_geoip_module создаёт переменные, значения которых
--- a/xml/ru/docs/http/ngx_http_gzip_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_gzip_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_gzip_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_gzip_module - это фильтр, сжимающий ответ методом gzip,
--- a/xml/ru/docs/http/ngx_http_gzip_static_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_gzip_static_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_gzip_static_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_gzip_static_module позволяет отдавать
--- a/xml/ru/docs/http/ngx_http_headers_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_headers_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_headers_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_headers_module позволяет выдавать строки "Expires"
--- a/xml/ru/docs/http/ngx_http_image_filter_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_image_filter_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_image_filter_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_image_filter_module — это фильтр для преобразования
--- a/xml/ru/docs/http/ngx_http_index_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_index_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_index_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_index_module обслуживает запросы, оканчивающиеся слэшом.
--- a/xml/ru/docs/http/ngx_http_limit_req_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_limit_req_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_limit_req_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_limit_req_module (0.7.21) позволяет ограничить число запросов
--- a/xml/ru/docs/http/ngx_http_limit_zone_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_limit_zone_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_limit_zone_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_limit_zone_module позволяет ограничить число одновременных
--- a/xml/ru/docs/http/ngx_http_log_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_log_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_log_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_log_module записывает логи запросов в указанном формате.
--- a/xml/ru/docs/http/ngx_http_map_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_map_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_map_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_map_module создаёт переменные, значение которых
--- a/xml/ru/docs/http/ngx_http_memcached_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_memcached_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_memcached_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_memcached_module позволяет получать ответ из сервера memcached.
--- a/xml/ru/docs/http/ngx_http_mp4_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_mp4_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_mp4_module.html" lang="ru"> -<section name="Обзор"> +<section id="summary"> <para> Модуль <code>ngx_http_mp4_module</code> обеспечивает серверную поддержку
--- a/xml/ru/docs/http/ngx_http_perl_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_perl_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_perl_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_perl_module позволяет работать со встроенным в nginx perl'ом:
--- a/xml/ru/docs/http/ngx_http_proxy_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_proxy_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_proxy_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_proxy_module позволяет передавать запросы другому серверу.
--- a/xml/ru/docs/http/ngx_http_random_index_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_random_index_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_random_index_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_random_index_module выдаёт случайный файл в качестве
--- a/xml/ru/docs/http/ngx_http_realip_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_realip_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_realip_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_realip_module позволяет менять адрес клиента
--- a/xml/ru/docs/http/ngx_http_referer_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_referer_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_referer_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_referer_module позволяет блокировать доступ
--- a/xml/ru/docs/http/ngx_http_rewrite_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_rewrite_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_rewrite_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_rewrite_module позволяет изменять URI с помощью
--- a/xml/ru/docs/http/ngx_http_secure_link_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_secure_link_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_secure_link_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_secure_link_module — это модуль проверяющий
--- a/xml/ru/docs/http/ngx_http_split_clients_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_split_clients_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_split_clients_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_split_clients_module создаёт переменные для
--- a/xml/ru/docs/http/ngx_http_ssi_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_ssi_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_ssi_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_ssi_module — фильтр, обрабатывающий команды SSI (Server
--- a/xml/ru/docs/http/ngx_http_ssl_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_ssl_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_ssl_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_ssl_module обеспечивает работу по протоколу HTTPS.
--- a/xml/ru/docs/http/ngx_http_sub_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_sub_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_sub_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_sub_module — это фильтр,
--- a/xml/ru/docs/http/ngx_http_upstream.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_upstream.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_upstream.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль позволяет описывать группы серверов,
--- a/xml/ru/docs/http/ngx_http_userid_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_userid_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_userid_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_userid_module выдаёт сookies для идентификации клиентов.
--- a/xml/ru/docs/http/ngx_http_xslt_module.xml Thu Oct 20 09:15:04 2011 +0000 +++ b/xml/ru/docs/http/ngx_http_xslt_module.xml Thu Oct 20 09:19:41 2011 +0000 @@ -6,7 +6,7 @@ link="/ru/docs/http/ngx_http_xslt_module.html" lang="ru"> -<section name="" id="summary"> +<section id="summary"> <para> Модуль ngx_http_xslt_module — это фильтр, преобразующий XML-ответ
--- a/xsls/body.xsls Thu Oct 20 09:15:04 2011 +0000 +++ b/xsls/body.xsls Thu Oct 20 09:19:41 2011 +0000 @@ -36,7 +36,7 @@ <table width="100%"><tr><td align="{$INDEX_ALIGN}"> X:if "section[@id]" { - X:for-each "section[@id]" { + X:for-each "section[@id and @name]" { <a href="#{@id}"> !{@name} </a><br/> X:if "@id = 'directives'" { X:for-each "directive[@name]" {
--- a/xsls/content.xsls Thu Oct 20 09:15:04 2011 +0000 +++ b/xsls/content.xsls Thu Oct 20 09:19:41 2011 +0000 @@ -5,26 +5,24 @@ !!; } - X:template = "section[not(@id) and @name]" { - <center><h4> !{@name} </h4></center> + X:template = "section[@id and not(@name)]" { + <a name="{@id}" /> !!; } - X:template = "section[not(@id) and not(@name)]" { !!; } - <!-- legacy section templates --> - X:template = "section[@name and @title]" { + X:template = "section[not(@id) and @name and @title]" { <a name="{@name}" /> <center><h4> !{@title} </h4></center> !!; } - X:template = "section[not(@name) and @title]" { + X:template = "section[not(@id) and not(@name) and @title]" { <center><h4> !{@title} </h4></center> !!; } - X:template = "section[not(@name) and not(@title)]" { !!; } + X:template = "section[not(@id) and not(@name) and not(@title)]" { !!; } <!-- -->