# HG changeset patch # User Igor Sysoev # Date 1312536334 0 # Node ID fc808f006ff4d6655aa786d47750dd01866a51a0 # Parent 3ce6b8cedcb9651265807f5521c75482f0d55423 skeleton for documentation processing diff --git a/docs/GNUmakefile b/docs/GNUmakefile --- a/docs/GNUmakefile +++ b/docs/GNUmakefile @@ -52,3 +52,19 @@ docs/xslt/changes.xslt: docs/xsls/chang $(call XSLScript, docs/xsls/changes.xsls, $@) +html: \ + docs/html/http/ngx_http_core_module.html + +docs/html/http/ngx_http_core_module.html: \ + docs/xml/http/ngx_http_core_module.xml \ + docs/xslt/module.xslt \ + docs/dtd/module.dtd + $(call XSLT, docs/xslt/module.xslt, $<, $@) + +docs/xslt/module.xslt: docs/xsls/module.xsls \ + docs/xslt/directive.xslt \ + docs/xslt/content.xslt + $(call XSLScript, $<, $@) + +docs/xslt/%.xslt: docs/xsls/%.xsls + $(call XSLScript, $<, $@) diff --git a/docs/dtd/module.dtd b/docs/dtd/module.dtd new file mode 100644 --- /dev/null +++ b/docs/dtd/module.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + diff --git a/docs/html/http/ngx_http_core_module.html b/docs/html/http/ngx_http_core_module.html new file mode 100644 --- /dev/null +++ b/docs/html/http/ngx_http_core_module.html @@ -0,0 +1,10 @@ +ngx_http_core_module

Directives

client_body_buffer_size

syntax: client_body_buffer_size size
default: client_body_buffer_size 8k/16k
context: http, server, location

+Directive sets client request body buffer size. +If the request body is larger than the buffer, +then the whole body or some its part is written to temporary file. +By default buffer size is equal to 2 memory page sizes. +This is 8K on x86, other 32-bit platforms, and x86-64. +It is usually 16K on other 64-bit platforms. +

sendfile

syntax: sendfile [on|off]
default: sendfile off
context: http, server, location

+Directive enables or disables sendfile() usage. +

diff --git a/docs/xml/http/ngx_http_core_module.xml b/docs/xml/http/ngx_http_core_module.xml new file mode 100644 --- /dev/null +++ b/docs/xml/http/ngx_http_core_module.xml @@ -0,0 +1,41 @@ + + + + +
+ + + +client_body_buffer_size size +client_body_buffer_size 8k/16k +http, server, location + + +Directive sets client request body buffer size. +If the request body is larger than the buffer, +then the whole body or some its part is written to temporary file. +By default buffer size is equal to 2 memory page sizes. +This is 8K on x86, other 32-bit platforms, and x86-64. +It is usually 16K on other 64-bit platforms. + + + + + + + +sendfile [on|off] +sendfile off +http, server, location + + +Directive enables or disables sendfile() usage. + + + + +
+ +
diff --git a/docs/xsls/content.xsls b/docs/xsls/content.xsls new file mode 100644 --- /dev/null +++ b/docs/xsls/content.xsls @@ -0,0 +1,19 @@ +X:stylesheet { + +X:template = "section[@name and @title]" { +

!{@title}

+ !!; +} + +X:template = "section[not(@name) and @title]" { +

!{@title}

+ !!; +} + +X:template = "section[not(@name) and not(@title)]" { !!; } + +X:template = "para" {

!!;

} + +X:template = "value" { !!; } + +} diff --git a/docs/xsls/directive.xsls b/docs/xsls/directive.xsls new file mode 100644 --- /dev/null +++ b/docs/xsls/directive.xsls @@ -0,0 +1,15 @@ +X:stylesheet { + +X:template = "directive" { +

!{@name}

+ !! "syntax"; + !! "default"; + !! "context"; + !! "para"; +} + +X:template = "syntax" { X:text {syntax: } !!;
} +X:template = "default" { X:text {default: } !!;
} +X:template = "context" { X:text {context: } !!;
} + +} diff --git a/docs/xsls/module.xsls b/docs/xsls/module.xsls new file mode 100644 --- /dev/null +++ b/docs/xsls/module.xsls @@ -0,0 +1,33 @@ +X:stylesheet { + +X:output method="html" indent="no" encoding="utf-8"; + +X:strip-space elements = "*"; + + +X:param XML = "'../xml'"; + +X:var LINK = "/module/@link"; + +X:include href = "directive.xslt"; +X:include href = "content.xslt"; + + +X:template = "/module" { + + + !{@title} + + + + + !!; + + + +} + +} diff --git a/docs/xslt/content.xslt b/docs/xslt/content.xslt new file mode 100644 --- /dev/null +++ b/docs/xslt/content.xslt @@ -0,0 +1,43 @@ + + + + + + +
+
+

+ +

+
+ + + + + +
+

+ +

+
+ +
+ + + + + + + +

+ +

+
+ + + + + + + + \ No newline at end of file diff --git a/docs/xslt/directive.xslt b/docs/xslt/directive.xslt new file mode 100644 --- /dev/null +++ b/docs/xslt/directive.xslt @@ -0,0 +1,36 @@ + + + + + + +
+
+

+ +

+
+ + + + + + + + syntax: + +
+
+ + + default: + +
+
+ + + context: + +
+
+ \ No newline at end of file diff --git a/docs/xslt/module.xslt b/docs/xslt/module.xslt new file mode 100644 --- /dev/null +++ b/docs/xslt/module.xslt @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="@title"/> + + + + + + + + + + + + + \ No newline at end of file